Basic timers (TIM6/TIM7)
The minimum frequency is given by the following formula:
Note:
The maximum TIMx_ARR value is limited to 0xFFFEF in dithering mode (corresponds to
65534 for the integer part and 15 for the dithered part).
As shown on the
resolution whatever the PWM frequency.
The period changes are spread over 16 consecutive periods, as described in the
below.
Counter period
ARR value
Auto-Reload
41
value
1410/2083
Resolution
Dithering mode disabled: F
Dithering mode enabled: F
Figure 487
below, the dithering mode allows to increase the PWM
Figure 487. F
Resolution
20-bit
16-bit
Dithering
No Dithering
F
Cnt
min
Figure 488. PWM dithering pattern
1
2
3
4
5
40
40
40
41
F
Tim
----------- -
⇒
=
F
=
CntMin
F
Cnt
pwmMin
pwmMin
resolution vs frequency
Cnt
6
7
8
9
10
643
40
40
40
41
40
RM0440 Rev 1
F
Tim
------------------------------------ -
Max
Resolution
F
Tim
--------------- -
=
65536
F
Tim
----------------------------- -
=
15
----- -
65535
+
16
F
Cnt
11
12
13
14
40
40
40
40
RM0440
MSv50910V1
Figure 488
15
16
40
40
MSv47465V1
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?
Questions and answers