GD32A50x User Manual
332
the counter behavior in different clock frequencies when TIMERx_CAR = 0x99.
Figure 18-6. Timing chart of down counting mode, PSC=0/2
CEN
PSC_CLK
CNT_REG
5
4
3
2
1
0
99
98
97
96
95
94
93
92
Update event (UPE)
Update interrupt flag (UPIF)
CNT_REG
3
Update event (UPE)
Update interrupt flag (UPIF)
Hardware set
Software clear
Hardware set
PSC = 0
PSC = 2
TIMER_CK
91
PSC_CLK
2
1
0
99
98
Figure 18-7.
Timing chart of down counting mode
, change TIMERx_CAR on the go
TIMER_CK
CEN
PSC_CLK
CNT_REG
5
4
3
2
1
0
99
98
97
96
95
94
93
92
Update event (UPE)
Update interrupt flag (UPIF)
Auto-reload register
120
99
change CAR Vaule
CNT_REG
5
4
3
2
1
0
99
1
0
120
Update event (UPE)
Update interrupt flag (UPIF)
Auto-reload register
120
99
change CAR Vaule
120
99
Auto-reload shadow register
...
Hardware set
Hardware set
Software clear
Hardware set
ARSE = 0
ARSE = 1
98
97
120
change CAR Vaule
119 118
120