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.

Writing to non existent HW via I2C

Other Parts Discussed in Thread: TMS320F2808

Hi,

I have a thermometer and an EEPROM connected via I2c to my TMS320F2808 device. All working well. In some HW configurations the thermometer does not exist. I see that when I try writing to the I2c when nothing exists in the specified address (when the thermometer really is not on board) the I2c clocks stay on low (waiting for the non existent slave to ack. What is the correct way to work with this so the software does not get stuck and other devices can use I2C?

  • Hi Yona,

    Yona Cohen said:
    What is the correct way to work with this so the software does not get stuck and other devices can use I2C?

    What you can do is, if you don't receive any acknowledgement you can stop the I2C module by configuring: STP bit in I2CMDR.

    Regards,

    Gautam