Storing data in the 24LC256 Eeprom
smbaker
Posts: 164
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
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