General-purpose timers (TIM15/TIM16/TIM17) RM0440
1370/2126 RM0440 Rev 4
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 Figure 462 below, the dithering mode allows to increase the PWM
resolution whatever the PWM frequency.
Figure 462. PWM resolution vs frequency
The duty cycle and / or period changes are spread over 16 consecutive periods, as
described in the Figure 463 below.
Resolution
F
Tim
F
pwm
--------------
F
pwmMin
F
Tim
Max
Resolution
-------------------------------------
==
Dithering mode disabled: F
pwmMin
F
Tim
65536
----------------
=
Dithering mode enabled: F
pwmMin
F
Tim
65535
15
16
------
+
------------------------------
=
MSv47464V2
PWM resolution
16-bit
PWM frequency
F
PWM
min
Dithering
No Dithering
20-bit