What is the reference voltage selected for ADC polling example application adc_12b1msps_sar_polling in IMXRT1050 SDK ?

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the reference voltage selected for ADC polling example application adc_12b1msps_sar_polling in IMXRT1050 SDK ?

225 Views
abhiram_d
Contributor I

Going through the application code for #adc_12b1msps_sar_polling for imxrt1050-evkb, I was puzzled by the config for ADC.

     *  config->enableAsynchronousClockOutput = true;
     *  config->enableOverWrite =               false;
     *  config->enableContinuousConversion =    false;
     *  config->enableHighSpeed =               false;
     *  config->enableLowPower =                false;
     *  config->enableLongSample =              false;
     *  config->referenceVoltageSource =        kADC_ReferenceVoltageSourceVref;
     *  config->samplePeriodMode =              kADC_SamplePeriod2or12Clocks;
     *  config->clockSource =                   kADC_ClockSourceAD;
     *  config->clockDriver =                   kADC_ClockDriver1;
     *  config->resolution =                    kADC_Resolution12Bit;

Reference voltage source is selected as kADC_ReferenceVoltageSourceVref. Where can I find more info on this ?

Also I'd be grateful if someone could explain the reasons for choosing these config parameters.

Labels (1)
0 Kudos
1 Reply

162 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Abhiram,

Unlike other kinetis MCU, RT1050 only has Vrefh and Vrefl as reference voltage, no alternate. But the driver is share with kinetis device. So, kADC_ReferenceVoltageSourceVref because the only option. The information of reference voltage is in reference manual chapter 64.

Regards,

Jing

0 Kudos