Error ADC Calibration on MPC5674F (eQADC + eDMA Continuous_Scan + Calibration)

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

Error ADC Calibration on MPC5674F (eQADC + eDMA Continuous_Scan + Calibration)

954 Views
tgc-yilmaz
Contributor III

Hello,

I'm using a MPC5674F. I want to read adc values with eQADC and want to work in  Continuous Scan mode. I would also like to calibrate the adc module. In order to perform the calibration with the "EQADC_PowerUpCalibration" function, I first set it to Single Scan mode. After getting the necessary values for calibration (gain, offset), I set it to continuous scan mode. However, I cannot read the adc values after setting the continuous scan mode.

How can I read adc values by performing adc calibration in Continuous Scan mode? Can you help with this?

pastedImage_16.png

Thank you for your help...

Labels (1)
2 Replies

750 Views
tgc-yilmaz
Contributor III

Hi,

Thank you for your answer. I got this information in the data sheet. I solved my problem by setting the mode to disabled before switching to continuous scan mode.

 pastedImage_3.png

pastedImage_2.png

Thank you for your help...

750 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, I don't see any reason why it should not work. Actually even in the original example it firstly use single scan mode to configure ADCs and then it switches to continuous scan mode.

https://community.nxp.com/docs/DOC-105724 

If you put calibration routine between ADC initialization the same way, it should work correctly.

0 Kudos