You are viewing an older revision! See the latest version

PCA9675_IO_Expander

Table of Contents

  1. PAC9675 IO Expander

PAC9675 IO Expander

The PCA9675 is an I2C based device with 16 quasi bidirectional IO pins configurable as either input or output. The 16 pins are each capable of sinking 25mA when driving loads and is therefore useful as an LED driver. The IO pins can also be turned into input mode as well as be used to read digital inputs from switches.

It is important when driving this device to ensure that the correct IO configuration is set as a pin configuraed for output mode could conterst with an input signal. The worst case scenario is when a digital input pin is has a logic 1 applied to it and the pin is inadvertantly driven as an output with logic 0 output. In thios case scenario a high level of current will flow into the device causing possible damage.

With this suite of software a class has been created for the PCA9675. This class allows the user to select which I2C peripheral he wants to use with the device and to also select a custom I2C slave address. The slave address must be the same as what is configured in hardware for the device, but the C++ class does allow for multiple devices connected to the same I2C bus.


All wikipages