General-purpose timers (TIM2/TIM3/TIM4/TIM5)
Note:
For 16-bit timers, 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).
For 32-bit timers, the maximum TIMx_ARR and TIMxCCRy values are limited to
0xFFFFFFEF in dithering mode (corresponds to 264435454 for the integer part and 15 for
the dithered part).
As shown on the
the PWM resolution.
The duty cycle and / or period changes are spread over 16 consecutive periods, as
described in the
1218/2083
Figure 389
and
Figure 389. PWM resolution vs frequency (16-bit mode)
PWM resolution
20-bit
16-bit
Dithering
No Dithering
F
PWM
min
Figure 390. PWM resolution vs frequency (32-bit mode)
PWM Resolution
32-bit
No Dithering
F(cnt) min
F(cnt) min
No dithering
with dithering
Figure 391
below.
Figure 390
below, the dithering mode allows to increase
Dithering
RM0440 Rev 1
RM0440
PWM frequency
MSv47464V2
PWM frequency
MSv50912V1
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?