Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/21/05 06:58
Read: times


 
#102707 - It's the nature of the beast!
Responding to: ???'s previous message
Ruben Dario Porras Sanche said:
i want to store the data in those vars even if i cut the power.

Then you cannot use plain Static RAM (nor even Dynamic RAM).

plain Static RAM is volatile - that is, it loses its contents when power is removed.
Therefore, you have 2 options:

1. Provide a backup power source, so that power to the memory remains even if the main power supply fails.
Charles has given a quick & dirty way to do this:
http://www.8052.com/forum/read.phtml?id=102702

2. Uses a non-volatile storage medium.
Several have been mentioned already.

In addition to the above, you also need to ensure that your 'C' startup code does not clear the memory contents!

List of 8 messages in thread
TopicAuthorDate
data storage            01/01/70 00:00      
   Reset ?            01/01/70 00:00      
      sorry            01/01/70 00:00      
   reset routine            01/01/70 00:00      
      OR            01/01/70 00:00      
         modifying startup file is no good            01/01/70 00:00      
   Put a 6 volt batter and 1N4004 diode            01/01/70 00:00      
   It's the nature of the beast!            01/01/70 00:00      

Back to Subject List