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.

i2c single byte read

Other Parts Discussed in Thread: MSP430F5438A

Hi i really want to understand how the i2c single byte read works. I have given below the format. 

my slave device address is 0x55. The register to be read is 0x09. My master is msp430f5438a. 

  • Please use the forum search. The task of reading a register from an I2C slave is always the same and this topic has been covered in previous (recent) threads.

    Basically, you start a master transmit operation in which you send the register address to the slave, then you do a repeated start of a read operation and receive the register content.

    The UCTR bit (R/W bit) and the UCBxI2CSA register (7 bit slave ADDR) provide the data for the generation of the start byte, so you ony need to send the register address (CMD) or receive DATA.

    The users guide contains nice timetables that tell you what to do when (and what happens when) in a transmission.

    A more detailed program flow is in the said forum threads.

**Attention** This is a public forum