Specifications
Appendix C
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 421
C
PWM
BASIC STAMP I
PWM pin, duty, cycles
• PIN is a constant or a bit, byte or word variable in the range 0..7.
• DUTY is a constant or a bit, byte or word variable in the range
0..255.
• CYCLES is a constant or a bit, byte or word variable in the range
0..255 representing the number of 5ms cycles to output.
BASIC STAMP II
PWM pin, duty, cycles
• PIN is a constant, expression or a bit, nibble, byte or word variable
in the range 0..15.
• DUTY is a constant, expression or a bit, nibble, byte or word vari-
able in the range 0..255.
• CYCLES is a constant, expression or a bit, nibble, byte or word
variable in the range 0..255 representing the number of 1ms cycles
to output.
CONVERSION: BS1 R BS2
1.CYCLES = CYCLES * 5.
• PIN may be a nibble variable in the range 0..15.
Example:
BS1: PWM 0, 5, 1
BS2: PWM 0, 5, 5










