
Rev. 1.00
384 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
18 W
atchdog T
imer (WDT)
18 W
atchdog T
imer (WDT)
The Watchdog timer should be used in the following manners:
▄
Set the Watchdog timer reload value (WDTV) and reset in the WDTMR0 register.
▄
Set the Watchdog timer delta value (WDTD) and prescaler in the WDTMR1 register.
▄
Start the Watchdog timer by writing to the WDTCR register with WDTRS = 1 and RSKEY =
0x5FA0.
▄
Write to the WDTPR register to lock all the Watchdog timer registers except for WDTCR and
WDTPR.
▄
The Watchdog timer counter should be reloaded again within the delta value (WDTD).
0
WDTD
WDTV
0xFFF
Time
Reload counter when
counter
≤
WDTD
Normal behavior
Watchdog Timer underflow
Reload counter when counter > WDTD
. . .
Start counter
Reset occurred
(If WDTRSTEN = 1)
Watchdog Timer error
Reset not occurred
(If WDTRSTEN = 0)
Reload is allowed
Reload is not allowed
Counter value
Figure 137. Watchdog Timer Behavior