Skip to main content
Visitor II
November 7, 2011
Question

STR750 I2C PROBLEM WITH AF

  • November 7, 2011
  • 1 reply
  • 669 views
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
    This topic has been closed for replies.

    1 reply

    Graduate II
    November 14, 2011
    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?