CoX Peripheral Interface V2.1
API Reference
WDT

WDT Timer Peripheral Driver. More...

Collaboration diagram for WDT:

Modules

 xWDT
 

CoX WDT Peripheral Interface.



Detailed Description

WDT Timer Peripheral Driver.

The purpose of WDT Timer is to perform a system reset when system runs into an unknown state. This prevents system from hanging for an infinite period of time. Besides, this WDT Timer supports another function of wake-up chip from power down mode. The WDT includes an 18-bit free running counter with programmed time-out intervals.


Contents


1. WDT Physical Block

watchdog_block.png


2. WDT Functional Description


2.1 WDT Interrupt

When WDT interrupt enables and the counter reaches the selected time-out interval, mcu will receive an interrupt request form WDT and enter into interrupt handler.


2.2 WDT Wakeup

When mcu enters into the power down mode and WDT counter reaches the selected time-out interval, WDT will occur an interrupt and wake up mcu form power down mode after wake-up interrupt function enables.


2.3 WDT Restart

When WDT counter reaches the selected time-out interval and user hasn't resetted the ounter in a specified delay time, the chip will be resetted after restart function enables.


2.4 WDT Hold In ICE

If this function enables, WDT Timer counter will keep going no matter whether the ICE Debugger mode is acknowledged or not.


3. WDT Applications

The WDT can be used to reset chip, wake up mcu, etc.

Note:
Here describes the common functions of the WDT Peripheral. The CoX Peripheral Interface is based on the functions above.