Skip to content
A project ofgwark.dev

TI / NXP · Integrated circuit

PCF8574 I2C I/O Expander

Eight more pins over two wires, and the chip on every I2C LCD backpack. Quasi-bidirectional outputs, which is the catch.

Cheat sheet (SVG)
Logic level
2.5-6 V
Package
PDIP-16 / SOIC-16 / TSSOP-16

1.Pinout diagram

Highlight a signalhover to preview, click to keep

Pins 1-8

PCF8574

Pins 9-16

Pin detail

Hover a pin for its mappings and gotchas. Click to keep it here.

Logic level
2.5-6 V
Package
PDIP-16 / SOIC-16 / TSSOP-16

Fig. 1. PCF8574 I2C I/O Expander, PDIP-16. Hover or tap a signal to light up every pin that carries it.

2.Watch out

3.Minimum circuit

What has to go around the chip before it will run.

VCCGNDPCF85744.7 kOhm between SDA (15) and VCC4.7 kOhm4.7 kOhm between SCL (14) and VCC4.7 kOhmWire link between A0 (1) and GNDWire linkWire link between A1 (2) and GNDWire linkWire link between A2 (3) and GNDWire link100 nF between VDD (16) and GND100 nF10 kOhm between INT (13) and VCC10 kOhmVSS (8) to GNDVDD (16) to VCCA0 1A1 2A2 3VSS 8INT 13SCL 14SDA 15VDD 16VDD 16
Fig. 2. Minimum circuit, drawn from Table 1. Dashed parts are optional. Crossing wires are not connected.
Table 1. External parts, and why each one is there.
PartBetween
4.7 kOhmSDA (15) to VCC
4.7 kOhmSCL (14) to VCC
Wire linkA0 (1) to GND
Wire linkA1 (2) to GND
Wire linkA2 (3) to GND
100 nFVDD (16) to GND
10 kOhmoptionalINT (13) to VCC

The outputs are quasi-bidirectional: they can only sink 25 mA and source about 100 uA. Drive LEDs to ground, not from the pin, and write a 1 to a pin before using it as an input.

4.Register configuration

Turning a pin on the diagram into a configured pin.

5.Full pin reference

Every pin, alias and mapping. This is the table that prints.

Table 2. Pin assignments.

Complete pin reference for PCF8574 I2C I/O Expander
PinNameFunctions

Found a wrong pin? The whole board is one file, data/boards/pcf8574.json.

Edit this file on GitHubReport it instead