Specifications
BASIC Stamp II
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 321
2
Data Speed
ferred in 7E mode can only represent values from 0 to 127, rather than
the 0 to 255 of 8E mode.
Serout’s “open” baudmodes are used only in special circumstances,
usually networking applications. See the Network example below.
Direct Connection
(Inverted)
Through Line Driver
(Noninverted)
Baud Rate
300
600
1200
2400
4800
9600
19200
38400
8 data bits,
no parity
7 data bits,
even parity
3313 11505
1646 9838
813 9005
396 8588
188 8380
84 8276
32 8224
6 8198
8 data bits,
no parity
7 data bits,
even parity
19697 27889
18030 26222
17197 25389
16780 24972
16572 27764
16468 24660
16416 24608
16390 24582
Common Data Rates and Their Baudmodes
Note: For “open” baudmodes used in networking, add 32778 to values from the table above.
Table I-6
Simple Output and Numeric Conversions
Stripped to just the essentials, Serout can be as simple as:
Serout tpin,baudmode,[outputData]
For example, to send a byte through pin 1 at 9600 bps, 8N, inverted:
Serout 1,16468,[65] ' Send byte value 65 ("A") through pin 1.
When that Serout executes, it changes pin 1 to output and transmits
the byte value 65 (%01000001 binary). If a PC terminal program was
the receiver, the letter A would appear on the screen, since 65 is the
ASCII code for A. (See the ASCII character chart in the appendix.) To
send a number as text requires a modifier, as in this example:
Serout 1,16468,[DEC 65] ' Send text "65" through pin 1.
The modifier DEC tells Serout to convert the value to its decimal-text
equivalent before transmitting. Table I-7 lists the numeric-conversion
Corresponding Baudmode Value
Note: For "open" baudmodes used in networking, add 32768 to values from the table above.










