Quote:
Originally posted by ChrisA
you have 62 scratchpad ram locations total in each bank.
to sum this all up...
scratchpad ram is the physical memory area inside the robot controller where all your variable values are stored.
|
A couple of problems here:
- There are only 64 scratchpad RAM bytes (not 62) for the entire BASIC Stamp. Scratchpad RAM is shared by the programs in all EEPROM banks. (A very important point to keep in mind!)
- Scratchpad RAM is separate from the variable space. (You have 26 bytes of variable space available PLUS the 64 bytes of scratchpad RAM. Both are shared by all program banks.)
Also a couple more details you left out of your description:
- Scratchpad RAM data is accessed with the GET and PUT commands.
- Before you can use data you have previously PUT into into scratchpad RAM, you have to GET it into a normal variable (one of your 26 bytes.)