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.

CCS/LAUNCHXL2-RM57L: Inablity in setting up the i2c Communication

Part Number: LAUNCHXL2-RM57L

Tool/software: Code Composer Studio

I am trying to use the i2c module in the Master mode to write & read data from a flow sensor. The flow sensor has its 7 bit address address specified as 0x40 (1000000b). The command to read data from the flow sensor is specified as 0x1000. I am sending this data in the packets of 8 bits.  But I am not sure if the connection is being established or not? The communication line waveforms looks like below. Please help!!

  

  • Hello,

    After every 8 data bits in one direction, an "acknowledge" bit is transmitted in the other direction. The transmitter and receiver switch roles for one bit, and the original receiver transmits a single "0" bit (ACK) back. If the transmitter sees a "1" bit (NACK) instead, it learns that:

    • (If master transmitting to slave) The slave is unable to accept the data. No such slave, command not understood, or unable to accept any more data.
    • (If slave transmitting to master) The master wishes the transfer to stop after this data byte.