MCU PWM Frequency & Duty Cycle Calculator
Calculate timer PWM frequency fPWM, period T, duty cycle percentage, and resolution bits for STM32, ESP32, Arduino, and 8051 microcontrollers.
STM32 formula uses (PSC + 1) divisor
STM32 uses (ARR + 1) counts per cycle
Results
| PWM Output Frequency fPWM | — |
| PWM Signal Period T | — |
| High Level Duty Cycle | — % |
| High Pulse Time Thigh | — |
| Duty Cycle Resolution | — steps (— Bits) |
Formulas (Edge-aligned)
fPWM = fCLK / [ (PSC + 1) × (ARR + 1) ]
Duty (%) = [ CCR / (ARR + 1) ] × 100%
dgbzxny | Bozhong New Materials
Get Free Samples & Technical Support
We provide SMT copper bars, SMT nuts, and PCB terminals for your projects.