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