AnsweredAssumed Answered

Slave I2C No interrupt when Data Received

Question asked by Ken Su on Aug 7, 2017
Latest reply on Aug 8, 2017 by Kerry Zhou

Hi,

 

I am using LPC1830 slave i2c, there is an issue.

 

For slave i2c, it use interrupt to receive data. I check the i2c waveform, the LPC1830 HW is correct, all bytes from master are received because each byte have ACK from LPC1830.

 

But in SW, the interrupt only happen when all transaction is complete, it means the interrupt will only 1 times no matter how many bytes send.

 

The correct behavior should be each byte will trigger an interrupt and the i2c slave RX buffer receive these bytes.

 

I don't know why only all transaction is complete, and it will trigger one interrupt.

(I had evaluate the same source code on LPC1857, it's work. But for LPC1830, it's fail)

Please give me some comment.

 

Thanks

Ken

Outcomes