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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

664 次查看
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.

标签 (1)
0 项奖励
1 回复

601 次查看
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 项奖励