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

Back to Subject List

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


 
#102699 - reset routine
Responding to: ???'s previous message
If you declare your variables, I assume your C-compiled program uses a routine to clear the variables upon initialisation.

If you reset your processor the fact that your program restarts would then effectively mean that your variables are initialised again, and hence lose the value they had before the reset.

If you want values to be retained between (warm/hot/cold) resets then you should use eeprom memory (or flash or some other non-volatile memory) as already suggested. RAM memory is not to be used for this.

regards
Patrick

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