RM0440
Counter register
Counter overflow
Update event (UEV)
Update interrupt flag
Auto-reload preload
Auto-reload shadow
Write a new value in TIMx_ARR
29.4.5
Repetition counter
Section 29.4.3: Time-base unit
respect to the counter overflows. It is actually generated only when the repetition counter
has reached zero. This can be useful when generating PWM signals.
This means that data are transferred from the preload registers to the shadow registers
(TIMx_ARR auto-reload register, TIMx_PSC prescaler register, but also TIMx_CCRx
capture/compare registers in compare mode) every N counter overflows, where N is the
value in the TIMx_RCR repetition counter register.
The repetition counter is decremented at each counter overflow.
The repetition counter is an auto-reload type; the repetition rate is maintained as defined by
the TIMx_RCR register value (refer to
software (by setting the UG bit in TIMx_EGR register) or by hardware through the slave
mode controller, it occurs immediately whatever the value of the repetition counter is and the
repetition counter is reloaded with the content of the TIMx_RCR register.
Figure 444. Counter timing diagram, update event when ARPE=1
tim_psc_ck
CEN
tim_cnt_ck
F0
(UIF)
F5
register
register
describes how the update event (UEV) is generated with
General-purpose timers (TIM15/TIM16/TIM17)
(TIMx_ARR preloaded)
F1
F2
F3
F4
F5
F5
Figure
445). When the update event is generated by
RM0440 Rev 1
00
02
01
03
04
05
36
36
06
07
MSv62304V1
1311/2083
1399
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?
Questions and answers