SEROUT - BASIC Stamp Command Reference
hex or binary text representations, or transmit strings of bytes from
variable arrays. These actions can be combined in any order in the
OutputData list.
Quick Facts
BS1
Units in Pace
n/a
and Timeout
300, 600,
Baud range
1200, and
2400 only
Baud limit with
n/a
flow control
I/O pins
0 - 7
available
Other serial port
n/a
pins
n/a
Special cases
Explanation
One of the most popular forms of communication between electronic
devices is serial communication.
communication; asynchronous and synchronous.
SEROUT commands are used to receive and send asynchronous serial
data. See the SHIFTIN and SHIFTOUT command for information on the
synchronous method.
The following information is supplemental to what is discussed in the
SERIN command section.
section for additional information.
All BASIC Stamps (except the BS1) have a line driver on its SOUT pin
(Tpin = 16). See the "Hardware" section of the "Introduction to the BASIC
Stamps" chapter. The SOUT pin goes to a PC's serial data-in pin on the
DB9 connector built into BASIC Stamp development boards. The
connector is wired to allow both programming and run-time serial
communication (unless you are using the Stamp 2 Carrier Board which is
only designed for programming). For the built-in serial port set the Tpin
argument to 16 in the SEROUT command.
Page 294 • BASIC Stamp Programming Manual 2.0b • www.parallaxinc.com
BS2
BS2e
1 ms
1 ms
243 to 50K
243 to 50K 608 to 115.2K 608 to 115.2K
19.2K
19.2K
0 – 15
0 - 15
SOUT pin (physical pin 1) when Rpin = 16
Fpin must be specified to use Timeout and Tlabel.
Pace cannot be specified at the same time as Timeout.
There are two major types of serial
Please read through the SERIN command
BS2sx
BS2p
400 µs
400 µs
19.2K
19.2K
0 – 15 (in
0 - 15
current I/O
block)
The SERIN and
Table 5.79: SEROUT Quick Facts.
S
ERIAL COMMUNICATION
.
BACKGROUND
2
2
2
2
e
sx
p
U
-
SING THE BUILT
IN SERIAL PORT ON
BS2, BS2
, BS2
THE
E
SX AND
BS2
.
P
Need help?
Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?