Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
167
/
631
Figure 10-7 A center-aligned sequence diagram that includes counter overflows and underflows (ARPEN = 1)
Repetition counter
The basic unit of Section 10.3.1 describes the conditions for generating an update event (UEV). An update event
(UEV) is actually only generated when the repeat counter reaches zero, which is valuable for generating PWM signals.
CK_PSC
CNTEN
Timer clock = CK_CNT
Counter register
Update event
(
UEV
)
05
06
04 03 02 01 00 01 02 03 04 05 06 07
Counter underflow
Update interrupt flag(UDITF)
Auto-reload preload register
FD
36
Write a new value in TIMx_AR
Auto-reload active register
FD
36
Counter register
Update event
(
UEV
)
F8
F7
F9 FA FB FC 36 35 34 33 32 31 30 2F
Counter overflow
Update interrupt flag(UDITF)
Auto-reload preload register
FD
36
Write a new value in TIMx_AR
Auto-reload active register
FD
36
Counter
underflow
Counter
overflow
CK_PSC
CNTEN