RT117x: temperature sensor in LPADC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT117x: temperature sensor in LPADC

411 Views
mastupristi
Senior Contributor I

I read that there is a temperature sensor connected to the internal inputs of LPADC1:

temp_LPADC.png

I couldn't find any other details on how to use it and how to convert the numerical value to Celsius degrees, though.

Where can I find this information?

0 Kudos
2 Replies

391 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @mastupristi 

There is more information on the reference manual chapter 22.3.2 Temperature Sensing. Also, the sdk has examples 

Miguel04_0-1680631051576.png

Best Regards, Miguel.

 

0 Kudos

384 Views
mastupristi
Senior Contributor I

Hello Miguel,

I don't know if that helps me.

I am perfectly aware of the existence of the TMPSNS peripheral, but my question was a different one.

Since it is clearly stated in the Reference Manual that it is possible to "read" a temperature sensor using the ADC, I would have been pleased to also find an explanation of how to convert the raw number to Celsius degrees.

Should I perhaps use the same conversion as described in the TMPSNS chapter?

Screenshot_2023-04-05_08-35-36.png

in my case ts_25c is 1902.0f ts_meas (from ADC) is 0x39d.

And with this data, if I haven't miscalculated, I should get -65 degrees, but I can assure you that we are at about 20

 

0 Kudos