STM32 Timer Calculator

STM32 Timer Calculator

Calculate STM32 timer prescaler and period for PWM, input capture, and output compare. Supports 16-bit and 32-bit timers.

Key Formulas

fPWM = TimerClock / ((PSC+1)×(ARR+1))

Duty = CCR/(ARR+1)