- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try
I2C_SlaveStatus(() and check for I2C_SSTAT_WR_CMPLT
Slave write transfer complete. Set when a Stop condition is received.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At least the datasheet states so. Please, be so kind to keep us informed.
Bob