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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/15/05 13:53
Read: times


 
#99428 - WD reset - yes, why not
Responding to: ???'s previous message
Erik Malund said:
The consensus last time was that the only totally equivalent of a fresh start is to let a watchdog time out.
Well, that is certainly an option and quite comfortable indeed (needs a bit of thinking only if the WD is already used in the application as a WD and there might need to distinguish the "emergency WD reset" from a "real WD reset"). There are exceptions, though; some derivatives do have "power-on" SFR flags, which differentiate power-on reset from WD reset.

There is also an another nearly perfect option to have a resetting hardware activated by an output, why not.

I would not refrain from the "simulated reset", though; with having in mind that it is NOT trivial (as you stated below - SFRs need to be put into reset state as per datasheet).

Erik Malund said:
Even that is not "totally" equivalent if there is no clear RAM routine in the startup.

No, RAM is untouched upon RESET in '51.

Erik Malund said:
I have seen this done with "restoring all SFRs to their initial value" in the startup code, but have yet to see that without "a little glitch" partially because "you only need to restore the SFRs you use".


Sorry I don't understand (my bad english), what is that "little glitch"?

Jan Waclawek




List of 31 messages in thread
TopicAuthorDate
Interrupt question            01/01/70 00:00      
   Interrupt            01/01/70 00:00      
      then how?            01/01/70 00:00      
         One way is to            01/01/70 00:00      
            Little more description            01/01/70 00:00      
               Routine            01/01/70 00:00      
   interrupt exit            01/01/70 00:00      
      tried but gives error            01/01/70 00:00      
         assembler???            01/01/70 00:00      
            Assembler is Pinnacle            01/01/70 00:00      
               go to Pinnacle support            01/01/70 00:00      
               Asking for solutions            01/01/70 00:00      
      Now THAT was elegant!            01/01/70 00:00      
   use WDT to RESET the micro            01/01/70 00:00      
   some comments            01/01/70 00:00      
      Its like this            01/01/70 00:00      
         Emergency stop            01/01/70 00:00      
            I understand            01/01/70 00:00      
               If you REALLY want to do it            01/01/70 00:00      
                  optimizing            01/01/70 00:00      
                  possible troubles            01/01/70 00:00      
                     excellent point!            01/01/70 00:00      
                        This is not a solution            01/01/70 00:00      
                           Do it as you wish            01/01/70 00:00      
                              Makes sense            01/01/70 00:00      
                              the consensus last time was that the onl            01/01/70 00:00      
                                 WD reset - yes, why not            01/01/70 00:00      
                                    You say "no" and agree            01/01/70 00:00      
                                       no no = yes            01/01/70 00:00      
                                    Watchdog output            01/01/70 00:00      
                              Thanks, Done            01/01/70 00:00      

Back to Subject List