Storing data to the eeprom
John_B
Posts: 16
Hi,
I have about 10 longs of configuration data that can be changed by the user. These need to be stored somewhere for the next power up. My first thought was the eeprom - is this possible? If so, how do you access the eeprom and what locations are available? Is there anywhere on the prop chip to·store the data? Any other suggestions?
Regards
John
I have about 10 longs of configuration data that can be changed by the user. These need to be stored somewhere for the next power up. My first thought was the eeprom - is this possible? If so, how do you access the eeprom and what locations are available? Is there anywhere on the prop chip to·store the data? Any other suggestions?
Regards
John
Comments
Usually programs start storing data at the end of the EEPROM. In your case, you could use the last 40 bytes of the EEPROM (locations $7FD8-$7FFF).
Look at the comments at the beginning of "Basic I2C Driver" for an example of writing data to the boot EEPROM.
http://obex.parallax.com/objects/410/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
Thanks for your help,
John