Specifications

BASIC Stamp II
Page 214 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
Stamp II I/O and Variable Space
Word Name Byte Name Nibble Names Bit Names Special Notes
INS INL INA, INB, IN0 - IN7, Input pins; word, byte,
INH INC, IND IN8 - IN15 nibble and bit addressable.
OUTS OUTL OUTA, OUTB, OUT0 - OUT7, Output pins; word, byte,
OUTH OUTC, OUTD OUT8 - OUT15 nibble and bit addressable.
DIRS DIRL DIRA, DIRB, DIR0 - DIR7, I/O pin direction control;
DIRH DIRC, DIRD DIR8 - DIR15 word, byte, nibble and bit
addressable.
W0 B0 General Purpose; word, byte,
B1 nibble and bit addressable.
W1 B2 General Purpose; word, byte,
B3 nibble and bit addressable.
W2 B4 General Purpose; word, byte,
B5 nibble and bit addressable.
W3 B6 General Purpose; word, byte,
B7 nibble and bit addressable.
W4 B8 General Purpose; word, byte,
B9 nibble and bit addressable.
W5 B10 General Purpose; word, byte,
B11 nibble and bit addressable.
W6 B12 General Purpose; word, byte,
B13 nibble and bit addressable.
W7 B14 General Purpose; word, byte,
B15 nibble and bit addressable.
W8 B16 General Purpose; word, byte,
B17 nibble and bit addressable.
W9 B18 General Purpose; word, byte,
B19 nibble and bit addressable.
W10 B20 General Purpose; word, byte,
B21 nibble and bit addressable.
W11 B22 General Purpose; word, byte,
B23 nibble and bit addressable.
W12 B24 General Purpose; word, byte,
B25 nibble and bit addressable.
Table M-1. BS2 Memory Map
The Input/Output (I/O) Variables
As the map shows, the first three words of the memory map are asso-
ciated with the Stamp’s 16 I/O pins. The word variable INS is unique
in that it is read-only. The 16 bits of INS reflect the bits present at Stamp
I/O pins P0 through P15. It may only be read, not written. OUTS con-