www.geehy.com Page 178
Figure 72 Timing Diagram when Division Factor is 1 or 2 in Count-up Mode
CNT_EN
CK_CNT
21
22
23
24
25
26
27
00
01
02
03
04
Counter register
Counter overrun
Update event
CK_PSC
PSC=1
CK_CNT
05
06
0024
0025
0026
0000
0001
0002
0003
Counter overrun
Update event
PSC=2
Counter register
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 general-purpose timer, because of the existence of the repeat counter, when
an overrun/unerrrun event occurs to the general-purpose timer, the update event
will be generated only when the value of the repeat counter is 0.
For example, if the general-purpose 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.