formula for Tmeas in i.MX7D

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

formula for Tmeas in i.MX7D

Jump to solution
1,028 Views
ko-hey
Senior Contributor II

Hi all

 

I would like to measure the temperature of SoC using TEMPMON and have some questions.

 

Q1.

Please tell me the formula of Tmeans in i.MX7.

The calculation formula of Tmeas of p.4988 of i.MX7 RM Rev.1 is as below

232001_232001.pngimage003.png

 

On the other hand, the calculation formula of Linux source code is different.

Please see a line 585.

http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tree/drivers/thermal/imx_thermal.c?h=imx_4.9...

 

 

Which one is correct ?

 

If the Linux code is correct, please tell me the formula for calculating the temperature at i.MX7 like "Tmeans = ???”.

 

 

Q2.

It seems to obtain the temperature using the calibration value in OCOTP_ANA1, but is OCOTP_ANA1 written at shipment?

Do we need to write the temperature by user ?

 

 

Ko-hey

 

Labels (5)
0 Kudos
1 Solution
830 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Two points approximation in the RM  looks more accurate, nevertheless,

in practice one point approach provides reasonable results. Therefore our GA

Linux driver formula remains valid

Tmeas = ( Nmeas - n1) + 25; n1 is the fuse value for 25C (factory provided);

no changes to driver is needed.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
831 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Two points approximation in the RM  looks more accurate, nevertheless,

in practice one point approach provides reasonable results. Therefore our GA

Linux driver formula remains valid

Tmeas = ( Nmeas - n1) + 25; n1 is the fuse value for 25C (factory provided);

no changes to driver is needed.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
830 Views
ko-hey
Senior Contributor II

Hi Yuri Muhin

Thank you for quick reply.

How about Q2 ?

Ko-hey

0 Kudos
830 Views
Yuri
NXP Employee
NXP Employee

Hello,

  As has been mentioned, the fuse value is factory provided.

Regards,

Yuri.

0 Kudos