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

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

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

ソリューションへジャンプ
639件の閲覧回数
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 件の賞賛
返信
1 解決策
382件の閲覧回数
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 件の賞賛
返信
1 返信
383件の閲覧回数
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 件の賞賛
返信