AnsweredAssumed Answered

How to convert the ADC result into the result with mV unit of MPC5744P?

Question asked by nathan 米 on Oct 24, 2017
Latest reply on Oct 26, 2017 by nathan 米

I want to use the ADC module of MPC5744P.

The reult from the ADC channel has been got, as the following code:

 

Result[0] = ADC_1.CDR[5].B.CDATA; //Read ADC1_AN6 conversion result data

 

I want to convert the Result[0] into the result with mV unit.

How to convert that?

 

I saw some example, the convertion is as follows:

ResultInMv[0] = (uint16_t) (ADC_VREF*Result[0]/0xFFF); /* Conversion in mv */

 

Is it correct?

 

Thank you.

Outcomes