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

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

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

Jump to solution
879 Views
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,

Labels (1)
Tags (1)
0 Kudos
1 Solution
509 Views
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.

View solution in original post

0 Kudos
1 Reply
510 Views
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 Kudos