The 32-byte RAM is arranged as follows:
Word
Bits
$0
0000 0000 0000 0000
$1
0000 0000 0000 0000
$2
0000 0000 0000 0000
$3
0000 0000 0000 0000
$4
0000 0000 0000 0000
$5
0000 0000 0000 0000
$6
0000 0000 0000 0000
$7
0000 0000 0000 0000
$8
0000 0000 0000 0000
$9
0000 0000 0000 0000
$A
0000 0000 0000 0000
$B
0000 0000 0000 0000
$C
0000 0000 0000 0000
$D
0000 0000 0000 0000
$E
0000 0000 0000 0000
$F
0000 0000 0000 0000
Word $0 always reflects the read-state of all 16 I/O pins. Whether a pin
is an input or output, it's logical state can be read in this word. Word
$0 is accessed by the following symbolic names:
INS
the entire 16-bit word
INL
the low byte of INS
INH
the high byte of INS
INA
the low nibble of INL
INB
the high nibble of INL
INC
the low nibble of INH
IND
the high nibble of INH
IN0
the low bit of INS (corresponds to I/O pin P0)
IN15
the high bit of INS (corresponds to I/O pin P15)
BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 15
BASIC Stamp II
Description
Pin input states
Pin output latches
Pin directions
variable space
variable space
variable space
variable space
variable space
variable space
variable space
variable space
variable space
variable space
variable space
variable space
variable space
R/W
read-only
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
read/write
Need help?
Do you have a question about the BASIC Stamp II and is the answer not in the manual?