BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 47
BASIC Stamp II
PULSIN
Input a timed pulse.
usage: PULSIN pin,state,variable
Pin will be placed in input mode. A pulse of state will be awaited and
measured with 2µs resolution, and the result will be written into variable.
If an overflow occurs while waiting for any edge, (>65535*2µs or
>131ms), 0 will be written into variable.