8 Watchdog Timer (WDT)

The WDT is a special timer that will reset the microcontroller if it is periodically not cleared. It has multiple selectable time-out periods and runs from an internal 1.024 kHz oscillator derived from the internal ultra-low power 32.768 kHz oscillator. The WDT has two modes – Normal and Window. In Normal mode, the WDT must clear before the count matching. However, if an error somehow continuously clears the WDT, then the timer will not detect the fault. You may use the Window mode to protect against this.

In Window mode, the WDT clear must occur after a set delay and before the timer triggers. It will be considered a WDT violation and trigger a microcontroller reset if it clears too early or late. The WDT registers are protected by the Configuration Change Protection (CCP) feature and the control register lock, which reduces the likelihood of software errors inadvertently altering the WDT settings. The WDT operates in all power modes.
Figure 8-1. Comparison on Normal and Windowed