You are here

I2C slave | Cypress Semiconductor

I2C slave

Summary: 3 Replies, Latest post by Bob Marlowe on 15 Oct 2015 04:52 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
zabc's picture
User
17 posts

Hi, i need some help with programming a I²C slave. A function should called when the slave-address followed by a Stop condition appears on the I2C bus. In other words: A ADC-conversion should initiated by signaling a STOP condition after the slave has been addressed. Purpose is to save some bus overhead, because i don't have to transfer useless bytes. I hope you understand my problem. Has anyone an idea to do that? best regards

user_1377889's picture
User
9581 posts

Did you try

I2C_SlaveStatus(() and check for I2C_SSTAT_WR_CMPLT
Slave write transfer complete. Set when a Stop condition is received.

 

Bob

zabc's picture
User
17 posts

The stauts "I2C_SSTAT_WR_CMPLT"  is set when a STOP condition is received?

That would help, i thought it will set when the buffer is complete.

I will try that, thanks bob.

user_1377889's picture
User
9581 posts

At least the datasheet states so. Please, be so kind to keep us informed.

 

Bob

Log in to post new comments.