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
Solved! Go to Solution.
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
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