Watchdog Timer
5 - 8 C2000 Microcontroller Workshop - System Initialization
Watchdog Timer Module
(lab file: Watchdog.c)
WDCLK
System
Reset
8-bit Watchdog
Counter
CLR
Watchdog
Reset Key
Register
55 + AA
Detector
1 0 1
/
/
3
3
WDDIS
WDCHK
Bad WDCHK Key
/512
Output
Pulse
WDRST
WDINT
WDOVERRIDE
Good Key
Watchdog
Prescaler
WDPS
The watchdog clock is divided by 512 and prescaled, if desired. The watchdog disable switch
allows the watchdog to be enabled and disabled. The watchdog override switch is a safety
mechanism, and once closed, it can only be open by resetting the device.
During initialization, “101” is written into the watchdog check bit fields. Any other values will
cause a reset or interrupt. During run time, the correct keys must be written into the watchdog
key register before the watchdog counter overflows and issues a reset or interrupt. Issuing a reset
or interrupt is user-selectable.