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.

TMS320F28031: Is emulating I2C using gpio or SCI or SPI possible?

Part Number: TMS320F28031

I have a requirement where i want two separate I2C communication but controller support one I2C so i want to emulate the second. Is it possible to do so using ether gpio's or SCI or SPI or any other means?

pl suggest and possible and have some sample code can u pl share.

Thanks,

Romi Srivastava

  • I2C is intended to operate on a bus. is there any reason why the two devices you intend to communicate with can't be set up with different addresses? Is the F28031 a master or slave on the I2C bus?

    That being said, your best bet is to bit-bang using GPIOs. I don't have example code, but I am aware that it has been done before.

    Thanks,
    Mark
  • Romi,

    Do you have any replies to my queries? If you have solved your issue, please post a solution so that others may learn from your experience.