27.8.2 Quick Start Guide for WDT - Callback

In this use case, the Watchdog module is configured for:
  • System reset after 4096 clocks of the Watchdog generic clock

  • Always on mode disabled

  • Early warning period of 2048 clocks of the Watchdog generic clock

This use case sets up the Watchdog to force a system reset after every 4096 clocks of the Watchdog's Generic Clock channel, with an Early Warning callback being generated every 2048 clocks. Each time the Early Warning interrupt fires the board LED is turned on, and each time the device resets the board LED is turned off, giving a periodic flashing pattern.