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.

CCS/HDC1080: problem with interfacing HDC1080 with MSP430G2744

Part Number: HDC1080
Other Parts Discussed in Thread: MSP430G2744, , , MSP430F5528

Tool/software: Code Composer Studio

Hi guys,

I am trying to interface HDC1080 with MSP430G2744 and eventually display the temperature and humidity values, but the problem is how I am supposed to access HDC1080, in the datasheet of HDC1080 it is mentioned that for temperature the address is 0x00 and for humidity it is 0x01, but that is not working. since it is i2c interface I am using  UCB0I2CSA = 0x40(sensor address) to address the slave but my question is though I am accessing the HDC sensor but how could I possibly access the temperature and humidity registers through i2c interface. Should I have to add the temperature register address value to the sensor address (UCB0I2CSA = 0x40 + 0x00)to get temperature reading ?

  • Hi chayadithya,

    Do not change the slave address as this is specific to the HDC device which will provide you with both the temperature and humidity. Please read Section 8.5.1 of the HDC1080 datasheet, Figures 12 through 14 will be particularly helpful. The address is auto-incremented after a full word read so you simply read four times in a row to receive both the temperature and humidity words. Further study of I2C protocol will provide a more firm grasp on the communication sequence required. You can also reference the HDC1080EVM code which was build for a MSP430F5528 and can easily be ported to the MSP430G2744 after changing USCI peripherals and physical pins. Questions specific to the HDC1080 should be asked in the Humidity Sensors Forum.

    Regards,
    Ryan

**Attention** This is a public forum