Kinetis 60n512 + MQX + I2C Slave

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

Kinetis 60n512 + MQX + I2C Slave

1,142 Views
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 Kudos
Reply
2 Replies

635 Views
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 Kudos
Reply

635 Views
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 Kudos
Reply