
Rev. 1.00
414 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
19 W
atchdog T
imer (WDT)
Watchdog Timer Mode Register 0 – WDTMR0
This register specifies the Watchdog timer Counter-Reload value and reset enable control.
Offset:
0x004
Reset value: 0x0000_0FFF
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
WDTEN
Type/Reset
RW 0
15
14
13
12
11
10
9
8
WDTSHLT WDTRSTEN Reserved
WDTV
Type/Reset RW 0 RW 0 RW 0
RW 1 RW 1 RW 1 RW 1
7
6
5
4
3
2
1
0
WDTV
Type/Reset RW 1 RW 1 RW 1 RW 1 RW 1 RW 1 RW 1 RW 1
Bits
Field
Descriptions
[16]
WDTEN
Watchdog Timer Running Enable
0: Watchdog Timer is disabled
1: Watchdog Timer is enabled to run
When the Watchdog Timer is disabled, the counter will be reset to its hardware
default condition. When the WDTEN bit is set, the Watchdog Timer will be reloaded
with the WDTV value and count down.
[15:14]
WDTSHLT
Watchdog Timer Sleep Halt
00: The Watchdog runs when the system is in the Sleep mode or Deep-Sleep1
mode
01: The Watchdog runs when the system is in the Sleep mode and halts in
Deep-Sleep1 mode
10 or 11: The Watchdog halts when the system is in the Sleep mode and
Deep-Sleep1 mode
Note that the Watchdog timer always halts when the system is in the Deep-Sleep2
mode. The Watchdog timer stops counting when the WDTSHLT field is properly
configured in the Sleep mode or Deep-Sleep1 mode. When the Watchdog stops
counting, the count value is retained so that it continues counting after the system
wakes up from these three sleep modes. If a Watchdog reset occurs in the Sleep or
Deep-Sleep1 mode, it will wake up the device.
[13]
WDTRSTEN Watchdog Timer Reset Enable
0: A Watchdog Timer underflow or error has no effect on the system reset
1: A Watchdog Timer underflow or error triggers a Watchdog Timer system reset
[11:0]
WDTV
Watchdog Timer Counter Value
WDTV defines the value loaded into the 12-bit Watchdog down-counter.