Shop OBEX P1 Docs P2 Docs Learn Events
BS2P40 Variable Question — Parallax Forums

BS2P40 Variable Question

AustinAustin Posts: 10
edited 2006-07-11 20:17 in BASIC Stamp
I have a BSP40 which has enough I/Os but I need more variables. How can I handle about 60 variables, mixed word, bytes, bits, nibs? When the program runs it will use all the variables once or twice.

Post Edited By Moderator (Chris Savage (Parallax)) : 7/11/2006 4:22:32 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-07-11 16:26
    All Stamps have the same number of variables. They simply have to be shared by different parts of the program. The BSp40 does have RAM space that can be used for storage using GET and PUT statements and the SPSTR formatter for serial, lcd, i2c input and output statements. That sometimes helps a lot.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-07-11 16:47
    Austin,

    ·· You could use the ScratchPad RAM to store a lot of this data and a temp variable to pull it in/out to work on it.· Just a suggestion.· I hope this helps.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • AustinAustin Posts: 10
    edited 2006-07-11 20:17
    Thanks Mike and Chris for the leads.
Sign In or Register to comment.