Kinetis 60n512 + MQX + I2C Slave

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Kinetis 60n512 + MQX + I2C Slave

1,297 次查看
eichest
Contributor I

Hello everyone

 

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? I didn’t find an option in the status register or somewhere else.

 

Regards,

Stefan

0 项奖励
回复
2 回复数

790 次查看
c0170
Senior Contributor III

Hi eichest,

 

can you repost or move this thread to the MQX section. You might find help faster there!

 

Regards,

MartinK

0 项奖励
回复

790 次查看
eichest
Contributor I

Hy Kojto, thanks for your reply!

 

I will also post the thread in the MQX section, as you said.

 

But I think the problem has more to do with the Kinetis controller itself and not really with MQX. I found in the datasheet of the K60 no way to detect the end of a message. The only way to detect it somehow would be to poll the BUSY flag in the status register, but if a repeated start signal will be sent this has no effect because the bus is still busy. For my appliance the most interesting way to detect it would be due an interrupt, but I don't think this is possible.

0 项奖励
回复