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.

TPS546C23: How to convert temperature data into decimal

Part Number: TPS546C23

Hi TI's experts!

This is Wenhao. It is really confusing to get how to correctly converse temperature linear format into decimal, since datasheet description is really vague. Could you please give an example of that? Appreciate your help!

Thanks!

-Wenhao

  • Wenhao,

    I'm not sure what you are asking about.  Can you provide an example or point to the section of the datasheet in question?

  • Wenhao,

    To close the loop adding info that Ryan and I shared offline here.

    example:

    1111 1111 1110 1101

    1. First, let’s sort this into the exponent and mantissa:

    1111 1111 1110 1101

    Or

    Exponent = 11111’b

    Mantissa = 11111101101’b

    1. Next, let’s convert these binary values to decimal using a conversion tool:

    Exponent = -1 as shown below:

                   

    Mantissa = -19 as shown below:

            

    1. Finally, let’s enter these in the equation:

    2^-1 * -19 = -9.5

           1111 1111 1110 1101  converted to HEX is 'FFED'

    Entering FFED into the attached calculator tool gives you -9.5deg C.

    Regards,

    Mathew

    READ_TEMPERATURE.XLSX