Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
166
/
631
The update events can be generated each time the counter overflows and each time the counter underflows.
Alternatively, an update event can also be generated by setting the TIMx_EVTGEN. UDGN bit (either by software
or using a slave mode controller). In this case, the counter restarts from 0, as does the prescaler's counter.
Please note: if the update source is a counter overflow, auto-reload update before reloading the counter.
Figure 10-6 Timing diagram of the Center-aligned, internal clock divided factor =2/N
CK_PSC
CNTEN
Timer clock = CK_CNT
Counter register
Update event
(
UEV
)
0003
0002
Counter underflow
Update interrupt flag(UDITF)
0001
0000
0001
0002
0003
CK_PSC
Timer clock = CK_CNT
Counter register
Update event
(
UEV
)
1F
20
01
00
Counter underflow
Update interrupt flag(UDITF)
Internal clock
divided by 2
Internal clock divided
by N