Datasheet

REVERSE If pin is an output, make it an input. If pin is an input, make it an output.
LOW Make pin output low.
HIGH Make pin output high.
TOGGLE Make pin an output and toggle state.
PULSIN Measure an input pulse.
PULSOUT Output a timed pulse by inverting a pin for some time.
BUTTON Debounce button, perform auto-repeat, and branch to address if button is in
target state.
SHIFTIN Shift bits in from parallel-to-serial shift register.
SHIFTOUT Shift bits out to serial-to-parallel shift register.
COUNT Count cycles on a pin for a given amount of time (0 to 125 kHz, assuming
50/50 duty cycle).
XOUT Generate X-10 powerline control codes. For use with X-10 lamp and
appliance control modules.
SERIAL I/O
SERIN Serial input with optional qualifiers and variables for storage of received data.
On the Stamp D and BS1-IC, baud rates of 300, 600, 1200, and 2400 are
possible. On the BS2-IC, any baud rate (up to 50k baud) is possible. Also,
the BS2-IC has a serial input time-out function.
SEROUT Send data serially. On the Stamp D and BS1-IC, data is sent at 300, 600,
1200, or 2400 baud. On the BS2-IC, data is sent at any baud rate (up to 50k
baud).
ANALOG I/O
PWM Output PWM, then return pin to input. This can be used to output analog
voltages (0 to 5 V) using a capacitor and resistor.
POT Read a 5 to 50K potentiometer and scale result.
RCTIME Measure an RC charge/discharge time. Can be used to measure
potentiometers (faster than POT on Stamp D and BS1-IC).
SOUND
FREQOUT Generate one or two sine waves of specified frequencies (each from 0 to
32767 Hz).
DTMFOUT Generate DTMF telephone tones.
SOUND Play notes. Note 0 is silence, notes 1 to 127 are ascending tones, and notes
128 to 255 are white noises.
EEPROM ACCESS
DATA Store data in EEPROM before downloading BASIC program (BS2-IC).
05/18/98 15:19:10
Parallax, Inc. -- PBASIC Instruction Set http://www.parallaxinc.com/stamps/pbasic.htm