General-purpose timers (TIM2/TIM3/TIM4/TIM5) RM0440
1264/2126 RM0440 Rev 4
Figure 394. PWM dithering pattern
The auto-reload and compare values increments are spread following specific patterns
described in the Table 277 below. The dithering sequence is done to have increments
distributed as evenly as possible and minimize the overall ripple.
MSv45755V1
Counter period
CCR1 value
Compare1 value
CCR2 value
Compare2 value
CCR3 value
Compare3 value
CCR4 value
Compare4 value
ARR value
Auto-Reload
value
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
322
21 20 20 20 20 20 20 20 21 20 20 20 20 20 20
20
326
21 20 20 20 20 20 21 20 20 20 20
20
21 21 21 21
334
21 20 21
20
21 21 21 2121 21 21 21 21 21 21 21
336
21 2121 21 21 2121 21 21 21 21 21 21 21 21
643
41 40 414140 40
40
21
40 40 40 4040 40 4040 40