PWM frequency & duty calculator
Move between frequency, period, duty cycle, and high/low time. Check the timing before configuring a PWM channel.
Your result
ON YOUR DEVICEEnter your inputs and calculate to see the result.
Check your channel timing.
Example: 100 Hz at 30% duty gives a 10 ms period, 3 ms high time, and 7 ms low time. A duty of 0% is continuously low; 100% is continuously high. The displayed frequency is the configured reference at those limits.
period = 1 / frequency
high time = period × duty / 100
low time = period − high time