GD32F10x User Manual
254
13.2.
Window watchdog timer (WWDGT)
13.2.1.
Overview
The window watchdog timer (WWDGT) is used to detect system failures due to software
malfunctions. After the window watchdog timer starts, the value of downcounter reduces
progressively. The watchdog timer causes a reset when the counter reached 0x3F (the CNT[6]
bit becomes cleared). The watchdog timer also causes a reset if the counter is refreshed
before the counter reached the window register value. So the software should refresh the
counter in a limited window. The window watchdog timer generates an early wakeup status
flag when the counter reaches 0x40.Interrup occurs if it is enable.
The window watchdog timer clock is prescaled from the APB1 clock. The window watchdog
timer is suitable for the situation that requires an accurate timing.
13.2.2.
Characteristics
Programmable free-running 7-bit downcounter.
Generate reset in two conditions when WWDGT is enabled:
–
Reset when the counter reached 0x3F.
–
The counter is refreshed when the value of the counter is greater than the window
register value.
Early wakeup interrupt (EWI): if the watchdog is started and the interrupt is enabled, the
interrupt occurs when the counter reaches 0x40.
WWDGT debug mode, the WWDGT can stop or continue to work in debug mode.
13.2.3.
Function overview
If the window watchdog timer is enabled (set the WDGTEN bit in the WWDGT_CTL), the
watchdog timer cause a reset when the counter reaches 0x3F (the CNT[6] bit becomes
cleared), or when the counter is refreshed before the counter reaches the window register
value.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...