MCU Timer Prescaler / Auto-Reload Calculator

Enter your timer clock and desired output frequency to get PSC/ARR values (16-bit registers, common STM32/general MCU timer style).

Ad slot

How this works

Uses freq = Fclk / ((PSC+1) × (ARR+1)), searching PSC from 0 upward for the first value where ARR fits in 16 bits (0–65535) and error is minimized. This matches the standard STM32 general-purpose timer model; check your specific MCU's register widths (some timers are 32-bit) if this doesn't match your part.

← All EmbedCalc tools