View Single Post
  #44   Spotlight this post!  
Unread 20-02-2003, 20:46
Lindy Lindy is offline
Registered User
#0968 (RAWC)
 
Join Date: Nov 2002
Location: West Covina, CA
Posts: 15
Lindy is an unknown quantity at this point
Send a message via AIM to Lindy
Quote:
Originally posted by randomperson
Ok.. correct me if I'm wrong (which of course I probably am, so have at it.. ), but isn't it true that the program can only access the EEPROM in the current program slot? Or am I wrong and if so could you explain why I'm wrong.. lol. Thanks!
Yes, that's true, for the BS2SX and lower anyway. That fact was a bit of a headache, actually. In the original version of our code, there was only 895 bytes free in the autonomous mode bank after the program was written. It was enough for our uses, but it was chewing up memory faster than I liked.

I ended up doing some stupidly pigheaded scheme where the remaining banks on the Stamp had a small routine which wrote and fetched instructions and passed it to the autonomous bank via the scratchpad (which can be accessed by all banks). In hindsight, it's all very unnecessary, but there are now 1,750 bytes for the four storage banks, totaling about 6.8 K worth of available space for autonomous instructions. We will never use them.

(I am now reminded of a thread on this board regarding "overcomplicated autonomous code." Um... whoops.)

Oh, and the Basic Stamp BS2P has the STORE statement, which allows READ and WRITE to perform on a specific bank. Would have made things so much more easier...