Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
168
/
631
This means that data is transferred from the preload registers to the shadow registers every N+1 counter overflow or
underflow, where N is the value in the TIMx_REPCNT.
The repetition counter is decremented:
In the up-counting mode, each time the counter reaches the maximum value, an overflow occurs.
In down-counting mode, each time the counter decrements to the minimum value, an underflow occurs.
In center-aligned mode, each time the counter overflows or underflows.
Its repetition rate is defined by the value of the TIMx_REPCNT register.
Repetition counters feature automatic reloading. The update event ( generated by setting TIMx_EVTGEN.UDGN or
hardware through slave mode controller) occurs immediately, regardless of the value of the repeat counter.
Figure 10-8 Repeat count sequence diagram in down-counting mode
Software clear
02
01
00
36
35 ... 01
00
36
35 ... 01
00
36
35 ... 01
00
36
35 ... 01
00
36
35 ... 01
00
36
35
03
CK_PSC
CNTEN
Timer clock=
CNT_CLK
Underflow
Overflow
UDITF
UDITF
UDITF
TIMx_REPCNT = 0x0
TIMx_REPCNT = 0x1
TIMx_REPCNT = 0x2
Counter
register