3.26.8 WDT Driver
Overview
The WatchDog Timer(WDT) resets the device during software malfunction. It can also be used to wake the device from Sleep mode or Idle mode. The WDT consists of a programmable prescaler and postscaler.
Features
- WDT can be enabled or disabled by the user, by default WDT is disabled.
- The WDT has an optional Windowed mode, this mode is useful for resetting the device during unexpected quick or slow execution of a critical portion of the code.
- WDT period is user configurable.
- If WDT is enabled by Hardware (Configuration bits), it cannot be disabled by software.
3.26.8.1 Module Documentation
3.26.8.1.1 WDT Driver
Watchdog Timer Driver using dsPIC MCUs.
Module description
Watchdog Timer Driver using dsPIC MCUs.
Functions
static void WATCHDOG_TimerSoftwareEnable (void)
This inline function is used to enable the Watchdog Timer (WDT) using the software bit.
static void WATCHDOG_TimerSoftwareDisable (void)
This inline function is used to disable the Watchdog Timer (WDT) using the software bit.
static void WATCHDOG_TimerClear (void)
This inline function is used to clear the Watchdog Timer (WDT)
Function Documentation
WATCHDOG_TimerClear()
inline static void WATCHDOG_TimerClear (void )
This inline function is used to clear the Watchdog Timer (WDT)
none |
none |
WATCHDOG_TimerSoftwareDisable()
inline static void WATCHDOG_TimerSoftwareDisable (void )
This inline function is used to disable the Watchdog Timer (WDT) using the software bit.
none |
none |
WATCHDOG_TimerSoftwareEnable()
inline static void WATCHDOG_TimerSoftwareEnable (void )
This inline function is used to enable the Watchdog Timer (WDT) using the software bit.
none |
none |
3.26.8.2 File Documentation
3.26.8.2.1 source/watchdog.h File Reference
#include <xc.h>
Functions
static void WATCHDOG_TimerSoftwareEnable (void)
This inline function is used to enable the Watchdog Timer (WDT) using the software bit.
static void WATCHDOG_TimerSoftwareDisable (void)
This inline function is used to disable the Watchdog Timer (WDT) using the software bit.
static void WATCHDOG_TimerClear (void)
This inline function is used to clear the Watchdog Timer (WDT)
Detailed Description
WATCHDOG Generated Driver Header File