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.

TMP124 positive temperature reading?

Other Parts Discussed in Thread: TMP124

I think I've finally got my head around the negative 2's compliment gyrations so I understand how an output of 0xF387 = -25 deg.  What I can't figure out is how do you get +25 deg from a reading of 0x0C87.

Step 1 shift right 3 bits

so 0x0C87 >> 3 = 0x0190

Now I'm lost.  How do you get to +25 deg C?

Thanks,

Richard

  • Hi Richard,

    The LSB of the TMP124 represents a 0.0625C (1/16C) temperature value.  So you have to divide your final shifted value by 16 to get the decimal value.

    0x0C87 >> 3 = 0x0190 = (decimal)400 / 16 = 25C. 

    Best Regards,
    Collin Wells
    Linear Applications