PULSOUT
BUTTON
SHIFTIN
SHIFTOUT
COUNT
XOUT
SERIAL I/O
SERIN
SEROUT
ANALOG I/O
PWM
RCTIME
Page 12 • BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333
BASIC Stamp II
Output a timed pulse by inverting a pin for some
time (resolution of 2 µs).
Debounce button, perform auto-repeat, and branch
to address if button is in target state.
Shift bits in from parallel-to-serial shift register.
Shift bits out to serial-to-parallel shift register.
Count cycles on a pin for a given amount of time
(0 - 125 kHz, assuming a 50/50 duty cycle).
Generate X-10 powerline control codes. For use
with TW523 or TW513 powerline interface module.
Serial input with optional qualifiers, time-out, and
flow control. If qualifiers are given, then the in-
struction will wait until they are received before
filling variables or continuing to the next instruc-
tion. If a time-out value is given, then the instruc-
tion will abort after receiving nothing for a given
amount of time. Baud rates of 300 - 50,000 are
possible (0 - 19,200 with flow control). Data re-
ceived must be N81 (no parity, 8 data bits, 1 stop
bit) or E71 (even parity, 7 data bits, 1 stop bit).
Send data serially with optional byte pacing and
flow control. If a pace value is given, then the
instruction will insert a specified delay between
each byte sent (pacing is not available with flow
control). Baud rates of 300 - 50,000 are possible (0
- 19,200 with flow control). Data is sent as N81 (no
parity, 8 data bits, 1 stop bit) or E71 (even parity, 7
data bits, 1 stop bit).
Output PWM, then return pin to input. This can be
used to output analog voltages (0-5V) using a
capacitor and resistor.
Measure an RC charge/discharge time. Can be
used to measure potentiometers.
Need help?
Do you have a question about the BASIC Stamp II and is the answer not in the manual?