IMX8MM MINI TMU_TRITSR and TMU_TRATSR TEMP in units of Celsius and TMU_TSCR register usage

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

IMX8MM MINI TMU_TRITSR and TMU_TRATSR TEMP in units of Celsius and TMU_TSCR register usage

跳至解决方案
857 次查看
Dandroid4NXP
Contributor II

Q1 Can you please confirm the TMU_TRITSR[TEMP] and TMU_TRATSR[TEMP] values are reported with precision of 1 degrees Celsius (1 °C) ?

The IMX8MMRM rev 3, 11/2020

Page 776 TMU_TRITSR[7:0] = TEMP[7:0] field description does not indicate the units of measurement.

Dandroid4NXP_0-1708547442381.png

Q2 Can you please confirm the TMU_TSCR[SENSOR] value is in units of sensor digital counts?

Dandroid4NXP_3-1708549292791.png

 

Q3 Can you please confirm to calculate accurate temperature using  Tsense=TMU_TRITSR[TEMP], TE1=TSENSOR_VALUE_RT[7:0] and TE2=TSENSOR_VALUE_HT[7:0]  in the following formula ?

5.4.5 Temperature Sensor Error Correction Method.

Dandroid4NXP_5-1708549581594.png

where TE1 and TE2 are the temperature values stored in the 8-bit OTP cells from the
25°C and 85°C measurement, respectively. Units of all terms are degree (°C).

Using real world values I'm reading from the chip

u-boot=>md 0x303504f0 1

303504f0: 013c6636

0x36=TE1 Room Temp 25'C calibration value

0x66=TE2 High Temp 85'C calibration value

-Enable TMU monitoring

u-boot=>mw 0x30260000 0x80000001

-Read TMU_TRITSR

u-boot=>md 0x30260020 1

30260020: 8000003f

-Read TMU_TSCR

u-boot=>md 0x3026001C 1

3026001c: 00000055

Board is sitting at room temperature near 25'C. In the spreadsheet below, the temperature of 36.25 degrees C is closest. 

Dandroid4NXP_6-1708551958183.png

spreadsheet is also attached below.

 

In other words, Can you please confirm the Tcalib result is the calibrated temperature for use during normal system operation by filling in all Celsius value terms Tsense=TMU_TRITSR[TEMP], TE1=TSENSOR_VALUE_RT[7:0] and TE2=TSENSOR_VALUE_HT[7:0] ?

 

Q4. Can you please confirm the TMU Sensor Calibration register (TMU_TSCR) register is for NXP internal use only and not expected to be used by developers using the IMX8MM ?

This is because NXP internal manufacturing programs the OTP calibration values at TSENSOR_VALUE_RT and TSENSOR_VALUE_HT previous forum post stated the following with (NXP internal) emphasis added:

@Tori-san 

Hello,

  Generally the calibration points are measured during the (NXP internal) manufacturing testing,
and are programmed in the fuse registers - no need for customers to implement
the calibration.

Regards,
Yuri.

Solved: i.MX8M mini TMU SW calibration code - NXP Community

 

0 项奖励
回复
1 解答
620 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Q1 Can you please confirm the TMU_TRITSR[TEMP] and TMU_TRATSR[TEMP] values are reported with precision of 1 degrees Celsius (1 °C) ?

Sensor has a 1°C of sensing resolution and an accuracy of:

JorgeCas_0-1708716318840.png

Q2 Can you please confirm the TMU_TSCR[SENSOR] value is in units of sensor digital counts?

Yes, according to internal team TSCR maps to Tsensor.

Q3 Can you please confirm to calculate accurate temperature using Tsense=TMU_TRITSR[TEMP], TE1=TSENSOR_VALUE_RT[7:0] and TE2=TSENSOR_VALUE_HT[7:0] in the following formula?

In other words, Can you please confirm the Tcalib result is the calibrated temperature for use during normal system operation by filling in all Celsius value terms Tsense=TMU_TRITSR[TEMP], TE1=TSENSOR_VALUE_RT[7:0] and TE2=TSENSOR_VALUE_HT[7:0] ?

Yes, that is correct. You could try to see measured temperature on Linux as a reference to compare it with formula result.

Q4. Can you please confirm the TMU Sensor Calibration register (TMU_TSCR) register is for NXP internal use only and not expected to be used by developers using the IMX8MM?

Yes, because these temperature calibration values are part of NXP product testing in site.

Best regards.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
621 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Q1 Can you please confirm the TMU_TRITSR[TEMP] and TMU_TRATSR[TEMP] values are reported with precision of 1 degrees Celsius (1 °C) ?

Sensor has a 1°C of sensing resolution and an accuracy of:

JorgeCas_0-1708716318840.png

Q2 Can you please confirm the TMU_TSCR[SENSOR] value is in units of sensor digital counts?

Yes, according to internal team TSCR maps to Tsensor.

Q3 Can you please confirm to calculate accurate temperature using Tsense=TMU_TRITSR[TEMP], TE1=TSENSOR_VALUE_RT[7:0] and TE2=TSENSOR_VALUE_HT[7:0] in the following formula?

In other words, Can you please confirm the Tcalib result is the calibrated temperature for use during normal system operation by filling in all Celsius value terms Tsense=TMU_TRITSR[TEMP], TE1=TSENSOR_VALUE_RT[7:0] and TE2=TSENSOR_VALUE_HT[7:0] ?

Yes, that is correct. You could try to see measured temperature on Linux as a reference to compare it with formula result.

Q4. Can you please confirm the TMU Sensor Calibration register (TMU_TSCR) register is for NXP internal use only and not expected to be used by developers using the IMX8MM?

Yes, because these temperature calibration values are part of NXP product testing in site.

Best regards.

0 项奖励
回复
590 次查看
Dandroid4NXP
Contributor II
0 项奖励
回复