Internal Temperature sensor measurement offset

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

Internal Temperature sensor measurement offset

1,136 Views
abhishek_sinha
Contributor I

Hello all,

I have been trying to use the internal temperature sensor for the family Kinetis K26. Though i was able to make it work successfully, yet, the measurement that I get has a huge offset from the actual temperature. I am also using an external temperature sensor, and the results from both of them are utilised. My question is :

1. Does calibration play any role in the behaviour that i see? Because the i got the same results with and without the calibration.

2. What could be the actual reason behind this? I know by changing the offset i can get a workaround, but logically speaking, internal temperature sensor monitors the core thus should be at a higher temp compared to external one. 

Note: this external temp sensor is on the same board, and that too in close proximity of the processor.

I have attached an image file, showing the behaviour.

Thanks in advance.

Labels (1)
0 Kudos
3 Replies

961 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

I tested on my TWR-K65F board, it seems work fine. There isn't such a big deviation. Please see my attached code. If it is not a software problem, please check your Vref and VDDA. A small input offset may cause a big deviation.

If you want a higher precision, please check AN3031. The slope value and Vtemp25 is get at VDDA=3v. You should do some calibration.

Regards,

Jing

0 Kudos

961 Views
abhishek_sinha
Contributor I

Hello Jing,

I did nearly the same thing but using my functions which directly interacted with the register. Yet I see the same behavior as described in the original problem.The functionalities that I have changed are the following :

1. Used the calibration during the initialization

2. Used 16 bit conversion

3. Used 16 samples hardware enabled average.

0 Kudos

961 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

I guess this may because the real VDDA is not 3.3v, for example, 3.26V. This value is very sensitive. A very slight change will cause several degree deviate.

Regards,

Jing

0 Kudos