SEROUT - BASIC Stamp Command Reference
Page 294
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.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
Units in Pace
and Timeout
n/a
1 ms
1 ms
400 µs
400 µs
Baud range
300, 600,
1200, and
2400 only
243 to 50K
243 to 50K 608 to 115.2K 608 to 115.2K
Baud limit with
flow control
n/a
19.2K
19.2K
19.2K
19.2K
I/O pins
available
0 - 7
0 – 15
0 - 15
0 - 15
0 – 15 (in
current I/O
block)
Other serial port
pins
n/a
SOUT pin (physical pin 1) when Rpin = 16
Special cases
n/a
Fpin must be specified to use Timeout and Tlabel.
Pace cannot be specified at the same time as Timeout.
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 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.
S
ERIAL COMMUNICATION
BACKGROUND
.
Table 5.79: SEROUT Quick Facts.
2
e
2
sx
2
p
2
U
SING THE BUILT
-
IN SERIAL PORT ON
THE
BS2, BS2
E
, BS2
SX AND
BS2
P
.
Summary of Contents for BASIC Stamp 1
Page 1: ...BASIC Stamp Programming Manual Version 2 0c...
Page 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...