This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCA9555: Sample program to change the state of TCA9555 I2C expander

Part Number: TCA9555


Hi TI engineers

I'm using the AM654x IDK EVM,

and as to the user guide,

the uart could either terminate on a micro B connector or test header,

if I want to change the multiplex state of uart,

I need to change the state of TCA9555 I2C IO expander(set S0 L or H)

but I didn't know how to change it,

would you please give me a sample program to change it?

Best Regards

Hope Chen

  • Hi Hope,

    The I2C address of TCA9555 is configured via the A2:0 pins.  You will use this address as well as a command byte (specifying an internal register) whenever you write to or read from the device.  Example read/write operations are given in Section 9.5 of the TCA9555 datasheet.  To configure a port of TCA9555 as an output, you would write to that output's corresponding bit in the configuration register.  To configure the output state as high or low, you would write to that output's corresponding bit in the output register.

    I hope this helps, and if you have any further questions after reviewing these comments just let us know.

    Regards,
    Max

  • Hi Max

    Thanks for  your reply.

    Best Regards

    Hope Chen