BASIC stamp manual v2.2
5: BASIC Stamp Command Reference
BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com • Page 127
ASYNCHRONOUS SERIAL I/O
SERIN Input data in an asynchronous serial stream.
SEROUT Output data in an asynchronous serial stream.
OWIN Input data from a 1-wire device.
OWOUT Output data to a 1-wire device.
SYNCHRONOUS SERIAL I/O
SHIFTIN Shift data in from synchronous serial device.
SHIFTOUT Shift data out to synchronous serial device.
I2CIN Input data from I
2
C serial device.
I2COUT Output data to I
2
C serial device.
PARALLEL I/O
LCDCMD Write a command to an LCD.
LCDIN Read data from an LCD.
LCDOUT Write data to an LCD.
ANALOG I/O
PWM Output using pulse width modulation, then return
pin to input.
POT Read a 5 k - 50 k potentiometer and scale result.
RCTIME Measure a variable resistance or capacitance.
COMPARE Compare two 0-5 V analog voltages.
TIME
PAUSE Pause execution for 0–65535 milliseconds.
POLLWAIT Pause until a polled-interrupt occurs.
SOUND
SOUND Generate tones or white noise.
FREQOUT Generate one or two sine waves of specified
frequencies.
DTMFOUT Generate DTMF telephone tones.
All
2
All
2
All
2
1
1
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2