系统时钟 168M

ADC时钟 84M(根据下列PCLK2时钟)

    /* PCLK2 = HCLK / 2*/
    RCC->CFGR |= RCC_CFGR_PPRE2_DIV2;

ADC分频:2

ADC_CommonInitStructure.ADC_Prescaler = ADC_Prescaler_Div2;    

ADC时钟:42M

采样间隔:10 cycles

ADC_CommonInitStructure.ADC_TwoSamplingDelay = ADC_TwoSamplingDelay_10Cycles; 

采样时间:480 cycles

ADC_RegularChannelConfig(ADC1, ADC_Channel_0, 1, ADC_SampleTime_480Cycles);

采样通道数:12

采样时间=(10+480+12.5)*12/42M = 143.57us

STM32 ADC DMA采样时间计算

 

DMA中断周期:

STM32 ADC DMA采样时间计算

相关文章: