ADC_RegularChannelConfig(ADC1, ADC_Channel_12,3, ADC_SampleTime_55Cycles5);/* Enable ADC1 DMA */ADC_DMACmd(ADC1, ENABLE);/* Enable ADC1 */ADC_Cmd(ADC1, ENABLE);/* Enable ADC1 reset calibaration register */ADC_ResetCalibration(ADC1);/* Check the end of ADC1 reset calibration regis...
就算用ADC的例程都会卡在while(ADC_GetResetCalibrationStatus(ADC1));和while(ADC_GetCalibrationStatus(...
就算用ADC的例程都会卡在while(ADC_GetResetCalibrationStatus(ADC1));和while(ADC_GetCalibrationStatus(...
* @note 初始化PA.00为ADC1_CH0,单次转换,软件触发ADC转换 */voidADC_Initialize(void){ ADC_InitTypeDef ADC_InitStructure; GPIO_InitTypeDef GPIO_InitStructure;/* 使能GPIOA,ADC1,AFIO时钟 */RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_ADC1, ENABLE);/* 设置ADCCLK分频因子 ADCC...