![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 249](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800249.webp)
GD32F10x User Manual
249
Figure 13-1. Free watchdog block diagram
IRC40K
Reset
Prescaler
/4/8
/256
12-Bit
Downcounter
Reload
register
Control register
Reload
Status: PUD
Status: RUD
The free watchdog is enabled by writing the value 0xCCCC in the control register
(FWDGT_CTL), and the counter starts counting down. When the counter reaches the value
0x000, a reset is generated.
The counter can be reloaded by writing the value 0xAAAA to the FWDGT_CTL register at
anytime. The reload value comes from the FWDGT_RLD register. The software can prevent
the watchdog reset by reloading the counter before the counter reaches the value 0x000.
The free watchdog can automatically start at power on when the hardware free watchdog bit
in the device option bits is set. To avoid reset, the software should reload the counter before
the counter reaches 0x000.
The FWDGT_PSC register and the FWDGT_RLD register are write-protected. Before writing
these registers, the software should write the value 0x5555 to the FWDGT_CTL register.
These registers will be protected again by writing any other value to the FWDGT_CTL register.
When an update operation of the prescaler register (FWDGT_PSC) or the reload value
register (FWDGT_RLD) is on going, the status bits in the FWDGT_STAT register are set.
If the FWDGT_HOLD bit in DBG module is cleared, the FWDGT continues to work even the
Cortex
®
-M3 core halted (Debug mode). While the FWDGT stops in Debug mode if the
FWDGT_HOLD bit is set.
Table 13-1. Min/max FWDGT timeout period at 40 kHz (IRC40K)
Prescaler divider PSC[2:0] bits
Min timeout (ms)
RLD[11:0]=0x000
Max timeout (ms)
RLD[11:0]=0xFFF
1 / 4
000
0.025
409.525
1 / 8
001
0.025
819.025
1 / 16
010
0.025
1638.025
1 / 32
011
0.025
3276.025
1 / 64
100
0.025
6552.025
1 / 128
101
0.025
13104.025
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...