MPC5746C ADC calibration failure

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5746C ADC calibration failure

ソリューションへジャンプ
1,823件の閲覧回数
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,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

元の投稿で解決策を見る

3 返答(返信)
1,770件の閲覧回数
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,783件の閲覧回数
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,213件の閲覧回数
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 件の賞賛
返信