
Rev. 1.00
386 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)
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 Deep-Sleep2 mode.
The Watchdog stops counting when the WDTSHLT bits are properly configured in the
Sleep mode or Deep-Sleep1 mode, 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 Sleep mode 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 reset of system
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.