I2C bus help

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C bus help

819 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

775 次查看
lpcware
NXP Employee
NXP Employee
bump
0 项奖励
回复