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
.
Содержание BASIC Stamp 2e
Страница 1: ...BASIC Stamp Programming Manual Version 2 0c...
Страница 30: ...Introduction to the BASIC Stamps Page 28 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 90: ...BUTTON BASIC Stamp Command Reference Page 88 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 118: ...END BASIC Stamp Command Reference Page 116 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 128: ...FREQOUT BASIC Stamp Command Reference Page 126 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 196: ...NAP BASIC Stamp Command Reference Page 194 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 206: ...OWIN BASIC Stamp Command Reference Page 204 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 214: ...OWOUT BASIC Stamp Command Reference Page 212 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 216: ...PAUSE BASIC Stamp Command Reference Page 214 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 226: ...POLLMODE BASIC Stamp Command Reference Page 224 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 232: ...POLLOUT BASIC Stamp Command Reference Page 230 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 236: ...POLLRUN BASIC Stamp Command Reference Page 234 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 240: ...POLLWAIT BASIC Stamp Command Reference Page 238 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 262: ...RCTIME BASIC Stamp Command Reference Page 260 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 274: ...RUN BASIC Stamp Command Reference Page 272 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 310: ...SEROUT BASIC Stamp Command Reference Page 308 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 324: ...STOP BASIC Stamp Command Reference Page 322 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...