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.

I2c receive interrupt is not generating

Other Parts Discussed in Thread: MSP430F5172

Hello,

I'm working on MSP430f5172 I2c driver. Read interrupt is not generating,so data is not reading from UCB0RXBUF.

But If I put breakpoints in between or I go by step by step ,interrupt is generating and reading data.

What can be the issue here?

Please guide me .

Regards,

Sujatha

  • Probably, you have a synchronization problem in your code (the code is advancing while I2C hasn't performed the action yet). While single-stepping, you waste so much time by stepping, that the I2C operation can complete in the meantime.

    For a detailed analysis, you should post the code.

    Note that MSP hardware operations (not only I2C, but also ADC etc.) and MSP CPU run side-by-side. The CPU doesn't automatically wait for a hardware operation to complete.

**Attention** This is a public forum