Parallax BASIC Stamp II Manual page 56

Table of Contents

Advertisement

Special note: if the RS232 serial port (TX and RX) is used AND the
Stamp II is connected to a PC via the normal serial programming
cable AND the PC is running a terminal program, then you may
experience odd behavior when trying to use the terminal program
to communicate with the Stamp II. This is because many terminal
programs hold the DTR line high, which is the same line used to
reset the Stamp II prior to programming. If you are experiencing
this problem, you should disconnect the DTR line (pin 3 on the
Stamp II) when using the terminal program.
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,
and true/inverted input.
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 not used
for SERIN.
If the RS232-level pin (16) is specified, then baudmode bit 14 is ig-
nored. However, it 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
3313 +$4000 300 baud, 8-bit, no parity, inverted data
3313 +$6000 300 baud, 7-bit, parity, inverted data
813
396
188
84 +$6000 9600 baud, 7-bit, parity, inverted data
32
6
Page 56 • 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
1200 baud, 8-bit, no parity, true data
2400 baud, 8-bit, no parity, true data
4800 baud, 8-bit, no parity, true data
19200 baud, 8-bit, no parity, true data
38400 baud, 8-bit, no parity, true data
) - 20

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp II and is the answer not in the manual?

Table of Contents