I2C bus help

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C bus help

381 Views
lpcware
NXP Employee
NXP Employee
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.

Labels (1)
0 Kudos
1 Reply

337 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos