Table 5.82: BS2 and BS2e
common baud rates and
corresponding Baudmodes.
Table 5.83: BS2sx common baud
rates and corresponding
Baudmodes.
Table 5.84: BS2p common baud
rates and corresponding
Baudmodes.
C
HOOSING THE PROPER BAUD MODE
A
SEROUT.
SIMPLE FORM OF
5: BASIC Stamp Command Reference – SEROUT
Baud
8-bit
Rate
no-parity
inverted
300
19697
600
18030
1200
17197
2400
16780
4800
16572
9600
16468
NOTE: For "open" baudmodes used in networking, add 32768 to the values from the table
above. If the dedicated serial port (Tpin=16) is used, the data is inverted and driven
regardless of the baudmode setting.
Baud
8-bit
Rate
no-parity
inverted
1200
18447
2400
17405
4800
16884
9600
16624
NOTE: For "open" baudmodes used in networking, add 32768 to the values from the table
above. If the dedicated serial port (Tpin=16) is used, the data is inverted and driven
regardless of the baudmode setting.
Baud
8-bit
Rate
no-parity
inverted
1200
18447
2400
17405
4800
16884
9600
16624
NOTE: For "open" baudmodes used in networking, add 32768 to the values from the table
above. If the dedicated serial port (Tpin=16) is used, the data is inverted and driven
regardless of the baudmode setting.
If you're communicating with existing software or hardware, its speed(s)
.
and mode(s) will determine your choice of baud rate and mode. See the
SERIN command description for more information.
The example below will transmit a single byte through I/O pin 1 at 2400
baud, 8N1, inverted:
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 297
8-bit
7-bit
no-parity
even-parity
true
inverted
3313
27889
1646
26222
813
25389
396
24972
188
24764
84
24660
8-bit
7-bit
no-parity
even-parity
true
inverted
2063
26639
1021
25597
500
25076
240
24816
8-bit
7-bit
no-parity
even-parity
true
inverted
2063
26639
1021
25597
500
25076
240
24816
7-bit
even-parity
true
11505
9838
9005
8588
8380
8276
7-bit
even-parity
true
10255
9213
8692
8432
7-bit
even-parity
true
10255
9213
8692
8432
Need help?
Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?