Hello,
Im looking into using the TCA9535 in hall sensing EVM where I am a little short on microcontroller pins and thus am interested in using a I/O expander like the TCA9535 to light up all of my LED indicators. Currently I am trying to get a better understanding of the devices operation. As of now, I am under the impression that an given I/O pin on the TCA9535 at basic high level view has a structure similar to the left figure below. Subsequently, the device can be operated like what I have in the two figures on the right. Is this correct?
So now if I had a setup like the following figure below, would turning on an LED be as simple as configuring the pin from input to output. Or do I need to first configure the pin to be an output and then toggle the polarity bit to turn on and off?
If the first option is correct, if I want to light up a LED on P00, would my I2C pattern be like the one below? Or if it is option 2, would the I2C pattern be like the other one below?
