Shop OBEX P1 Docs P2 Docs Learn Events
Help needed regarding static data storage — Parallax Forums

Help needed regarding static data storage

ben88ben88 Posts: 2
edited 2011-04-06 08:26 in General Discussion
Hi all

My group is currently doing a project using Basic Stamp and we are quite new to it. Our supervisor wanted us to use static data storage in our programming. Does it mean by using values stored in global array, we are using static data storage?

thanks.

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2011-04-05 22:29
    The heart of the question is what the instructor means by 'static'. If he means that you can turn the Basic Stamp off and on and still have the same data, your data must be written to EEPROM. The type of array may not be so important as understanding the location of the storage.

    You might want to post this in the BasicStamp forum for more specific help. There is global RAM that will erase when turned off. So I suspect your idea of a global array may not work.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2011-04-06 06:45
    Welcome to the Forum

    One thing you could use is a DS1302 Time chip to save data that will be kept at power down of the Basic Stamp
    If your supervisor want this done on the Basic Stamp then what Loop Byte Loose said would hold true

    What type of static data storage and what is the Part # of the chip that are you using ?



    I hope this helps
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2011-04-06 08:26
    Static storage may mean memory that is not erased when the stamp is powered off. If I remember correctly, (it's been a while since my Stamp-programming days) their is a user-accessible EEPROM built into the Basic Stamp. Data stored into this EEPROM will not be erased when the stamp is powered off. I just looked it up in the online Basic stamp manual (http://www.parallax.com/Portals/0/Downloads/docs/prod/stamps/web-BSM-v2.2.pdf) and the DATA command should store data to the EEPROM.

    It would be a shame to use a DS1302 Time chip just for data storage. Static storage could also be referring to SRAM (http://en.wikipedia.org/wiki/Static_random-access_memory) but I don't know if the Basic Stamp is fast enough to communicate with such a chip.

    Hope this helps
Sign In or Register to comment.