Basic timers (TIM6/TIM7)
Figure 484. Counter timing diagram, update event when ARPE=1 (TIMx_ARR
Counter register
Counter overflow
Update event (UEV)
Update interrupt flag
Auto-reload preload
Auto-reload shadow
Write a new value in TIMx_ARR
Dithering mode
The time base effective resolution can be increased by enabling the dithering mode, using
the DITHEN bit in the TIMx_CR1 register. This affects the way the TIMx_ARR is behaving,
and is useful for adjusting the average counter period when the timer is used as a trigger
(typically for a DAC).
The operating principle is to have the actual ARR value slightly changed (adding or not one
timer clock period) over 16 consecutive counting periods, with predefined patterns. This
allows a 16-fold resolution increase, considering the average counting period.
The
Figure 485
periods.
1408/2083
tim_psc_ck
CEN
tim_cnt_ck
F0
(UIF)
F5
register
register
below presents the dithering principle applied to 4 consecutive counting
preloaded)
F1
F2
F3
F4
F5
F5
RM0440 Rev 1
00
02
01
03
04
05
36
36
RM0440
06
07
MSv62304V1
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?
Questions and answers