GD32F403xx User Manual
262
generated (on overflow or underflow) depending on when the written CREP value takes effect.
If an update event is generated by software after writing an odd number to CREP, the update
events will be generated on the underflow.
If the next update event occurs on overflow after
writing an odd number to CREP, then the subsequent update events will be generated on the
overf low.
Figure 16-9. Repetition timechart for center-aligned counter
CEN
3
2
1
0
1
2
.
98
99
98
2
1
0
Underflow
Overflow
TIMERx_CREP = 0x0
TIMER_CK
1
2
.
98
99
98
2
UPIF
TIMERx_CREP = 0x1
1
0
1
2
98
99
98
97
UPIF
UPIF
TIMERx_CREP = 0x2
PSC_CLK
Figure 16-10. Repetition timechart for up-counter
CEN
CNT_REG
96
97 98 99 0
1
98 99 0
1
98 99
Underflow
Overflow
TIMERx_CREP = 0x0
TIMER_CK
0
1
98 99
0
1
UPIF
TIMERx_CREP = 0x1
98 99
0
1
98 99
0
1
UPIF
UPIF
TIMERx_CREP = 0x2
PSC_CLK