STM32 PWM prescaler calculator for PWM frequency 2022.02.01 at 15:13
Just to have a quick way to calculate the prescaler value for required PWM frequency… Made this while testing the Nucleo-F446RE devboard with STM32F446RE processor, should be valid for all STM32-s.
Clock frequency (MHz): | |
Wished PWM steps: | |
Wished PWM frequency (Hz): |
Calculated prescaler value: | |
Rounded prescaler value: |
Leave a Reply