void ADCInit()
{
ADC2_DeInit();
ADC2_Init(ADC2_CONVERSIONMODE_CONTINUOUS,
ADC2_CHANNEL_9,
ADC2_PRESSEL_FCPU_D2, ADC2_EXTTRIG_GPIO,ENABLE,
ADC2_ALIGN_RIGHT,
ADC2_SCHMITTTRIG_CHANNEL0, DISABLE);
ADC2_ITConfig(ENABLE);
ADC2_Cmd(ENABLE);
ADC2_ClearFlag();
ADC2_StartConversion();
}
此帖出自
小平头技术问答
一周热门 更多>