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.

TMS320F28035: Reading SCL and SDA pin

Genius 12760 points
Part Number: TMS320F28035

My question is related to the I2C peripheral. If I assign GPIO32 and GPIO33 as SDA and SCL respectively…  Can I still read the digital state of the pin using Gpio Data Register?

 

Example:

SDA_Pin = GpioDataRegs.GPADAT.bit.GPIO32

SCL_Pin = GpioDataRegs.GPADAT.bit.GPIO33

 

Basically I want to implement a reset-routine for the I2C.  This routine will continuously check if SDA or SCL is stuck-low (more than 50-100ms).  If this happens, I will assume that the I2C is stuck for whatever reason and then I will force a reset of the I2C peripheral and also my SW state-machines.

 

Regards, Bernd