I am wondering how to save a variable's value in case of power reset. I am creating a program to write to a display and I want to keep track of the selection that the user made before the system power went down and got reset. How can I do this? Thanks for any help, Vida
A disadvantage of EEPROM and FLASH are the limited number of write cycles. I have recently read about something called FRAM, which is available from http://www.ramtron.com They say, it will survive like 10^6 writecycles per second for 300 years. It also seems to be available in different sizes and should be fast enough to work with an ordinary 80c51. I have no experience in using it, though, but it was something that I have kept in my folder of interesting things. -cu Sven
FYI: We have been using FRAM for about 3 years and it works great. They have an 8k byte serial device that is SSC (SPI) compatible. You don't have to worry about erasing or programming them. Just write your data using their protocol designed to eliminate inadvertant write cycles. I also recently heard that Motorola is working on something using the same or similar technology in a parallel version with much larger densities that can be used to store program and data. They are debating if they should implement the technology in their micros only or if they should offer it in a stand-alone package also. -Walt