I/O port expanders add digital connections to a host through a serial interface. Pin count, bus type, direction controls and interrupt behavior distinguish devices for status inputs and electronic control outputs.
More pins from a serial connection
A port expander exposes digital pins through registers accessed by the host. This supports equipment with more status or control signals than the processor can conveniently connect directly. The serial bus carries register operations, while the external pins connect to the local digital signals.
I2C and SPI families use different addressing and selection arrangements. Hardware address pins can support several devices on a shared bus, while chip-select arrangements provide another method of choosing a target. The exact pin functions and supported directions belong to the expander specification.
- Direction and output state. Configuration registers determine the function of supported pins. The reset state is important to the external circuit before software has written new settings.
- Input interpretation. Input registers expose pin states to the host. Polarity and other input features vary by family and do not change the electrical limits of the pin.
- Output loading. A GPIO output provides a specified logic drive. Its per-pin and combined limits do not make it a general-purpose power driver.
Interrupts communicate a change
Interrupt outputs can notify the host of configured input events. Their polarity, open-drain or other output behavior, and event-clearing rules determine the host connection. Interrupt support avoids treating every input check as an unrelated polling operation.
Port expansion differs from adding an asynchronous serial channel. UART interface ICs exchange framed characters, while an I/O expander exposes individually controlled or monitored digital pins.