GD32W51x User Manual
551
Figure 17-54. Normal mode, internal clock divided by 1
CK_TIMER
CEN
PSC_CLK = TIMER_CK
CNT_REG
Reload Pulse
17
18
19
20
21
22
update event
generate(UPG)
23
00
01
02
03
04
05
06
07
Update event (UPE)
Prescaler
The prescaler can divide the timer clock (TIMER_CK) to a counter clock (PSC_CLK) by any
factor between 1 and 65536. It is controlled by prescaler register (TIMERx_PSC) which can
be changed on the go but is taken into account at the next update event.
Figure 17-55. Counter timing diagram with prescaler division change from 1 to 2
TIMER_CK
CEN
PSC_CLK
CNT_REG
Reload Pulse
Prescaler CNT
Prescaler BUF
F7
F8
F9
FA FB
FC
01
02
03
0
1
0
1
0
1
0
1
0
1
0
1
PSC value
0
04
UPG
0