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.

Prescaler calculator
Clock frequency (MHz):
Wished PWM steps:
Wished PWM frequency (Hz):
Calculated prescaler value:
Rounded prescaler value:

Leave a Reply

The maximum upload file size: 3 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop files here

*