Tstm32_adch

所属分类:处理器开发
开发工具:Visual C++
文件大小:4KB
下载次数:8
上传日期:2012-07-22 23:55:24
上 传 者linguokai
说明:  此程序是基于STM32的AD应用程序,我们在这里设置ADC为连续转换模式,常规转换序列中有两路转换通道,分别是ADC_CH10(PC0)和ADC_CH16(片内温度传感器)。因为使用了自动多通道转换,,数据的取出工作最适合使用DMA方式取出,so,我们在内存里开辟了一个u16 AD_Value[2]数组,并设置了相应的DMA模块,使ADC在每个通道转换结束后启动DMA传输,其缓冲区数据量为2个Hal
(This procedure is based on the STM32 AD application, we are here to set the ADC continuous conversion mode, the conventional conversion sequence, two-way conversion channel, respectively ADC_CH10 (PC0) and ADC_CH16 (on-chip temperature sensor). Conversion because of the use of automatic multi-channel data removal is the most suitable for use DMA mode to remove, so opened up a u16 AD_Value [2] array in memory, and set the DMA module, so that the ADC on each channel start DMA transfer after the end of conversion, its buffer the amount of data for a Hal)

文件列表:
Tstm32_adch\stm32_adc.c (14092, 2009-09-24)
Tstm32_adch (0, 2012-03-18)

近期下载者

相关文件


收藏者