PWM Calculator
PWM (Pulse Width Modulation) is a technique used in microcontrollers to control power delivery to components like motors, LEDs, and servos by rapidly switching a signal on and off — and the PWM Calculator works out the exact timer register values you need for your hardware. Enter your clock frequency, prescaler value, timer resolution, desired PWM frequency, and duty cycle to get the actual PWM frequency, TOP register value, and frequency error. Secondary outputs include duty cycle resolution, calculated pulse width, and period.
Results
Actual PWM Frequency
--
TOP Register Value
--
Duty Cycle Resolution
--
Frequency Error
--
Calculated Pulse Width
--
Period
--