www.geehy.com Page 101
Figure 25 Timing Diagram when Division Factor is 1 or 2 in Center-aligned Mode
CNT_EN
CK_CNT
04
03
02
01
00
01
02
03
04
03
02
01
Counter register
Counter underrun
Counter overrun
CK_PSC
PSC=1
CK_CNT
00
01
0003
0002
0001
0000
0001
0002
0003
Counter overrun
Update event
PSC=2
Counter register
Update event
Repeat counter REPCNT
There is no repeat counter REPCNT in the basic/general-purpose timer, which
means that when the overrun event or underrun event occurs in the
basic/general-purpose timer, an update event will be generated directly; while in
the advanced timer, because of the existence of the repeat counter, when an
overrun/unerrrun event occurs to the advanced timer, the update event will be
generated only when the value of the repeat counter is 0.
For example, if the advanced timer needs to generate an update event when an
overrun/underrun event occurs, the value of the repeat counter should be set to
0.
If the repeat counter function is used in the count-up mode, every time the
counter counts up to AUTORLD, an overrun event will occur. At this time, the
value of the repeat counter will be decreased by 1, and an update event will be
generated until the value of the repeat counter is 0.
That is, when N+1 (N is the value of repeat counter) overrun/underrun events
occur, an update event will be generated.