1 | adc_init_struct.ADC_Adcx = ADC0; |
2 | adc_init_struct.ADC_DiffMode = ADC_SE; //单端采集 |
3 | adc_init_struct.ADC_BitMode = SE_12BIT; //单端12位精度 |
4 | adc_init_struct.ADC_SampleTimeCfg = SAMTIME_SHORT; //短采样时间 |
5 | adc_init_struct.ADC_HwAvgSel = HW_4AVG; //4次硬件平均 |
6 | adc_init_struct.ADC_CalEnable = TRUE; //使能初始化校验 |
7 | LPLD_ADC_Init(adc_init_struct); |
8 | LPLD_ADC_Chn_Enable(ADC0, DAD1); |
欢迎光临 智能车制作 (http://111.231.132.190/) | Powered by Discuz! X3.2 |