AnsweredAssumed Answered

Unable to make ADC conversion using Eqadc-B ANB16,17,18,19 channels

Question asked by Rahul Mankumbare on Sep 25, 2017
Latest reply on Oct 16, 2017 by Rahul Mankumbare

Hi,

 

MCU - MPC5777C

IDE- S32DEv1.2

 

We are using Eqadc-A & Eqadc-B channels for analog to digital conversion.

 

We are using channels ANA6,ANA34,ANA35,ANA36 etc and able to convert analog data to digital.

 

Now we are using,

ANB16/GPI484/ETPUC15/EMIOS24

ANB17/GPI485/ETPUC14/EMIOS25

ANB18/GPI486/ETPUC13/EMIOS26

ANB19/GPI487/ETPUC12/EMIOS27 

 

But Unabble to make conversion.

 

Following is our init code.

 

EQADC_B.CFPR[0].R = 0x00800301; // configure ADC_CR0 Register in buffer 0
EQADC_B.CFPR[0].R = 0x82800301; // configure ADC_CR1 Register in buffer 1


EQADC_B.CFCR0.R = 0x1C101C10;
EQADC_B.CFCR1.R = 0x1C101C10;
EQADC_B.CFCR2.R = 0x1C101C10;
// Wait for Queue Done
while (EQADC_B.FISR[0].B.EOQFX == 0) { } /* Wait for End Of Queue flag */

EQADC_B.FISR[0].R = End_of_Queue_Flag;

EQADC_B.IDCR0.R = 0x33033303;
EQADC_B.IDCR1.R = 0x33033303;

 

SIU.PCR[ANB16_TO_ADC_INV2_TA].R = PRIM_F | K_IBE; //ANB16/GPI484/ETPUC15/EMIOS24

SIU.PCR[ANB17_TO_ADC_INV2_TB].R = PRIM_F | K_IBE; // ANB17/GPI485/ETPUC14/EMIOS25

SIU.PCR[ANB18_TO_ADC_INV2_TD].R = PRIM_F | K_IBE; // ANB18/GPI486/ETPUC13/EMIOS26

SIU.PCR[ANB19_TO_ADC_INV2_TC].R = PRIM_F | K_IBE; //ANB19/GPI487/ETPUC12/EMIOS27

 

Please suggest missing or incorrect part.

 

Thanks.

Rahul.

Outcomes