I2C slave : How to know the end of transaction/STOP-detection

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

I2C slave : How to know the end of transaction/STOP-detection

跳至解决方案
1,630 次查看
shoichikojima
Contributor I

Hi, fellow developers,

I'm going to implement I2C feature on Kinetis-serise MCUs.

As its Slave-behaving control, how can I know the STOP condition on the bus ?

Furtherly, how about detecting ReSTART condition ?

Such event is not listed in possible causes of IICIF=1.

Regards,

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,260 次查看
adriansc
Contributor IV

Hello Shoichi,

You can check the stop condition register with  I2Cx_FLT STOPF bit. The description is in the image below.

pastedImage_0.png

Try using an Oscilloscope and check that the frame is right or if something is lost.

Hope this helps.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,261 次查看
adriansc
Contributor IV

Hello Shoichi,

You can check the stop condition register with  I2Cx_FLT STOPF bit. The description is in the image below.

pastedImage_0.png

Try using an Oscilloscope and check that the frame is right or if something is lost.

Hope this helps.

0 项奖励
回复