文件名称:example5_ADC
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 300kb
- 下载次数:
- 0次
- 提 供 者:
- 彭**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本例展示了如何使用双ADC对多路通道进行同时转化。
使用ADC1对通道14和通道17进行转化。使用ADC2对通道10和通道11进行转化。通道17与内部参考电压Vref相连。
一旦转换开始,ADC1和ADC2对对通道14和10的转换将同时开始,结果存于ADC1的32-bit DR寄存器内,其中高16bit为ADC2对通道10的转换结果,低16bit为ADC1对通道14的转换结果。之后由DMA把DR寄存器内的数据传送到内存中的ADC_DualConvertedValueTab表格。随后,ADC1和ADC2以及DMA会对通道17和通道11进行同样流程的转换和数据传送。
这样的转换-传送将会持续进行直到传送的数据数目达到DMA预设的上限。
对于STM3210B-LK1板,可以利用LCD把通道17上Vref的值,和通道10上分压器VR1上的电压值交替显示在屏幕上作为验证。-This example shows how to use the dual-ADC simultaneous conversion of multiple channels. Use ADC1 conversion on channel 14 and channel 17. Use ADC2 conversion on channel 10 and channel 11. Channel 17 and the internal reference voltage Vref is connected. ADC1 and ADC2 conversion channels 14 and 10 will start once the conversion is started, the result is stored in the ADC1 the 32-bit DR register, 16bit is the result of the conversion of ADC2 channel 10, including high, low 16bit ADC1 channel 14 The result of the conversion. After the DMA data transfer within the DR register to the memory of ADC_DualConvertedValueTab form. Subsequently, the ADC1 and ADC2 and DMA will channel 17 and channel 11, the same process of conversion and data transfer. Such a conversion- transfer will continue until the upper limit of the number of transmitted data DMA default. The LK1 STM3210B-board, can take advantage of the LCD voltage on the value of Vref in the channel 17 and channel 10 divider VR1 to alternat
使用ADC1对通道14和通道17进行转化。使用ADC2对通道10和通道11进行转化。通道17与内部参考电压Vref相连。
一旦转换开始,ADC1和ADC2对对通道14和10的转换将同时开始,结果存于ADC1的32-bit DR寄存器内,其中高16bit为ADC2对通道10的转换结果,低16bit为ADC1对通道14的转换结果。之后由DMA把DR寄存器内的数据传送到内存中的ADC_DualConvertedValueTab表格。随后,ADC1和ADC2以及DMA会对通道17和通道11进行同样流程的转换和数据传送。
这样的转换-传送将会持续进行直到传送的数据数目达到DMA预设的上限。
对于STM3210B-LK1板,可以利用LCD把通道17上Vref的值,和通道10上分压器VR1上的电压值交替显示在屏幕上作为验证。-This example shows how to use the dual-ADC simultaneous conversion of multiple channels. Use ADC1 conversion on channel 14 and channel 17. Use ADC2 conversion on channel 10 and channel 11. Channel 17 and the internal reference voltage Vref is connected. ADC1 and ADC2 conversion channels 14 and 10 will start once the conversion is started, the result is stored in the ADC1 the 32-bit DR register, 16bit is the result of the conversion of ADC2 channel 10, including high, low 16bit ADC1 channel 14 The result of the conversion. After the DMA data transfer within the DR register to the memory of ADC_DualConvertedValueTab form. Subsequently, the ADC1 and ADC2 and DMA will channel 17 and channel 11, the same process of conversion and data transfer. Such a conversion- transfer will continue until the upper limit of the number of transmitted data DMA default. The LK1 STM3210B-board, can take advantage of the LCD voltage on the value of Vref in the channel 17 and channel 10 divider VR1 to alternat
(系统自动生成,下载前可以参看下载内容)
下载文件列表
example5_ADC\App\bsp.c
............\...\bsp.h
............\...\lcd.c
............\...\lcd.h
............\...\main.c
............\...\stm32f10x_conf.h
............\...\stm32f10x_it.c
............\...\stm32f10x_it.h
............\FWLib\inc\cortexm3_macro.h
............\.....\...\stm32f10x_adc.h
............\.....\...\stm32f10x_bkp.h
............\.....\...\stm32f10x_can.h
............\.....\...\stm32f10x_dma.h
............\.....\...\stm32f10x_exti.h
............\.....\...\stm32f10x_flash.h
............\.....\...\stm32f10x_gpio.h
............\.....\...\stm32f10x_i2c.h
............\.....\...\stm32f10x_iwdg.h
............\.....\...\stm32f10x_lib.h
............\.....\...\stm32f10x_map.h
............\.....\...\stm32f10x_nvic.h
............\.....\...\stm32f10x_pwr.h
............\.....\...\stm32f10x_rcc.h
............\.....\...\stm32f10x_rtc.h
............\.....\...\stm32f10x_spi.h
............\.....\...\stm32f10x_systick.h
............\.....\...\stm32f10x_tim.h
............\.....\...\stm32f10x_tim1.h
............\.....\...\stm32f10x_type.h
............\.....\...\stm32f10x_usart.h
............\.....\...\stm32f10x_wwdg.h
............\.....\src\stm32f10x_adc.c
............\.....\...\stm32f10x_bkp.c
............\.....\...\stm32f10x_can.c
............\.....\...\stm32f10x_crc.c
............\.....\...\stm32f10x_dac.c
............\.....\...\stm32f10x_dbgmcu.c
............\.....\...\stm32f10x_dma.c
............\.....\...\stm32f10x_exti.c
............\.....\...\stm32f10x_flash.c
............\.....\...\stm32f10x_fsmc.c
............\.....\...\stm32f10x_gpio.c
............\.....\...\stm32f10x_i2c.c
............\.....\...\stm32f10x_iwdg.c
............\.....\...\stm32f10x_lib.c
............\.....\...\stm32f10x_nvic.c
............\.....\...\stm32f10x_pwr.c
............\.....\...\stm32f10x_rcc.c
............\.....\...\stm32f10x_rtc.c
............\.....\...\stm32f10x_sdio.c
............\.....\...\stm32f10x_spi.c
............\.....\...\stm32f10x_systick.c
............\.....\...\stm32f10x_tim.c
............\.....\...\stm32f10x_tim1.c
............\.....\...\stm32f10x_usart.c
............\.....\...\stm32f10x_wwdg.c
............\Project\cortexm3_macro.s
............\.......\Debug\Exe\example5_ADC.out
............\.......\.....\Obj\bsp.o
............\.......\.....\...\cortexm3_macro.o
............\.......\.....\...\example5_ADC.pbd
............\.......\.....\...\lcd.o
............\.......\.....\...\main.o
............\.......\.....\...\stm32f10x_adc.o
............\.......\.....\...\stm32f10x_dma.o
............\.......\.....\...\stm32f10x_exti.o
............\.......\.....\...\stm32f10x_flash.o
............\.......\.....\...\stm32f10x_gpio.o
............\.......\.....\...\stm32f10x_it.o
............\.......\.....\...\stm32f10x_lib.o
............\.......\.....\...\stm32f10x_nvic.o
............\.......\.....\...\stm32f10x_rcc.o
............\.......\.....\...\stm32f10x_tim.o
............\.......\.....\...\stm32f10x_vector.o
............\.......\example5_ADC.dep
............\.......\example5_ADC.ewd
............\.......\example5_ADC.ewp
............\.......\example5_ADC.eww
............\.......\lnkarm_flash.xcl
............\.......\lnkarm_ram.xcl
............\.......\settings\example5_ADC.cspy.bat
............\.......\........\example5_ADC.dbgdt
............\.......\........\example5_ADC.dni
............\.......\........\example5_ADC.wsdt
............\.......\........\example5_ADC_Debug.jlink
............\.......\stm32f10x_flash.icf
............\.......\stm32f10x_ram.icf
............\.......\stm32f10x_vector.c
............\.......\Debug\Exe
............\.......\.....\List
............\.......\.....\Obj
............\FWLib\inc
............\.....\src
............\Project\Debug
............\.......\settings
............\App
............\FWLib
............\Project
example5_ADC
............\...\bsp.h
............\...\lcd.c
............\...\lcd.h
............\...\main.c
............\...\stm32f10x_conf.h
............\...\stm32f10x_it.c
............\...\stm32f10x_it.h
............\FWLib\inc\cortexm3_macro.h
............\.....\...\stm32f10x_adc.h
............\.....\...\stm32f10x_bkp.h
............\.....\...\stm32f10x_can.h
............\.....\...\stm32f10x_dma.h
............\.....\...\stm32f10x_exti.h
............\.....\...\stm32f10x_flash.h
............\.....\...\stm32f10x_gpio.h
............\.....\...\stm32f10x_i2c.h
............\.....\...\stm32f10x_iwdg.h
............\.....\...\stm32f10x_lib.h
............\.....\...\stm32f10x_map.h
............\.....\...\stm32f10x_nvic.h
............\.....\...\stm32f10x_pwr.h
............\.....\...\stm32f10x_rcc.h
............\.....\...\stm32f10x_rtc.h
............\.....\...\stm32f10x_spi.h
............\.....\...\stm32f10x_systick.h
............\.....\...\stm32f10x_tim.h
............\.....\...\stm32f10x_tim1.h
............\.....\...\stm32f10x_type.h
............\.....\...\stm32f10x_usart.h
............\.....\...\stm32f10x_wwdg.h
............\.....\src\stm32f10x_adc.c
............\.....\...\stm32f10x_bkp.c
............\.....\...\stm32f10x_can.c
............\.....\...\stm32f10x_crc.c
............\.....\...\stm32f10x_dac.c
............\.....\...\stm32f10x_dbgmcu.c
............\.....\...\stm32f10x_dma.c
............\.....\...\stm32f10x_exti.c
............\.....\...\stm32f10x_flash.c
............\.....\...\stm32f10x_fsmc.c
............\.....\...\stm32f10x_gpio.c
............\.....\...\stm32f10x_i2c.c
............\.....\...\stm32f10x_iwdg.c
............\.....\...\stm32f10x_lib.c
............\.....\...\stm32f10x_nvic.c
............\.....\...\stm32f10x_pwr.c
............\.....\...\stm32f10x_rcc.c
............\.....\...\stm32f10x_rtc.c
............\.....\...\stm32f10x_sdio.c
............\.....\...\stm32f10x_spi.c
............\.....\...\stm32f10x_systick.c
............\.....\...\stm32f10x_tim.c
............\.....\...\stm32f10x_tim1.c
............\.....\...\stm32f10x_usart.c
............\.....\...\stm32f10x_wwdg.c
............\Project\cortexm3_macro.s
............\.......\Debug\Exe\example5_ADC.out
............\.......\.....\Obj\bsp.o
............\.......\.....\...\cortexm3_macro.o
............\.......\.....\...\example5_ADC.pbd
............\.......\.....\...\lcd.o
............\.......\.....\...\main.o
............\.......\.....\...\stm32f10x_adc.o
............\.......\.....\...\stm32f10x_dma.o
............\.......\.....\...\stm32f10x_exti.o
............\.......\.....\...\stm32f10x_flash.o
............\.......\.....\...\stm32f10x_gpio.o
............\.......\.....\...\stm32f10x_it.o
............\.......\.....\...\stm32f10x_lib.o
............\.......\.....\...\stm32f10x_nvic.o
............\.......\.....\...\stm32f10x_rcc.o
............\.......\.....\...\stm32f10x_tim.o
............\.......\.....\...\stm32f10x_vector.o
............\.......\example5_ADC.dep
............\.......\example5_ADC.ewd
............\.......\example5_ADC.ewp
............\.......\example5_ADC.eww
............\.......\lnkarm_flash.xcl
............\.......\lnkarm_ram.xcl
............\.......\settings\example5_ADC.cspy.bat
............\.......\........\example5_ADC.dbgdt
............\.......\........\example5_ADC.dni
............\.......\........\example5_ADC.wsdt
............\.......\........\example5_ADC_Debug.jlink
............\.......\stm32f10x_flash.icf
............\.......\stm32f10x_ram.icf
............\.......\stm32f10x_vector.c
............\.......\Debug\Exe
............\.......\.....\List
............\.......\.....\Obj
............\FWLib\inc
............\.....\src
............\Project\Debug
............\.......\settings
............\App
............\FWLib
............\Project
example5_ADC