LabWired The easy way to build hardware
I²C device

PCF8574 I/O Expander

The PCF8574 I/O Expander is an I²C device in the LabWired part catalog. Its catalog type is pcf8574. It connects to the MCU over I²C at the default address 0x20. The catalog gives a supply range of 2.5–6 V. It has 13 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.

From the catalog: I²C quasi-bidirectional I/O expander; port levels host-readable, not a full GPIO fabric.

Key facts

CategoryI²C devices
Catalog typepcf8574
InterfaceI²C
Default I²C address0x20 (32 decimal)
Supply range2.5–6 V
Pins13
DatasheetTexas Instruments PCF8574 datasheet

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

PCF8574 I/O Expander pinout

PinElectrical typeFunction
VCC Power input Supply
GND Power input Supply
SDA Open-drain I²C data (SDA)
SCL Open-drain I²C clock (SCL)
INT Output —
P0 Passive —
P1 Passive —
P2 Passive —
P3 Passive —
P4 Passive —
P5 Passive —
P6 Passive —
P7 Passive —

How to simulate the PCF8574 I/O Expander in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the PCF8574 I/O Expander (catalog type pcf8574).
  3. Connect VCC and GND to the supply and ground of the board. Use a supply inside the catalog range of 2.5–6 V.
  4. Connect SDA and SCL to the I²C data and clock pins of the board.
  5. Connect INT, P0, P1, P2, P3, P4, P5, P6 and P7 as your circuit needs.
  6. Run the firmware. It finds the part on the I²C bus at 0x20 and reads and writes it as on hardware.

Related I²C devices

All I²C devices · All parts

Further reading

Modelled from Texas Instruments PCF8574 datasheet.