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
.
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...