EMBEDDED TOOLKIT

SYSTEMS R&D // DEV_TOOLS SUITE

Tools (65)

timer pwm calculator

SYSTEM ONLINE

Timer Registers (TIMx)

Physical prescaler = PSC + 1 = 84
PWM Resolution = 1000 steps

Parameter Results

Timer Tick Frequency
1,000,000 Hz
Single tick resolution: 1.00 µs
Update Event Interrupt / PWM Frequency
1,000 Hz
Duration (Period): 1.0000 ms
PWM Duty Cycle
25.10 %

📖 STM32 Timer & PWM Calculator

Generating time interrupts and PWM is the most common task in STM32. Hardware timers require values reduced by 1 (since they count from zero). The calculator accepts exact values as you would write them to registers in C code, and visualizes the actual impact on the hardware.

  • Prescaler (PSC): Divides the main APB bus clock (e.g., 84 MHz / 84 = 1 MHz tick). If you write `83` in the code, the prescaler is 84.
  • ARR (Auto-Reload): Defines the moment the timer resets. `ARR=999` gives exactly 1000 steps for a full period (great for PWM).
  • CCR (Capture/Compare): Decides the duration of the high state in PWM mode. Changing CCR continuously modulates the duty cycle without changing the MCU frequency.