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.

TMP102 Accessing from User Space in Linux

Other Parts Discussed in Thread: TMP102

I am trying to access TMP102 IC from userspace in DRA7xx_EVM, actually when i am writing writing 0x0 address first on the bus and reading 2 bytes of temp register i am getting the same value i.e., byte1 of temp register.. To read the entire temperature register i am writing 0x0 then read byte1,0x1 and then read byte2 of temp register..

But, actually in the data sheet if you see timing diagrams, its different...Am I accessing wrongly ??


2. The default values of config register are different from what mentioned in the data sheet..

Thanks & Regards,

Ganesh.

  • Hi Ganesh,

    Let me review this and get back to you.

    Mayrim
  • Hi Ganesh,

    I am not familiar with the DRA7xx_EVM, but I can help you with the TMP102 questions. Please see below how the I2C diagrams looks like when reading the temperature register.

    Result is 0x1BD0. The resolution of TMP102 is 12 bits, so the actual result is 0x1BD. 

    0x1BD = 445 * 0.0625 = 27.8125°C. 

    Maybe you can share with me the POR values you are seeing in the registers and we can debug from there. 

    Hope this helps!

    Mayrim