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