32-Bit Arm
®
Cortex
®
-M3 MCU
HT32F12345
18
Watchdog Timer (WDT)
Introduction
The Watchdog timer is a hardware timing circuitry that can be used to detect a system lock-up
due to software trapped in a deadlock. The Watchdog timer can be operated in a reset mode. The
Watchdog timer will generate a reset when the counter counts down to a zero value. Therefore, the
software should reload the counter value before a Watchdog timer underflow occurs. In addition, a
reset is also generated if the software reloads the counter before it reaches a delta value. That means
that the Watchdog timer prevents a software deadlock that continuously triggers the Watchdog, the
reload must occur when the Watchdog timer value has a value within a limited window of 0 and
WDTD. The Watchdog timer counter can be stopped when the processor is in the debug or sleep
mode. The register write protection function can be enabled to prevent an unexpected change in the
Watchdog timer configuration.
WDTRS
RSKEY[15:0]
LSI RC
0
32 kHz
CK_WDT
LSE OSC
1
32.768 kHz
WDTEN
WDTSRC
Figure 124. Watchdog Timer Block Diagram
Features
▄
Clock source from either internal 32 kHz RC oscillator (LSI) or 32.768 kHz oscillator (LSE)
▄
Can be independently setup to keep running or to stop when entering the sleep or deep sleep
mode 1
▄
12-bit down counter with 3-bit prescaler structure
▄
Provides reset to the system
▄
Limited reload window setup function for custom Watchdog timer reload times
▄
Watchdog Timer may be stopped when the processor is in the debug
▄
Reload lock key to prevent unexpected operation
▄
Configuration register write protection function for counter value, reset enable, delta value and
prescaler
Rev. 1.10
WDTV
Reload
Clear
Prescaler
12-bit Down
1 / 2 / 4 / 8
Counter
... / 128
WPSC[2:0]
WDTD
375 of 590
Underflow
WDTUF
WDTRSTEN
WDTERR
Read WDTSR Register
WDT Error
November 28, 2018
WDT_RSTn
Need help?
Do you have a question about the HT32F12345 and is the answer not in the manual?