Basic timers (TIM6/TIM7) RM0440
1456/2126 RM0440 Rev 4
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 Figure 491 below, the dithering mode allows to increase the PWM
resolution whatever the PWM frequency.
Figure 491. F
Cnt
resolution vs frequency
The period changes are spread over 16 consecutive periods, as described in the Figure 492
below.
Figure 492. PWM dithering pattern
Resolution
F
Tim
F
Cnt
------------
F
CntMin
F
Tim
Max
Resolution
-------------------------------------
==
Dithering mode disabled: F
pwmMin
F
Tim
65536
----------------
=
Dithering mode enabled: F
pwmMin
F
Tim
65535
15
16
------
+
------------------------------
=
MSv50910V1
Resolution
16-bit
F
Cnt
F
Cnt
min
Dithering
No Dithering
20-bit
MSv47465V1
ARR value
Auto-Reload
value
643
41 40 414140 40
40
40 40 40 4040 40 4040 40
Counter period
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16