This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HDC1010: Facing issue with I2C Protocal

Part Number: HDC1010

Hi,

I am using HDC1010 with Xilinx Spartan6 FPGA and I am trying access it through I2C.

When i send slave address(0x40), then a NACK is coming from slave(HDC1010).

Do any settings needs to done  before accessing I2C with slave adddress?

  • Hello Akarsh,

    Is the NAK coming for the first transaction for Slave address of 0x40 or for every transaction?

    Also can you please provide the information
    1. ADDR0-1 pin connection in your schematic
    2. Did you perform a check of all the Slave Address to make sure it is not a lose soldering
    3. Is this happening on every system or just one of the units?
  • Hello Sir,

    Is the NAK coming for the first transaction for Slave address of 0x40 or for every transaction?

    Yes, NAK is coming in both read/write transaction.

    Also can you please provide the information
    1. ADDR0-1 pin connection in your schematic

    ADDR0-1  - Both are connected to ground.
    2. Did you perform a check of all the Slave Address to make sure it is not a lose soldering

    Yes, We have checked.
    3. Is this happening on every system or just one of the units?

    we have only one board, because its prototype for us.

  • Hello Akarsh

    Can you please share your schematic for the design along with a scope snapshot of the failing transaction?

    What I mean by NAK for the first transaction, is if you try to perform a write to register 0x02 10 times, does it NAK 10 times.

    Please check if the device is powered up correctly. Make an optical inspection of the slave device to make sure soldering is correctly done and there are no other shorts. Also one prototype unit is not sufficient to make sure it is not a faulty device. Try swapping out the slave device if nothing else works and see if it is a faulty slave device issue.,
  • Dear Sir,

    pl. find the attached schematic & scope snapshot.

    Also we have changed the device with new one on the board, but still we get NAK.

    Pl. do help.

       

  • Hello Akarsh

    The schematic looks correct. However looking at the waveform I see a potential issue. The Start condition for the bus does not seem correct. The SDA should not be high when the SCL has not yet transitioned.
  • Dear Sir,

    Sir, as per datasheet my start conditions seems to be correct, if you thing their is any problem in start condition,pl. correct me.

    Also tell me, to start this device any power on sequence or any initialization is required?

    Regards,

    Akarsh

  • Hello Akarsh,

    As per the datasheet, when the SCL transitions low, the SDA must be low. However in the scope snapshot, when the SCL transitions low, it seems that the SDA is high at the moment. This is not a valid start condition.
  • Hello Akarsh

    Any update on the issue?