LPC55S69 Inconsistent ADC Temperature Coefficients between SDK2.8.2 and UM11126

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

LPC55S69 Inconsistent ADC Temperature Coefficients between SDK2.8.2 and UM11126

跳至解决方案
761 次查看
gertvb
Contributor III

Hallo Everyone!

Just an observation on inconsistent ADC Temperature coefficient values between UM11126 vs values used by Configtool/SDK 2.8.2

 

If I create a New C/C++ project from scratch in MCUXpresso using SDK2.8.2 for the LPC55s69 and add the lpadc driver, it adds the files fsl_lpadc.c and .h to the project, which also includes the the function:

float LPADC_MeasureTemperature(ADC_Type *base, uint32_t commandId, uint32_t index)

 

In the MeasureTemperature function it uses FSL_FEATURE_LPADC_TEMP_PARAMETER_A, FSL_FEATURE_LPADC_TEMP_PARAMETER_B &  FSL_FEATURE_LPADC_TEMP_PARAMETER_ALPHA, values defined in LPC55S69_cm33_core0_FEATURES.h

 

The values defined in UM11126 (39.7.6 p769) differs from the values used in LPC55S69_cm33_core0_FEATURES.h

 

Which ones are correct for HW rev 1B?

Alpha : 8.5 vs 11.5

A : 804 vs 744.6

B : 280 vs 313.7

 

Regards

 

Gert

A TechExplorer working with Embedded Software and Electronics in Agriculture and Alternative Energy
标签 (1)
0 项奖励
1 解答
743 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello gertvb

 

I suggest you use the values from the SDK.

A = 744.6

B = 313.7

Alpha = 11.5

 

Thank you for letting us know about the difference between the parameters.

If you have more questions do not hesitate to ask me.

Best regards,

Omar

在原帖中查看解决方案

1 回复
744 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello gertvb

 

I suggest you use the values from the SDK.

A = 744.6

B = 313.7

Alpha = 11.5

 

Thank you for letting us know about the difference between the parameters.

If you have more questions do not hesitate to ask me.

Best regards,

Omar