BASIC stamp manual v2.2
SEROUT – BASIC Stamp Command Reference
Page 416 • BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com
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 BS2, BS2e BS2sx BS2p BS2pe BS2px
Units in Pace
n/a 1 ms 1 ms 1 ms 1 ms 1 ms
Units in
Timeout
n/a 1 ms 0.4 ms 0.4 ms 1 ms 0.4 ms
Baud range
300, 600,
1200, and
2400 only
243 to
50K
608 to
115.2K
608 to
115.2K
243 to
50K
972 to
115.2K
Baud limit with
flow control
n/a 19.2K 19.2K 19.2K 19.2K 19.2K
I/O Pins
Available
0 - 7 0 – 15 0 - 15
0 – 15 (in
current I/O
block)
0 – 15 (in
current I/O
block)
0 – 15 (in
current I/O
block)
Other serial
port pins
n/a SOUT pin (physical pin 1) when Tpin = 16
Special cases
n/a
Fpin must be specified to use Timeout and Tlabel.
Pace cannot be specified at the same time as Timeout.
Related
Commands
SERIN SERIN and DEBUG
Table 5.104: SEROUT Quick Facts.
Explanation
One of the most popular forms of communication between electronic
devices is serial communication. There are two major types of serial
communication; asynchronous and synchronous. The SERIN and
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. Please read through the SERIN command
section for additional information.
All BS2 models have a line driver on its SOUT pin (Tpin = 16). 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 BASIC Stamp 2 Carrier Board (#27120) which is only designed for
programming). For the built-in serial port set the Tpin argument to 16 in
the SEROUT command.
SERIAL COMMUNICATION BACKGROUND.
U
SING THE BUILT-IN SERIAL PORT FOUND
ON ALL
BS2 MODELS.
All
2