kea64 on board temperature sensor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

kea64 on board temperature sensor

1,594 次查看
kiran5
Contributor I

Hi, 

I am trying to calculate the temperature value using the onboard temperature sensor. I am not able to find the exact calculation formula. Please provide the details needed for the calculation of the on board temperature value

 

Thanks and regards 

Kiran

标签 (1)
0 项奖励
回复
4 回复数

1,581 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @kiran5 

This is the formula of the temperature sensor:

Miguel04_0-1677534099546.png

You can find more information in the AN3031 and the constant values are on the datasheet on table 12.

Best Regards, Miguel.

 

0 项奖励
回复

1,574 次查看
kiran5
Contributor I

Hi @Miguel04 

I used AN3031 document for calculating the Vdd.  I am using 12 bit resolution and the typical Vbg value is 1.16 for KEA64.  I got the ADCR value of the bangap channel around 300. So by using the formula

Vdd = 4095 * 1.16 / 300 which equals to 15.8 . Maximum Value of Vdd is 6v but here im getting it as 15.8v.

Am I missing something here??

 

Regards,

Kiran. 

0 项奖励
回复

1,567 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @kiran5 

Can you tell me the number of resolution bits of the ADCR_BG value? 

Best Regards, Miguel.

0 项奖励
回复

1,433 次查看
kiran5
Contributor I
Hi Miguel04
The adc count from the ADCR register by enabling the temperature sensor is 1110. From this value I have calculated the Vtemp as 1110*5/4095 = 1.3431..
Here im using 5v reference voltage and 12 bit resolution.
The temperature is calculated from the formula
Temp = 25 - ((Vtemp-Vtemp@25)/Slope).
= 25 - ((1.3431-1.396)/0.003638)
=39.54
Here the temperature value i get is 39.54 Celcius.
We connected an external NTC resistor and calculated the temperature from that and the value observed was 34.
There is a difference of 5 celcius. Am i doing it the right way or should is do some changes.
Best Regards, Kiran
0 项奖励
回复