General-purpose timers (TIM15/TIM16/TIM17)
Note:
The maximum TIMx_ARR and TIMxCCRy values are 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 duty cycle and / or period changes are spread over 16 consecutive periods, as
described in the
1324/2083
Resolution
Dithering mode disabled: F
Dithering mode enabled: F
Figure 458
below, the dithering mode allows to increase the PWM
Figure 458. PWM resolution vs frequency
PWM resolution
20-bit
16-bit
Dithering
No Dithering
F
PWM
min
Figure 459
below.
F
Tim
⇒
=
------------- -
F
=
pwmMin
F
pwm
pwmMin
pwmMin
RM0440 Rev 1
F
Tim
------------------------------------ -
Max
Resolution
F
Tim
=
--------------- -
65536
F
Tim
=
----------------------------- -
15
65535
+
----- -
16
PWM frequency
RM0440
MSv47464V2
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?