ADC Calibration Issue with MPC5777C

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

ADC Calibration Issue with MPC5777C

704 Views
amey_murkute
Contributor III

Hello All,

                I am trying to do ADC Calibration but when I insert the calibration code as given in AN2989 with CAL bit 1 in my conversion Command , then Rqueue value of 'channel 0' giving 0 count. Is there any issue with Single Scan Mode & Contineous scan as in Calibration code Single scan is used & for my further conversation I have enbled contineous scan.. The following is the ADC configuration Code which I am using.

void eqadc_A_init(void)
{

EQADC_A.MCR.R = 0x00000000; // Synchronous Serial Interface-Disable; Debug-Disable

/* CONFIGURE ADC FOR CONVERSION
*system clk frequency = 96MHz
*system clk divider(PS) = 8
*ADC_CLK = system clk frequency/system clk divider(PS) = 12MHz
*No of sampling cycles(LST) = 2
*No of ADC conversion cycles = 13 for differential or 14 for single ended
*ADC Conversion speed = ADC_CLK/(No of sampling cycles(LST)+ No of ADC conversion cycles) = 750ksps
*/

EQADC_A.CFPR[0].R = 0x00800301; //Send CFIFO 0 a ADC0 configuration command
EQADC_A.CFPR[0].R = 0x82800301; //Send CFIFO 0 a ADC1 configuration command

EQADC_A.CFCR0.R = 0x0C101C10;

while (EQADC_A.FISR[0].B.EOQFX == 0); /* Wait for End Of Queue flag */
EQADC_A.FISR[0].R = End_of_Queue_Flag;

EQADC_A.IDCR0.R = 0x33033303;

}

2 Replies

474 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, here you can find simple eQADC example for MPC5777C device:

Example MPC5777C-eQADC_Simple GHS714 

and here a example including eQADC calibration which can be added into example above:

Example MPC5676R-eQADC_PMC_chnl_conv+calib CW210 

Hope it helps

475 Views
amey_murkute
Contributor III

Thank You ... this helped a lot..