Tool/software: Code Composer Studio
I need to write data to I2C expander on EVM board and then read. But there are some difficulties.
I can't change I2C master from transmitter to receiver when I try.
It's simple to write something, but then when I write I2C_CON_TRX_RCV state to I2C_CON register after transmitting the register doesn't change. It's still I2C_CON_TRX_TRX.
But I noted one thing. I2C_IRQSTATUS_RAW has I2C_IRQSTATUS_RAW_BB (bus busy) bit which doesn't change too. I think it bothers me.
What do I need to do to change I2C_IRQSTATUS_RAW_BB bit from 1 to 0?