can you store varibles in spin so that they stay in there when power is cycled?
radialrandy
Posts: 78
Im wanting to store varibles using spin and these varibles not be erased when the power is turned off then back on.
Comments
Try this link http://forums.parallax.com/showthread.php?97625-PE-Kit-Lab-Applications-%E2%80%93-EEPROM-Datalogging-and-I2C
... Tim
-Ron
thanks
Each write operation to EEPROM takes 5-10ms. It's possible to write larger blocks of information with a single operations (page writes). Do keep in mind that writing repeatedly to the same area of EEPROM will eventually wear out that section of EEPROM. We're talking about 100,000 times or more, but it's possible to exceed that in a tight loop in a few minutes.
thanks guys
Of course you would not want to be constantly updating the variable in EEPROM itself as they do have a limited write endurance per location/page of around 1 million <minimum> (old tech had less). The update to EEPROM should be made at the time a change to the variable is made such as when a user changes the variable or if this variable is not a configuration variable but a constantly changing reading then you might to elect to have a background function check this every so often and only back it up if there is a change between it and the EEPROM. But of course we don't really know the operating parameters of your application so it's a bit had to advise.