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: IC function check

Part Number: TMP102


Tool/software:

Hi Team

My customer has a problem with converting the value read by TMP102 using I2C. I would like to ask you for advice.
For example, the value read is 2b C0. What is the actual value?
Or is there any conversion table?

Thanks,
Boyan

  • Hi Boyan,

    The TMP102 uses a Q4 notation format which is a method of encoding the data in binary format where there are 4 bits allocated for decimal values (LSBs) and 1 bit allocated for 2s complement encoding (MSB). TMP102 also features an extended mode to be able to read/convert temperature values beyond 127°C. This is explained in detail in the following app note: How to Read and Interpret Digital Temperature Sensor Output DataThe app note also includes c-code examples on how to convert the encoded temperature data. The easiest way to make the conversion would be to shift out any excess bits from the LSBs and multiplying by the resolution (0.0625°C), accounting for negative temperature values will take an additional operation.

    In this case, 2BC0h (assuming that the customer is running standard conversion with 12-bits) is equal to 43.75°C.

    Best regards,

    Simon Rojas