Specifications

BASIC Stamp I and Stamp II Conversions
Page 418 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
PULSIN
BASIC STAMP I
PULSIN pin, state, variable
PIN is a constant, expression or a bit, byte or word variable in the
range 0..7.
• STATE is a constant, expression or a bit, byte or word variable in
the range 0..1.
VARIABLE is a bit, byte or word variable.
• Measurements are in 10uS intervals and the instruction will time
out in 0.65535 seconds.
BASIC STAMP II
PULSIN pin, state, variable
PIN is a constant, expression or a bit, nibble, byte or word variable
in the range 0..15.
STATE is a constant, expression or a bit, nibble, byte or word vari-
able in the range 0..1.
VARIABLE is a bit, nibble, byte or word variable.
Measurements are in 2uS intervals and the instruction will time
out in 0.13107 seconds.
CONVERSION: BS1 R BS2
Any or all arguments may be a nibble variable for efficiency.
PIN may be in the range 0..15.
Returned value is 5 times less than in the Stamp I counterpart.