CME136686LX Hardware Manual - RTD Embedded Technologies ...
CME136686LX Hardware Manual - RTD Embedded Technologies ...
CME136686LX Hardware Manual - RTD Embedded Technologies ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Watchdog Timer Control<br />
The cpuModule includes a Watchdog Timer, which provides protection against programs “hanging”, or getting<br />
stuck in an execution loop where they cannot respond correctly. The watchdog timer consists of a counter, a<br />
reset generator, and an interrupt generator. When the counter reaches the interrupt time-out, it can generate<br />
an interrupt. When the counter reaches the reset time-out, the system is reset. The counter is “refreshed,” or set<br />
back to zero by reading from a specific register. The watchdog can also be put into an “inactive” state, in which<br />
no resets or interrupts are generated.<br />
The ability to generate an interrupt allows the application to gracefully recover from a bad state. For example,<br />
consider a system that has a reset time-out of 2 seconds, interrupt time-out of 1 second, and the watchdog timer<br />
is refreshed every 0.5 seconds. If something goes wrong, an interrupt is generated. The Interrupt service routine<br />
then attempts to restart the application software. If it is successful, the application is restarted in much less time<br />
than a full reboot would require. If it is not successful, the system is rebooted.<br />
Due to system latency, it is recommended that the Watchdog be refreshed at about half of the reset time-out<br />
period, or half of the interrupt time-out period, whichever is applicable.<br />
BDM-610000065 Rev C Chapter 4: Using the cpuModule 77