hi David, the following below is my code for EQADC which is using 5 channels
void Init_ADC0(void){
EQADC_A.CFPR[0].R = 0x00800201;
EQADC_A.CFPR[1].R = 0x82800201;
EQADC_A.CFCR0.R = 0x04100410;
EQADC_A.CFCR1.R = 0x04100410;
EQADC_B.CFCR2.R = 0x04100410;
while( EQADC_A.FISR[1].B.EOQFX != 1){
}
EQADC_A.FISR[1].B.EOQFX = 1;
}
void Send_Conv_Cmd(void){
EQADC_A.CFPR[0].R = 0x00000B00; /*conversion command: convert channel 11, buffer 0*/
EQADC_A.CFPR[1].R = 0x00100C00; /*conversion command: convert channel 12, buffer 1*/
EQADC_A.CFPR[2].R = 0x00200D00; /*conversion command: convert channel 13, buffer 2*/
EQADC_A.CFPR[3].R = 0x00300E00; /*conversion command: convert channel 14, buffer 3*/
EQADC_A.CFPR[4].R = 0x80400F00; /*conversion command: convert channel 15, buffer 4*/
EQADC_A.CFCR2.B.MODE4 = 1;
EQADC_A.CFCR2.B.SSE4 = 1;
while(EQADC_A.FISR[4].B.RFDFX != 1){
}
void Read_Result(void){
int Result=0,i;
float result_MV[5]={0};
for(i=0;i<5;i++){
Result = EQADC_A.RFPR[i].R;
result_MV[i] = (uint32_t)((5000*Result)/0x3FFC);
}
EQADC_A.FISR[4].B.RFDFX = 1;
EQADC_A.FISR[4].B.EOQFX = 1;
}
when i am using for single channel and 2 channels , i am getting the proper output. But when i am trying for 5 channels i am not getting output. can you please verify and let me suggest any solution?