BASIC Stamp Command Reference
Page 78 • BASIC Stamp Programming Manual 2.0b • www.parallaxinc.com
RAM ACCESS
GET Read Scratch Pad RAM byte into variable.
PUT Write byte into Scratch Pad RAM.
NUMERICS
LET Optional instruction to perform variable
manipulation, such as A=5, B=A+2, etc. This
instruction is not required and only exists on the
BASIC Stamp 1.
LOOKUP Lookup data specified by offset and store in
variable. This instruction provides a means to make
a lookup table.
LOOKDOWN Find target’s match number (0-N) and store in
variable.
RANDOM Generate a pseudo-random number.
DIGITAL I/O
INPUT Make pin an input.
OUTPUT Make pin an output.
REVERSE Reverse direction of a pin. 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.
COUNT Count cycles on a pin for a given amount of time.
XOUT Generate X-10 power line control codes. For use
with TW523 or TW513 power line interface module.
AUXIO Activates auxiliary I/O pins in place of main I/O.
MAINIO Activates main I/O pins in place of auxiliary I/O.
2
2
2
2
2
2
2
2
2
2
2
2
2
2