www.geehy.com Page 135
Figure 45 Timing Diagram when Division Factor is 1 or 2 in Count-down Mode
CNT_EN
CK_CNT
06
05
04
03
02
01
00
26
25
24
23
22
Counter register
Counter overrun
Update event
CK_PSC
PSC=1
CK_CNT
21
20
0002
0001
0000
0026
0025
0024
0023
Counter overrun
Update event
PSC=2
Counter register
Center-aligned mode
Set to the center-aligned mode by CNTDIR bit of configuration control register
(TMRx_CTRL1).
When the counter is in center-aligned mode, the counter counts up from 0 to the
value of auto reload (TMRx_AUTORLD), then counts down to 0 from the value of
the auto reload (TMRx_AUTORLD), which will repeat; in counting up, when the
counter value is (AUTORLD-1), a counter overrun event will be generated; in
counting down, when the counter value is 1, a counter underrun event will be
generated.