Components / Integrated circuits / PCF8574 I/O expander

PCF8574 I/O expander

Adds 8 digital pins over I2C. Used on LCD backpacks.

Function8-bit I2C I/O expander
Supply voltage2.5 to 6 V
Inputs and outputs8 quasi-bidirectional pins
Speed100 kHz I2C
Integrated CircuitsReviewedMPN PCF8574Used in 1 project
PCF8574
In short

What is the PCF8574 I/O expander and what is it used for?

Adds 8 digital pins over I2C. Used on LCD backpacks. Makers use it for more pins for buttons and LEDs.

How it works

An I2C shift register with weak pull-ups that can be read back.

Key specifications

Integrated circuit specValue
Function8-bit I2C I/O expander
Supply voltage2.5 to 6 V
Inputs and outputs8 quasi-bidirectional pins
Speed100 kHz I2C
PackageDIP-16 or SO-16
Watch out forAddress 0x20 to 0x27 (PCF8574A: 0x38 to 0x3F)

Pinout

1to 3A0 to A2 address select
4to 7P0 to P3
8VSS
9to 12P4 to P7
13INT, interrupt output (open drain)
14SCL
15SDA
16VDD

How to use it

Address is 0x20 to 0x27 (PCF8574A: 0x38 to 0x3F). The pins are quasi-bidirectional: write 1 to a pin to use it as an input. They sink current well but source very little, so drive LEDs from VCC into the pin (active LOW). It is the chip on most I2C LCD backpacks.

Applications

Alternatives

Buy at

Common questions

What is the PCF8574 I/O expander used for?

In maker projects: more pins for buttons and LEDs.

How does the PCF8574 I/O expander work?

An I2C shift register with weak pull-ups that can be read back.

What voltage does the PCF8574 I/O expander need?

2.5 to 6 V.

What can I use instead of the PCF8574 I/O expander?

MCP23017 16-bit I/O expander.