Electrical – Regarding pinout of PCF8574 I2C 8-bit expander

i2c

I need some help understanding the pins of I2C 8-bit expander (PCF8574AT) that looks like this,

https://mbrobotics.es/blog/arduino-lcd-1602-i2c/

In the datasheet for this part, there is a pinout diagram for the 16 pin header but nothing is mentioned about the four pins on the top of the module which is SDA, SCL, VSS, and VDD but these already exist in the 16 pin header.

Datasheet for the expander,
https://www.nxp.com/docs/en/data-sheet/PCF8574_PCF8574A.pdf

Please help me understand why there are two sets of these pins. Basically, I want to understand how the on-chip IC of the module is wired to the header on its side plus the header on top.

Edit: Added datasheet.
Edit: Clarification.

Best Answer

enter image description here enter image description here

The 4-pin header J1 is what you connect to your Arduino (or other micro-controller). It has ground, power, and the two I2C lines.

The 16-pin header J2 is what you connect to the HD44780 LCD. 4 pins are not used because the unit is intended to use 4-pbit mode. The header has the same ground and power pins as the 4-pin header, because these must be passed through to the LCD. The I2C lines (scl, sda) are not on this 16-pin header.