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/TMS320F28377S: I2C STP Bit Never Detected

Part Number: TMS320F28377S

Tool/software: Code Composer Studio

Hello,

I am not detecting a stop bit after my I2C write function. I send the message with a stop. I2cMsg.MsgStatus = I2C_MSGSTAT_SEND_WITHSTOP (0x0010). At the end of I2C write function, I use the following code: 

I2cbRegs.I2CMDR.all = 0x6E20;

return I2C_SUCCESS;

That line of code should set the start and stop bits (as well as others). Instead, using a break point, I find that  I2cRegs.I2CMDR.all = 0x4620. These two hex values differ in the start and stop bits.

I understand the start bit being reset after initiating the start, but it seems that the stop bit never actually gets set. This was noticed because the bus busy bit is set and I don't enter my "stop bit detected" portion of my code. I am able to toggle it manually in the expressions window, but it takes more than one attempt.

Any insight is appreciated.

Thank you,

Cameron