PCF8574 I²C I/O expander
Add eight GPIO lines through I²C and understand why the PCF8574 port must be written high before it is read as an input.

Port behavior
Each line can sink current when commanded low. A high write releases the line to a weak source after the initial transition so an external circuit can pull it low for input use.
Address pins
A0, A1 and A2 select one of eight addresses. Check the chip variant before assuming the address used by another board. The SDA and SCL pull-ups must be compatible with every connected device.
LCD backpack trap
The expander’s data pins can be assigned differently on different display boards. A successful I²C scan confirms the bus address but does not identify which pin controls enable or backlight.
Specifications
| Parameter | Value or condition | Source |
|---|---|---|
| Recommended supply | 2.5–6 V | Texas Instruments |
| Port capacity | Eight quasi-bidirectional digital I/O lines | Texas Instruments |
Compatibility and practice
Verify the exact chip suffix, bus voltage and pin mapping, especially on LCD backpacks.
Related components
Sources and datasheets
- PCF8574 Remote 8-Bit I/O Expander · Texas Instruments