kea64 on board temperature sensor

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

kea64 on board temperature sensor

1,590件の閲覧回数
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,577件の閲覧回数
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,570件の閲覧回数
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,563件の閲覧回数
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,429件の閲覧回数
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 件の賞賛
返信