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.

TMS320F2800137: Use TDI TDO pin for I2C function

Part Number: TMS320F2800137
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Tool/software:

I now have a pcb that has a jumper for I2C function.

The problem is when I config these two I2C Pin to open drain with pull-up output input by using Sysconfig and after flashing my program, these pins are always at low level not pulled-up, so I cannot use this I2C peripheral.

Later I found that these two I2C pin is also TDI and TDO pin. Is this the reason for my problem?

Also I tried I2C_ex1_master example on a F280025C lauchpad, I measure the signals at GPIO26 and GPIO27 as default of this example but they are always low level two, is something wrong with my launch pad?

Please let me know if anyone has a suggestion. Thanks for reading.

  • Hi Hai,

    Which version of C2000Ware are you using? Can you verify results of the i2c_ex1_loopback example and share your I2C pin settings?

    Best Regards,

    Aishwarya

  • Yes, the i2c_ex1_loopback example does work, 

    I see this config in I2C_ex1_master so I have to measure GPIO26 and GPIO27, right? I checked again, my probe is not contacted well to the SDA and SDL pin so they remained Low, now it seems like when the I2C_write function was called in this example, because there was no slave the the BYTESENT bit was never been set and the while loop waiting for BYTESENT bit run endlessly and SDL Pin remain low, SDA remain High, am I understand it right?

    Also, I tried to add I2C on my project using c2000ware 5.3.0.

    after 

    "GPIO_setPadConfig(myI2C0_I2CSDA_GPIO, GPIO_PIN_TYPE_OD | GPIO_PIN_TYPE_PULLUP);" my SDA pin is change from High to Low.

    here are my config 

  • I tried loop mode in my project it seems working well, but the signal on SDL has High level of 2V, and the SDA pin remain low, is this normal?