5: BASIC Stamp Command Reference
2
IOTERM
p
2
POLLIN
p
2
POLLOUT
p
2
POLLMODE
p
ASYNCHRONOUS SERIAL I/O
SERIN
SEROUT
2
OWIN
p
2
OWOUT
p
SYNCHRONOUS SERIAL I/O
2
2
2
2
SHIFTIN
e
sx
p
2
2
2
2
SHIFTOUT
e
sx
p
2
I2CIN
p
2
I2COUT
p
PARALLEL I/O
2
LCDCMD
p
2
LCDIN
p
2
LCDOUT
p
ANALOG I/O
PWM
1
POT
2
2
2
2
RCTIME
e
p
sx
TIME
PAUSE
2
POLLWAIT
p
Activates specified I/O pin group.
Specify pin and state for a polled-interrupt.
Specify pin and state for output upon a polled-
interrupt.
Specifies the polled-interrupt mode.
Input data in an asynchronous serial stream.
Output data in an asynchronous serial stream.
Input data from a 1-wire device.
Output data to a 1-wire device.
Shift data in from synchronous serial device.
Shift data out to synchronous serial device.
Input data in from I2C serial device.
Output data out toI2C serial device.
Writes a command to an LCD.
Reads data from an LCD.
Writes data to an LCD.
Output PWM, then return pin to input. This can be
used to output analog voltages (0-5V) using a
capacitor and resistor.
Read a 5K - 50K ohm potentiometer and scale result.
Measure an RC charge/discharge time. Can be used
to measure potentiometers.
Pause execution for 0–65535 milliseconds.
Pause until a polled-interrupt occurs.
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 79
Need help?
Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?