cancel
Showing results for 
Search instead for 
Did you mean: 

STR750 I2C no device

jpeacock2
Associate II
Posted on June 25, 2008 at 16:14

STR750 I2C no device

2 REPLIES 2
jpeacock2
Associate II
Posted on June 24, 2008 at 22:37

How do I detect if a device does not respond to its bus address when issuing an I2C write from the STR750 as bus master? Since the non-existent device doesn't ACK, does the I2C wait indefinitely, or does some type of interrupt occur? Do I need a bus timer to reset the I2C bus, similar to SMBus?

jpeacock2
Associate II
Posted on June 25, 2008 at 16:14

After some more reading in the manual it seems the AF flag is set if an ACK isn't received, and AF will generate an interrupt. What isn't clear is how to reset the I2C bus in this state. Do I generate a STOP to clear the current bus transaction? What state is the I2C logic left in?

Also, it's not clear what happens if the slave device stops sending while the STR750 is in receive mode. There's no AF flag in that case. Is a timer needed for this case?