lpcware

I2C bus help

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by ElecoLPC on Wed Mar 09 09:50:54 MST 2016
Hi all,
I don't understand some part of I2C transmission code, I'll explain if I stop the transmission by set the STO bit in LPC_I2C->CONSET , after this there's a while loop that wait the STO flag return to 0 " while(LPC_I2C->CONSET & I2CONSET_STO); " , but some times the hardware doesn't clear the bit... WHY? And If I in while loop and for example Timer1 set the MROINT the CPU doesn't accept the interrupt but remain in while loop, any idea?

Thanks.

Lorenzo.

Outcomes