![Geehy SEMICONDUCTOR APM32F030x4x6x8xC Скачать руководство пользователя страница 225](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629225.webp)
www.geehy.com Page 224
19.6
WWDT Register Address Mapping
Table 58 WWDT Register Address Mapping
Register name
Description
Offset address
WWDT_CTRL
Control register
0x00
WWDT_CFG
Configuration register
0x04
WWDT_STS
State register
0x08
19.7
WWDT Register Functional Description
These peripheral registers can be operated by half word (16 bits) or word (32
bits).
Control register (WWDT_CTRL)
Offset address: 0x00
Reset value: 0x0000 007F
Field
Name
R/W
Description
6:0
CNT
R/W
Counter Value Setup
This counter is 7 bits, and CNT6 is the most significant bit
These bits are used to store the counter value of the watchdog. When
the count value decreases from 0x40 to 0x3F, WWDT reset will be
generated.
7
WWDTEN
R/S
Window Watchdog Enable
This bit is set to 1 by software and can be cleared by hardware only after
reset. When WWDTEN=1, WWDT can generate a reset.
0: Disable
1: Enable
31:8
Reserved
Configuration register (WWDT_CFG)
Offset address: 0x04
Reset value: 0x0000 007F
Field
Name
R/W
Description
6:0
WIN
R/W
Window Value Setup
This window value is 7 bits, which is used to compare with the down counter.
8:7
TBPSC R/W
Configure the time base prescaler factor (Timer Base Prescaler Factor
Configure)
Divide the frequency on the basis of PCLK1/4096
00: No frequency division
01: 2-divided frequency
10: 4-divided frequency
11: 8-divided frequency
9
EWIEN R/S
Early Wakeup Interrupt Enable
0: Meaningless
1: When the counter value reaches 0x40, an interrupt will be generated; this
interrupt is cleared by hardware after reset.
31:10
Reserved