Specifications
BASIC Stamp I and Stamp II Conversions
Page 420 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
PULSOUT
BASIC STAMP I
PULSOUT pin, time
• PIN is a constant or a bit, byte or word variable in the range 0..7.
• TIME is a constant or a bit, byte or word variable in the range
0..65535 representing the pulse width in 10uS units.
BASIC STAMP II
PULSOUT pin, period
• PIN is a constant, expression or a bit, nibble, byte or word variable
in the range 0..15.
• PERIOD is a constant, expression or a bit, nibble, byte or word
variable in the range 0..65535 representing the pulse width in 2uS
units.
CONVERSION: BS1 R BS2
1.PERIOD = TIME * 5.
• PIN may be a nibble variable in the range 0..15.
Example:
BS1: PULSOUT 1, 10
BS2: PULSOUT 1, 50
CONVERSION: BS1 Q BS2
1.TIME = PERIOD / 5.
• PIN must be in the range 0..7 and must not be a nibble variable.
Example:
BS2: PULSOUT 15, 25
BS1: PULSOUT 7, 5










