Parallax BASIC Stamp 2e Programming Manual page 80

Table of Contents

Advertisement

BASIC Stamp Command Reference
RAM ACCESS
2
2
2
GET
e
sx
p
2
2
2
PUT
e
sx
p
NUMERICS
1
LET
LOOKUP
LOOKDOWN Find target's match number (0-N) and store in
RANDOM
DIGITAL I/O
INPUT
OUTPUT
REVERSE
LOW
HIGH
TOGGLE
PULSIN
PULSOUT
BUTTON
2
2
2
COUNT
e
sx
p
2
2
2
XOUT
e
p
sx
2
AUXIO
p
2
MAINIO
p
Page 78 • BASIC Stamp Programming Manual 2.0b • www.parallaxinc.com
Read Scratch Pad RAM byte into variable.
Write byte into Scratch Pad RAM.
Optional
instruction
manipulation, such as A=5, B=A+2, etc.
instruction is not required and only exists on the
BASIC Stamp 1.
Lookup data specified by offset and store in
variable. This instruction provides a means to make
a lookup table.
variable.
Generate a pseudo-random number.
Make pin an input.
Make pin an output.
Reverse direction of a pin. If pin is an output, make
it an input. If pin is an input, make it an output.
Make pin output low.
Make pin output high.
Make pin an output and toggle state.
Measure an input pulse.
Output a timed pulse by inverting a pin for some
time.
Debounce button, perform auto-repeat, and branch
to address if button is in target state.
Count cycles on a pin for a given amount of time.
Generate X-10 power line control codes. For use
with TW523 or TW513 power line interface module.
Activates auxiliary I/O pins in place of main I/O.
Activates main I/O pins in place of auxiliary I/O.
to
perform
variable
This

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents