1.8.5 Dual Watchdog Timer (DWDT)

The Dual Watchdog Timer (DWDT) is used to prevent system lock-up if the software becomes trapped in a deadlock. The DWDT embeds two independent watchdogs (WDT0 and WDT1) and each watchdog provides monitoring period of up to 16 seconds. One watchdog may be used to monitor critical software task execution time in OS/RTOS by generating an interrupt only. The second watchdog may be used to generate a system reset if the software is trapped in a deadlock.

Using The Library

The DWDT PLIB provides application an ability to clear and disable WDT timer at run time. In addition, application can register a callback to get notified when the WDT event occurs.

Library Interface

Dual Watchdog Timer peripheral library provides the following interfaces:

Functions

Name Description
DWDT_Initialize Initializes Dual watchdog timer peripheral
DWDT_WDTx_Clear Clears the programmable watchdog timer
DWDT_WDTx_Disable Disables the programmable watchdog timer
DWDT_WDTx_RegisterCallback Allows application to register callback with PLIB

Data types and constants

Name Type Description
DWDT_CALLBACK Typedef Type of the DWDT event handler function