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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/01 23:06
Read: times


 
#16930 - RE: Reset Watchdog timer
Just reset the watchdog counter as part of the main system loop. Here is some pseudo code...

<>< Lance.


boolean dont_stop = true;

initialize_everything();

while (dont_stop) // Main loop
{
  scan_input();
  do_some_calculations();
  display_something();
  reset_watchdog();
}// end of main loop


void reset_watchdog() {
  out(WATCHDOG_PORT, WATCHDOG_RESET_BIT);
}// reset_watchdog()

List of 14 messages in thread
TopicAuthorDate
Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer - Peter            01/01/70 00:00      
RE: Reset Watchdog timer - Peter            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      
RE: Reset Watchdog timer            01/01/70 00:00      

Back to Subject List