SEROUT - BASIC Stamp Command Reference
Page 304
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
The SEROUT command supports open-drain and open-source output,
which makes it possible to network multiple BASIC Stamps on a single
pair of wires. These "open baudmodes" only actively drive the Tpin in one
state (for the other state, they simply disconnect the pin; setting it to an
input mode). If two BASIC Stamps in a network had their SEROUT lines
connected together (while a third device listened on that line) and the
BASIC Stamps were using always-driven baudmodes, they could
simultaneously output two opposite states (ie: +5 volts and ground). This
would create a short circuit. The heavy current flow would likely damage
the I/O pins or the BASIC Stamps themselves. Since the open baudmodes
only drive in one state and float in the other, there's no chance of this kind
of short.
The polarity selected for SEROUT determines which state is driven and
which is open as in Table 5.88.
State (0)
State (1)
Resister
Pulled to
Inverted
Open
Driven
Gnd (Vss)
Non-inverted
Driven
Open
+5V (Vdd)
Since open baudmodes only drive to one state, they need a resistor to pull
the networked line into the other state, as shown in Table 5.88 and in
Figures 5.36 and 5.37.
Open baudmodes allow the BASIC Stamp to share a line, but it is up to
your program to resolve other networking issues such as who talks when
and how to detect, prevent and fix data errors.
P0
P1
VSS
BS2
sender
P0
P1
BS2
receiver
Host PC (f
or Debug)
programming
cable
VSS
10k
Table 5.88: BS2, BS2e, BS2sx and
BS2p Open Baudmode States.
Figure 5.35: Flow-Control Example
Circuit.
U
SING
O
PEN
B
AUDMODES FOR
N
ETWORKING
BASIC S
TAMPS
.
Содержание 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...