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.

MSP430I2041: How to determine read or write in I2C slave?

Part Number: MSP430I2041

I am writing an I2C slave for the MSP430i2041 and I would like to be able to detect whether the master is writing or reading. I2C dictates that when the master wants to write it sends (address << 1) | 0 and when it wants to read it sends (address << 1) | 1, with the final bit indicating write (0) or read (1).

On the MSP side, how do I detect the read / write bit? I have examined the UCBxADDRX register after receiving UCSTTIFG and it contains only the right justified address. It does not seem to include the read/write bit.

Is there some way to get the read/write bit?

Thanks,

Jason

**Attention** This is a public forum