Timer Prescaler Calculator
Forward: clock + prescaler + period → frequency. Reverse: target frequency → best register pair.
How timer scaling works
Most MCU timers (STM32-style) chain a 16-bit prescaler and a 16-bit auto-reload register:
The prescaler sets the tick duration; the period register counts ticks. For a target frequency this tool searches all valid 16-bit pairs and returns the one with the lowest error — preferring the largest ARR, which also maximizes PWM duty resolution. Both registers hold value − 1: a 72 MHz clock with PSC = 71 ticks at 1 MHz, and ARR = 999 then overflows at exactly 1 kHz.
More in Embedded & MCU
UART Baud Rate Calculator Divider, actual baud and error % for any clock — with a common-baud table. ADC Resolution Calculator LSB size, counts, ideal SNR and code ↔ voltage conversion. Q-Format Converter Float ↔ Q7/Q15/Q31 with hex, quantization error and the fixed-point arithmetic rules. ASCII / Text Converter Text ↔ hex/dec/bin/oct byte codes with C array output and a live per-character breakdown.