cancel
Showing results for 
Search instead for 
Did you mean: 

STR750 I2C PROBLEM WITH AF

tecnico2
Associate
Posted on November 07, 2011 at 16:40

I am developing the firmware to communicate with a peripheral. I started with the example and I managed to communicate correctly.

The problem is that I can�t detect if the peripheral is absent using the AF bit in SR2. I didn't find the way for that bit to be set indicating that the slave isn't present. If someone uses it and wants to helpme I will be very pleasant

           Thanks in advance

#i2c-str7
1 REPLY 1
Posted on November 14, 2011 at 18:16

The problem is that I can´t detect if the peripheral is absent using the AF bit in SR2. I didn't find the way for that bit to be set indicating that the slave isn't present.

 

Doesn't it get set in the absence of the slave device driving ACK low? Which you could presumably emulate by trying to access an I2C device, at an address you know doesn't exist?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..