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.

Linux/TPS65917-Q1: Get internal temperature of TPS65917

Part Number: TPS65917-Q1

Tool/software: Linux

Hi TI engineers:

If I want to get internal temperature of TPS65917

My steps is :

1. i2c write to 0x59, 0x1b , data is 0

2. i2c write to 0x59, 0xcd, data is 0x95 (choose ch5)

3. delay some times

4. i2c read from 0x59, 0xce

5. i2c read from 0x59, 0xcf

6. combine the data from step 4 and 5 to get adc_value, and calculate real temperature by using below formula:

real temp = ((adc_value/4096) * 1.25 - 0.753v) / 0.00264v

Is there any wrong steps ??

Another question is , i check the spec, found gpadc channel 5 and 6 is both internal on-die temperature, which one is better ? or no difference ? 

thanks!!

Kenny

  • Kenny,

    This is the correct steps and you have the correct formula! You can use channel 5 or channel 6. Each of these two channels has its own temperature sensor located in different spots of the die. You can also read both values if you want.

    Please let me know if you have additional questions.

    Thanks,
    Nastasha