IT lexicon › Hardware › Pin multiplexing (pinmux)

Pin multiplexing (pinmux)

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

The fact that one physical pin on a chip can be wired to several internal functions, and that firmware has to pick one.

A chip has more peripherals than legs. A given pin may therefore be a GPIO, TX for a UART, the clock for SPI or a timer channel — but only one at a time. STM32 calls the choice an "alternate function" and controls it with four bits per pin in AFRL/AFRH; Linux describes the same thing in the devicetree through the pinctrl framework.

The pinmux is where hardware and software design collide. Two peripherals that can only live on the same pin can't be used together, and that tends to be discovered after the board has been ordered. Tools like STM32CubeMX exist largely to solve that particular puzzle.

← Back to the lexicon