![Nations N32G45 Series User Manual Download Page 273](http://html1.mh-extra.com/html/nations/n32g45-series/n32g45-series_user-manual_3410106273.webp)
273
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
11.3.3
Repetition counter
The basic unit of Section 11.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.
This means that data is transferred from the preload registers to the shadow registers every N+1 counter overflow or
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