BASIC stamp manual v2.2

BASIC Stamp Command Reference
Page 126 BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com
NUMERICS
LET Optional instruction to perform variable
assignments.
LOOKUP Look up data specified by offset and store in
variable. This instruction provides a means to make
a lookup table.
LOOKDOWN Find target’s matching value in table and store
match number (0-N) in variable.
RANDOM Generate a pseudo-random number.
DIGITAL I/O
CONFIGPIN Configure pin properties.
INPUT Make pin an input.
OUTPUT Make pin an output.
REVERSE Reverse direction of a pin.
LOW Make pin output low.
HIGH Make pin output high.
TOGGLE Make pin an output and toggle state.
PULSIN Measure width of an input pulse.
PULSOUT Output a pulse by inverting a pin for a given
amount of 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.
AUXIO Switch control to auxiliary I/O pin group.
MAINIO Switch control to main I/O pin group.
IOTERM Switch control to specified I/O pin group.
POLLIN Specify pin and state for a polled-interrupt.
POLLOUT Specify pin and state for output upon a polled-
interrupt.
POLLMODE Specify the polled-interrupt mode.
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
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
All
2
All
2