ADC_over_sampling
/*************************************************/
This example describes how to use the ADC1 and DMA to transfer continuously converted data from ADC1 to memory.
The ADC1 is configured to convert continuously channel14.
Each time an end of conversion occurs the DMA transfers, in circular mode, the converted data from ADC1 DR register to the ADCConvertedValue variable.
The ADC1 clock is set to 18 MHz.
/ADC_OVSR:过采样率,取值:2,4,8,16,32,64,128,256/
#define ADC_OVSR 256
/ADC_shift:ADC结果右移,取值:0~8/
#define ADC_shift 4
/* Private typedef -----------------------------------------------------------/
/ Private define ------------------------------------------------------------/
/ Private macro -------------------------------------------------------------/
/ Private variables ---------------------------------------------------------/
ADC_InitType ADC_InitStru

该博客介绍了使用ADC1和DMA将ADC1转换后的数据连续传输到内存的示例。ADC1配置为连续转换通道14,每次转换结束,DMA以循环模式将转换数据从ADC1 DR寄存器传输到变量。还给出了ADC时钟设置、过采样率等参数,可参考指定链接获取更多细节。

353

被折叠的 条评论
为什么被折叠?



