IT lexicon › Hardware › Special function register (SFR)

Special function register (SFR)

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

The registers at fixed addresses through which firmware configures and reads a microcontroller's peripherals.

The name comes from the Intel 8051 (1980), which set aside addresses 0x80–0xFF of its internal data space for timers, the serial port, port latches and interrupt control. SFRs whose address was divisible by eight were also bit-addressable — an early answer to the problem ARM would solve much later with bit-banding.

Today the term is looser: any peripheral register in a memory-mapped address space tends to get called an SFR, especially by Microchip and in datasheet register chapters. In C you reach them through volatile pointers or the structs in the vendor's CMSIS headers. Reads can have side effects — reading a UART data register drains it — which is exactly why the optimiser is never allowed to guess.

← Back to the lexicon