IT lexicon › Hardware › Auto-reload register (ARR)

Auto-reload register (ARR)

Hardware På svenska → Updated: 2026-11-05

The value a hardware timer counts up to before wrapping — the thing that sets the length of each period.

An up-counting timer runs from 0 to the value in ARR, fires an update event and starts over. The period is (PSC + 1) × (ARR + 1) clock cycles, with PSC being the prescaler. A 72 MHz timer clock with PSC = 71 and ARR = 999 gives exactly one millisecond. The same register sets PWM frequency, while the compare register sets the pulse width.

On STM32 it can be buffered: with the ARPE bit set, a new value only takes effect at the next update event. Without it, a write in mid-period can put ARR below where the counter already is, and the timer then counts all the way to 65,535 or 2³² before finding its way back. On a scope it shows up as one lone, very long pulse that nobody can reproduce on demand.

← Back to the lexicon