Basic timers (TIM6&TIM7)
Figure 204. Counter timing diagram with prescaler division change from 1 to 2
Figure 205. Counter timing diagram with prescaler division change from 1 to 4
20.3.2
Counting mode
The counter counts from 0 to the auto-reload value (contents of the TIMx_ARR register),
then restarts from 0 and generates a counter overflow event.
An update event can be generate at each counter overflow or by setting the UG bit in the
TIMx_EGR register (by software or by using the slave mode controller).
The UEV event can be disabled by software by setting the UDIS bit in the TIMx_CR1
register. This avoids updating the shadow registers while writing new values into the preload
registers. In this way, no update event occurs until the UDIS bit has been written to 0,
however, the counter and the prescaler counter both restart from 0 (but the prescale rate
does not change). In addition, if the URS (update request selection) bit in the TIMx_CR1
690/1731
CK_PSC
CNT_EN
Timer clock = CK_CNT
Counter register
Update event (UEV)
Prescaler control register
Write a new value in TIMx_PSC
Prescaler buffer
Prescaler counter
CK_PSC
CNT_EN
Timer clock = CK_CNT
Counter register
Update event (UEV)
Prescaler control register
Write a new value in TIMx_PSC
Prescaler buffer
Prescaler counter
DocID018909 Rev 11
F7
F8
F9 FA FB FC
00
0
0
0
1
0
F7
F8
F9 FA FB FC
0
0
0
01
02
03
1
1
0 1
0 1
0 1
00
01
3
3
0
1
2 3
0 1
2 3
RM0090
Need help?
Do you have a question about the STM32F405 and is the answer not in the manual?