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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,645件の閲覧回数
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,275件の閲覧回数
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,276件の閲覧回数
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 件の賞賛
返信