2011-11-07 07:40 AM
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-str72011-11-14 09:16 AM
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?