repost from Kinetis section: Kinetis 60n512 + MQX + I2C Slave

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

repost from Kinetis section: Kinetis 60n512 + MQX + I2C Slave

Jump to solution
569 Views
eichest
Contributor I

Hello,

 

I already posted this problem in the Kinetis section, Kojto advised me to repost it in this section (http://forums.freescale.com/t5/Kinetis-ARM-Cortex-M4/Kinetis-60n512-MQX-I2C-Slave/td-p/96095).

 

I have some problems with the I2C Slave driver on the Kinetis 60n512 with MQX.

 

The main Problem is that I have to detect a repeated START or a STOP signal. This is necessary because I don't know the exact size of a package when the master begins to write the data. Is there a possibility to read out somehow when the master finished with writing? In the datasheet I didn't find a flag which would signaling this event.

 

I think the Kinetis controller doesn't provide a way to detect the end of a message or am I wrong? So we normally have to know the size of a transmission (even as slave).

 

Regards,

Stefan

0 Kudos
1 Solution
312 Views
PetrM
Senior Contributor I

Hello,

 

yes, that's the problem. There is no indication of those important bus events.

I2C driver in MQX 3.8 does this using polling of the bus state.

Please check I2C_slave example to see how to use the driver to transfer unknown size of packets.

 

Regards,

PetrM

View solution in original post

0 Kudos
1 Reply
313 Views
PetrM
Senior Contributor I

Hello,

 

yes, that's the problem. There is no indication of those important bus events.

I2C driver in MQX 3.8 does this using polling of the bus state.

Please check I2C_slave example to see how to use the driver to transfer unknown size of packets.

 

Regards,

PetrM

0 Kudos