AnsweredAssumed Answered

Eqadc  8 bits ADC Resolution

Question asked by Jorge Ramon on Apr 25, 2017
Latest reply on Apr 28, 2017 by David Tosenovjan

In the configuration of the EQADC in the micro MPC5634 as I can change the resolution of the ADC to 8 bits. 

 

 

EQADC.CFPR[0].R = 0x80040C00;                        /* Conversion command: convert channel 12--->0C// 16 bits */
EQADC.CFCR[0].R = 0x0410;                            /* with ADC0, set EOQ, and send result to RFIFO 0 */

while (EQADC.FISR[0].B.RFDF != 1){}                           /* Wait for RFIFO 0's Drain Flag to set */
Tps = EQADC.RFPR[0].R;                                        /* ADC result */

TpsMv = (uint32_t)((5000*Tps)/0x3FFC);                   /* ADC result in milivolts */

EQADC.FISR[0].R = 0x10020000;

 

 

Thank you

Outcomes