Shop OBEX P1 Docs P2 Docs Learn Events
Storing data in the 24LC256 Eeprom — Parallax Forums

Storing data in the 24LC256 Eeprom

smbakersmbaker Posts: 164
edited 2009-02-14 05:57 in Propeller 1
I have a small amount of data that I need to store, let's say about 32 bytes, and I'd like to store it in nonvolatile memory. The serial eeprom that we already have sounds like the ideal place. I've found some code in the propeller object exchange (i2cobject_v2_1) that will do this. However, I don't know what address I should store the data at inside the eeprom. Preferably it should be some place that is not already used!

If I declare a variable, am I correct in assuming that I can get the RAM address of·a variable with [url=mailto:'@']'@'[/url], and furthermore that the RAM address is the same as the EEPROM address (translating between long and byte addresses, as necessary) ?

Thanks,
Scott

Comments

  • mctriviamctrivia Posts: 3,772
    edited 2009-02-14 05:57
    you are correct @ gets address and they are the same. you can also place at end of free space like I do in my id object.
Sign In or Register to comment.