Specifications

Appendix C
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 431
C
be encased in brackets, “[“ and “]”. If QUALIFIERS are present,
insert the modifier “WAIT” immediately before the open paren-
thesis before the first QUALIFIER.
3.Replace any optional “#” formatters with the equivalent “DEC”
formatter.
RPIN = PIN and may be in the range 0..16
BAUDMODE may be any bit period in between 300 baud and 50000
baud and can be calculated using the following formula:
INT(1,000,000/Baud Rate) - 20.
The optional formatter may include any formatter listed for
INPUTDATA above.
Example:
BS1: SERIN 0, 1, (“ABCD”), #B0, B1
BS2: SERIN 0, 813, [WAIT(“ABCD”), DEC FirstByte, SecondByte]
CONVERSION: BS1 Q BS2
1.PIN = RPIN and must be in the range 0..7.
2.Remove the FPIN argument “\fpin” if it is specified. No flow con-
trol pin is available on the Stamp I.
3.BAUDMODE is a constant or a symbol or a bit, byte or word vari-
able representing one of the predefined baudmodes. Refer to the
BAUDMODE Conversion table above for Stamp II baudmodes and
their corresponding Stamp I baudmodes. While the Stamp II
baudmode is quite flexible, the Stamp I can only emulate specific
baud rates.
4.Remove the PLABEL argument if it is specified. No parity error
checking is done on the Stamp I.
5.Remove the TIMEOUT and TLABEL arguments if they are speci-
fied. No timeout function is available on the Stamp I; the program
will halt at the SERIN instruction until satisfactory data arrives.
6.Remove the brackets, “[“ and “]”.