Fpin is an optional flow-control pin. This pin may be used to imple-
ment "flow-control" handshaking between serial devices.
Baudmode is a composite value which specifies baud rate, parity mode,
true/inverted output, and open/driven output.
Bits 0-12 of baudmode are the serial bit period expressed in micro-
seconds-20. Bit 13 ($2000) is 0 for 8-bit no parity, 1 for 7-bit parity.
Bit 14 ($4000) is 0 for true, 1 for inverted. Bit 15 ($8000) is 0 for
driven, 1 for open-drain/open-source.
If the RS232-level pin (16) is specified, then baudmode bits 14 and
15 are ignored. However, their settings will still affect operation of
the optional flow-control pin (fpin).
An easy formula for calculating the bit period (bits 0-12) is:
Example values for baudmode:
3313
3313 +$2000 300 baud, 7-bit, parity, true data, driven output
3313 +$4000 300 baud, 8-bit, no parity, inverted data, driven output
3313 +$6000 300 baud, 7-bit, parity, inverted data, driven output
3313 +$8000 300 baud, 8-bit, no parity, true data, open drain/source
813
396
188
84 +$6000 9600 baud, 7-bit, parity, inverted data, driven output
32
32 +$2000 19200 baud, 7-bit, parity, true data, driven output
6
Pace is an optional value that specifies how long to wait between trans-
mitted bytes. The amount of time is measured in milliseconds, and
may be up to 65535 (approximately 65 seconds). A pace value may
only be specified if flow-control is not being used.
Timeout is an optional value that specifies how long to wait before giv-
ing up and branching to tlabel. The amount of time is measured in
Page 60 • BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333
BASIC Stamp II
1,000,000
int (
baud rate
300 baud, 8-bit, no parity, true data, driven output
1200 baud, 8-bit, no parity, true data, driven output
2400 baud, 8-bit, no parity, true data, driven output
4800 baud, 8-bit, no parity, true data, driven output
19200 baud, 8-bit, no parity, true data, driven output
38400 baud, 8-bit, no parity, true data, driven output
) - 20
Need help?
Do you have a question about the BASIC Stamp II and is the answer not in the manual?