MPC5746C ADC calibration failure

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

MPC5746C ADC calibration failure

跳至解决方案
1,822 次查看
saurabh1
Contributor II

Hello,

 

We have been seeing intermittent failures of ADC calibration (called in our ADC initialization) upon a software reset. It happens 1 in 5 or so times we do the software reset.

In the ADC init we are calling the ADC_DRV_DoCalibration() function, provided by the SDK, which returns with a failure.

Also, before calling the calibration function, in init, we are calling ADC_DRV_GetDefaultConfigConverter()  and ADC_DRV_ConfigConverter() to configure with the default config, with one modification of setting the conversion mode to one shot mode.

I looked at the reference manual for possible causes of calibration failure, and found that a normal conversion triggered could cause calibration to fail, but I checked the ADCSTATUS and confirmed that it was in idle before calling the calibration function.

What are the other causes of ADC calibration failure? Where can I look (documents or register values) to find more information?

 

Thanks,

Saurabh

0 项奖励
回复
1 解答
1,781 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Saurabh,

I saw that there are only two reasons. As you mentioned, either a normal conversion is triggered during the calibration or the ADC is simply not able to calibrate itself. Usual action is to do more attempts. That's, in fact, the only solution. Unfortunately it is not possible to get more details from register values.

Regards,

Lukas

在原帖中查看解决方案

3 回复数
1,769 次查看
saurabh1
Contributor II

Hi Lukas,

 

Thanks for the help. I was able to complete successful calibration in the 2nd or 3rd attempt. So I put it in a while with max of 3 attempts.

Accepting your solution, but I am curious if you have had any other such reports? Just want to make sure I am not masking a real issue here.

 

Thanks,

Saurabh

0 项奖励
回复
1,782 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Saurabh,

I saw that there are only two reasons. As you mentioned, either a normal conversion is triggered during the calibration or the ADC is simply not able to calibrate itself. Usual action is to do more attempts. That's, in fact, the only solution. Unfortunately it is not possible to get more details from register values.

Regards,

Lukas

1,212 次查看
Charlie_Yao
Contributor I

Hi expert! For this issue, is there any explanation on "ADC is simply not able to calibrate itself"? What is the mechanism of ADC calibration?

0 项奖励
回复