Specifications
BASIC Stamp II
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 213
2
BS2 Memory Organization
The BS2 has two kinds of memory; RAM for variables used by your
program, and EEPROM for storing the program itself. EEPROM may
also be used to store long-term data in much the same way that desk-
top computers use a hard drive to hold both programs and files.
An important distinction between RAM and EEPROM is this:
• RAM loses its contents when the BS2 loses power; when power
returns, all RAM locations are cleared to 0s.
• EEPROM retains the contents of memory, with or without power,
until it is overwritten (such as during the program-download-
ing process or with a Write instruction.)
In this section, we’ll look at both kinds of BS2 memory, how it’s orga-
nized, and how to use it effectively. Let’s start with RAM.
BS2 Data Memory (RAM)
The BS2 has 32 bytes of RAM. Of these, 6 bytes are reserved for input,
output, and direction control of the 16 input/output (I/O) pins. The
remaining 26 bytes are available for use as variables.
The table below is a map of the BS2’s RAM showing the built-in PBASIC
names.










