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.

HDC1080: Interfacing the device

Part Number: HDC1080

Tool/software:

Hi,

I am  trying to interface with HDC1080 using I2c,
I am able to read device ID and Manufacturer ID properly,
But when i try to set the 12th bit of Configuration Register using i2cset, it is not happening.
Similar to that i am unable to read the Temperature and Humidity values as well.

These are are commands being used to interface:
1. i2cset -y 1 0x40 0x02 0x1010 w (To set 12th bit of config. Reg.)
2. i2cget -y 1 0x40 0x00 w (To read Temperature value.)
2. i2cget -y 1 0x40 0x01 w (To read Humidity value.)

Please let me know the solution for this as early as possibe.

Thanks,
Vaishak 

  • Vaishak,

    When you attempt the set the 12th bit in the config register, are you able to read that register back and verify you were able to write to it successfully? Assuming the write was successful, are you able to read temperature, but not humidity? Or can you read neither reliably? I would try if the following works:

    1. set 12th bit of config register
    2. read temp value
    3. set 12 bit of config register again
    4. read humidity value

    That may help get good reads, it just requires an extra write step.

    Regards

    -Alex Thompson

  • Hi Alex,

     

    I am unable to set the bit 12 of config register,
    When i read back the value after write, it is not getting updated properly.
    I am attaching an image of the procedure i followed below.

     

    <1st Screenschot>

     

    I even tried your solution, but still i am unable to read back the temperature and humidity values,
    Here is the screenshot of the same,

     

    <2nd  Screenshot>

     

    Please let me know if i am doing it right or not,
    Let me know for any suggestions.

     

    Thanks,
    Vaishak

  • Vaishak,

    Its possible that the 12th bit clears after writing to trigger the measurement, let's try writing something that should not clear. Try setting bit 10 of the config register to 1. This will change the measurement resolution, but that value may not clear. Or, you can try turning on the heater bit by setting bit 13 to 1. That should not clear, and the heater will only activate in measurement mode. 

    You may need to provide a scope shot of the config write and read process to verify that the write is being done successfully.

    Regards

    -Alex Thompson