data storage
Jon M
Posts: 22
Hi Guys,
another day....another problem!!
I have a life_count variable that after every completed operation 1 is added to.· What I need to do is periodically store this value on the eeprom so the value isn't lost when we switch the machine off.· Is this possible on the Prop? If so how do I access the eeprom from my program.
Ta
Jon
another day....another problem!!
I have a life_count variable that after every completed operation 1 is added to.· What I need to do is periodically store this value on the eeprom so the value isn't lost when we switch the machine off.· Is this possible on the Prop? If so how do I access the eeprom from my program.
Ta
Jon
Comments
Keep in mind that EEPROMs have limited rewrite capability. You can only change a location perhaps 100,000 times before it "wears out". If you write the life_count value to the EEPROM only when it changes, you should be fine.
Thanks for the info, does this mean that when I download a new program to the eeprom it will overwrite any data I have stored in the upper end?· If so, if I upgrade the boot eeprom to a 64K version and put the data into the 2nd 32K will the data be protected?·Will·I need to change anything else on my board or in the prop tool to send my program to it?
Yes.
No.
Can you recommend a suitable part type for a 64K eeprom that is known to work with the prop?
24LC512 (the "L" indicating the low voltage type) as expected, but rather
24C512-27
where 27 means 2.7 to 5.5 V
Fairchild has:
FM 24 C 256 L or 24 C 256 LZ
Z indicates a super low stand-by current.
Types just announced as "24C256" CAN also be different types, though most should also run at 3V3 though out of spec....
·
AT24C512 8P3-2.7
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.