文件名称:example2_ADC
介绍说明--下载内容来自于网络,使用问题请自行百度
本例展示了如何利用高级控制定时器(TIM1)来触发模数转换器(ADC)和利用自动注入转换功能来触发注入转换。
在每一个TIM1的上升沿,ADC对通道14(ADC Channel14)上的输入做一次规则转换,然后,DMA会将寄存器ADC_DR1中数据传送到内存中相应的表格。
使能自动注入转换功能,ADC能够在通道14的规则转换之后自动对通道11(ADC Channel11)上的输入做一次注入转换。随后产生一个ADC中断,并置标志位JEOC。在中断中将注入转换结果存入ADC_InjectedConvertedValueTab。
整个过程将重复32次,之后失能TIM1,ADC的转换也随之停止。
和示例1一样,为了使本示例能在STM3210B-LK1上运行,将通道14改为通道10,通道11则保持不变。并且选择结果列表(ADC_RegularConvertedValueTab和ADC_InjectedConvertedValueTab)中的2个数值把它们交替显示在LCD屏幕上。-This example shows how to use advanced control timer (TIM1) to trigger analog-to-digital converter (ADC) and the use of automatic injected conversion function to trigger the injected conversion. The rising edge of a TIM1, the ADC input on channel 14 (ADCs Channel14) do a rules conversion, then the DMA will register ADC_DR1 data to the corresponding table in the memory. Enable automatic injected conversion, the ADC can automatically input on channel 11 (ADCs Channel11) after conversion of the channel 14 of the rules once injected into the conversion. Subsequently generate an ADC interrupt, and set the flag JEOC. Interrupt will be injected into the conversion results deposited ADC_InjectedConvertedValueTab. The whole process will be repeated 32 times, followed by disability TIM1, the ADC conversion will stop. Example 1, this example can be run on the in the STM3210B-the LK1, channel 14 to channel 10, channel 11 will remain unchanged. And two values in the results list (ADC_
在每一个TIM1的上升沿,ADC对通道14(ADC Channel14)上的输入做一次规则转换,然后,DMA会将寄存器ADC_DR1中数据传送到内存中相应的表格。
使能自动注入转换功能,ADC能够在通道14的规则转换之后自动对通道11(ADC Channel11)上的输入做一次注入转换。随后产生一个ADC中断,并置标志位JEOC。在中断中将注入转换结果存入ADC_InjectedConvertedValueTab。
整个过程将重复32次,之后失能TIM1,ADC的转换也随之停止。
和示例1一样,为了使本示例能在STM3210B-LK1上运行,将通道14改为通道10,通道11则保持不变。并且选择结果列表(ADC_RegularConvertedValueTab和ADC_InjectedConvertedValueTab)中的2个数值把它们交替显示在LCD屏幕上。-This example shows how to use advanced control timer (TIM1) to trigger analog-to-digital converter (ADC) and the use of automatic injected conversion function to trigger the injected conversion. The rising edge of a TIM1, the ADC input on channel 14 (ADCs Channel14) do a rules conversion, then the DMA will register ADC_DR1 data to the corresponding table in the memory. Enable automatic injected conversion, the ADC can automatically input on channel 11 (ADCs Channel11) after conversion of the channel 14 of the rules once injected into the conversion. Subsequently generate an ADC interrupt, and set the flag JEOC. Interrupt will be injected into the conversion results deposited ADC_InjectedConvertedValueTab. The whole process will be repeated 32 times, followed by disability TIM1, the ADC conversion will stop. Example 1, this example can be run on the in the STM3210B-the LK1, channel 14 to channel 10, channel 11 will remain unchanged. And two values in the results list (ADC_
(系统自动生成,下载前可以参看下载内容)
下载文件列表
example2_ADC/App/bsp.c
example2_ADC/App/bsp.h
example2_ADC/App/lcd.c
example2_ADC/App/lcd.h
example2_ADC/App/main.c
example2_ADC/App/stm32f10x_conf.h
example2_ADC/App/stm32f10x_it.c
example2_ADC/App/stm32f10x_it.h
example2_ADC/FWLib/inc/cortexm3_macro.h
example2_ADC/FWLib/inc/stm32f10x_adc.h
example2_ADC/FWLib/inc/stm32f10x_bkp.h
example2_ADC/FWLib/inc/stm32f10x_can.h
example2_ADC/FWLib/inc/stm32f10x_dma.h
example2_ADC/FWLib/inc/stm32f10x_exti.h
example2_ADC/FWLib/inc/stm32f10x_flash.h
example2_ADC/FWLib/inc/stm32f10x_gpio.h
example2_ADC/FWLib/inc/stm32f10x_i2c.h
example2_ADC/FWLib/inc/stm32f10x_iwdg.h
example2_ADC/FWLib/inc/stm32f10x_lib.h
example2_ADC/FWLib/inc/stm32f10x_map.h
example2_ADC/FWLib/inc/stm32f10x_nvic.h
example2_ADC/FWLib/inc/stm32f10x_pwr.h
example2_ADC/FWLib/inc/stm32f10x_rcc.h
example2_ADC/FWLib/inc/stm32f10x_rtc.h
example2_ADC/FWLib/inc/stm32f10x_spi.h
example2_ADC/FWLib/inc/stm32f10x_systick.h
example2_ADC/FWLib/inc/stm32f10x_tim.h
example2_ADC/FWLib/inc/stm32f10x_tim1.h
example2_ADC/FWLib/inc/stm32f10x_type.h
example2_ADC/FWLib/inc/stm32f10x_usart.h
example2_ADC/FWLib/inc/stm32f10x_wwdg.h
example2_ADC/FWLib/src/stm32f10x_adc.c
example2_ADC/FWLib/src/stm32f10x_bkp.c
example2_ADC/FWLib/src/stm32f10x_can.c
example2_ADC/FWLib/src/stm32f10x_dma.c
example2_ADC/FWLib/src/stm32f10x_exti.c
example2_ADC/FWLib/src/stm32f10x_flash.c
example2_ADC/FWLib/src/stm32f10x_gpio.c
example2_ADC/FWLib/src/stm32f10x_i2c.c
example2_ADC/FWLib/src/stm32f10x_iwdg.c
example2_ADC/FWLib/src/stm32f10x_lib.c
example2_ADC/FWLib/src/stm32f10x_nvic.c
example2_ADC/FWLib/src/stm32f10x_pwr.c
example2_ADC/FWLib/src/stm32f10x_rcc.c
example2_ADC/FWLib/src/stm32f10x_rtc.c
example2_ADC/FWLib/src/stm32f10x_spi.c
example2_ADC/FWLib/src/stm32f10x_systick.c
example2_ADC/FWLib/src/stm32f10x_tim.c
example2_ADC/FWLib/src/stm32f10x_tim1.c
example2_ADC/FWLib/src/stm32f10x_usart.c
example2_ADC/FWLib/src/stm32f10x_wwdg.c
example2_ADC/Project/cortexm3_macro.s
example2_ADC/Project/Debug/Exe/example2_ADC.out
example2_ADC/Project/Debug/Obj/bsp.o
example2_ADC/Project/Debug/Obj/cortexm3_macro.o
example2_ADC/Project/Debug/Obj/example2_ADC.pbd
example2_ADC/Project/Debug/Obj/lcd.o
example2_ADC/Project/Debug/Obj/main.o
example2_ADC/Project/Debug/Obj/stm32f10x_adc.o
example2_ADC/Project/Debug/Obj/stm32f10x_dma.o
example2_ADC/Project/Debug/Obj/stm32f10x_flash.o
example2_ADC/Project/Debug/Obj/stm32f10x_gpio.o
example2_ADC/Project/Debug/Obj/stm32f10x_it.o
example2_ADC/Project/Debug/Obj/stm32f10x_lib.o
example2_ADC/Project/Debug/Obj/stm32f10x_nvic.o
example2_ADC/Project/Debug/Obj/stm32f10x_rcc.o
example2_ADC/Project/Debug/Obj/stm32f10x_tim.o
example2_ADC/Project/Debug/Obj/stm32f10x_tim1.o
example2_ADC/Project/Debug/Obj/stm32f10x_vector.o
example2_ADC/Project/example2_ADC.dep
example2_ADC/Project/example2_ADC.ewd
example2_ADC/Project/example2_ADC.ewp
example2_ADC/Project/example2_ADC.eww
example2_ADC/Project/lnkarm_flash.xcl
example2_ADC/Project/lnkarm_ram.xcl
example2_ADC/Project/settings/example2_ADC.cspy.bat
example2_ADC/Project/settings/example2_ADC.dbgdt
example2_ADC/Project/settings/example2_ADC.dni
example2_ADC/Project/settings/example2_ADC.wsdt
example2_ADC/Project/settings/example2_ADC_Debug.jlink
example2_ADC/Project/stm32f10x_flash.icf
example2_ADC/Project/stm32f10x_ram.icf
example2_ADC/Project/stm32f10x_vector.c
example2_ADC/Project/Debug/Exe
example2_ADC/Project/Debug/List
example2_ADC/Project/Debug/Obj
example2_ADC/FWLib/inc
example2_ADC/FWLib/src
example2_ADC/Project/Debug
example2_ADC/Project/settings
example2_ADC/App
example2_ADC/FWLib
example2_ADC/Project
example2_ADC
example2_ADC/App/bsp.h
example2_ADC/App/lcd.c
example2_ADC/App/lcd.h
example2_ADC/App/main.c
example2_ADC/App/stm32f10x_conf.h
example2_ADC/App/stm32f10x_it.c
example2_ADC/App/stm32f10x_it.h
example2_ADC/FWLib/inc/cortexm3_macro.h
example2_ADC/FWLib/inc/stm32f10x_adc.h
example2_ADC/FWLib/inc/stm32f10x_bkp.h
example2_ADC/FWLib/inc/stm32f10x_can.h
example2_ADC/FWLib/inc/stm32f10x_dma.h
example2_ADC/FWLib/inc/stm32f10x_exti.h
example2_ADC/FWLib/inc/stm32f10x_flash.h
example2_ADC/FWLib/inc/stm32f10x_gpio.h
example2_ADC/FWLib/inc/stm32f10x_i2c.h
example2_ADC/FWLib/inc/stm32f10x_iwdg.h
example2_ADC/FWLib/inc/stm32f10x_lib.h
example2_ADC/FWLib/inc/stm32f10x_map.h
example2_ADC/FWLib/inc/stm32f10x_nvic.h
example2_ADC/FWLib/inc/stm32f10x_pwr.h
example2_ADC/FWLib/inc/stm32f10x_rcc.h
example2_ADC/FWLib/inc/stm32f10x_rtc.h
example2_ADC/FWLib/inc/stm32f10x_spi.h
example2_ADC/FWLib/inc/stm32f10x_systick.h
example2_ADC/FWLib/inc/stm32f10x_tim.h
example2_ADC/FWLib/inc/stm32f10x_tim1.h
example2_ADC/FWLib/inc/stm32f10x_type.h
example2_ADC/FWLib/inc/stm32f10x_usart.h
example2_ADC/FWLib/inc/stm32f10x_wwdg.h
example2_ADC/FWLib/src/stm32f10x_adc.c
example2_ADC/FWLib/src/stm32f10x_bkp.c
example2_ADC/FWLib/src/stm32f10x_can.c
example2_ADC/FWLib/src/stm32f10x_dma.c
example2_ADC/FWLib/src/stm32f10x_exti.c
example2_ADC/FWLib/src/stm32f10x_flash.c
example2_ADC/FWLib/src/stm32f10x_gpio.c
example2_ADC/FWLib/src/stm32f10x_i2c.c
example2_ADC/FWLib/src/stm32f10x_iwdg.c
example2_ADC/FWLib/src/stm32f10x_lib.c
example2_ADC/FWLib/src/stm32f10x_nvic.c
example2_ADC/FWLib/src/stm32f10x_pwr.c
example2_ADC/FWLib/src/stm32f10x_rcc.c
example2_ADC/FWLib/src/stm32f10x_rtc.c
example2_ADC/FWLib/src/stm32f10x_spi.c
example2_ADC/FWLib/src/stm32f10x_systick.c
example2_ADC/FWLib/src/stm32f10x_tim.c
example2_ADC/FWLib/src/stm32f10x_tim1.c
example2_ADC/FWLib/src/stm32f10x_usart.c
example2_ADC/FWLib/src/stm32f10x_wwdg.c
example2_ADC/Project/cortexm3_macro.s
example2_ADC/Project/Debug/Exe/example2_ADC.out
example2_ADC/Project/Debug/Obj/bsp.o
example2_ADC/Project/Debug/Obj/cortexm3_macro.o
example2_ADC/Project/Debug/Obj/example2_ADC.pbd
example2_ADC/Project/Debug/Obj/lcd.o
example2_ADC/Project/Debug/Obj/main.o
example2_ADC/Project/Debug/Obj/stm32f10x_adc.o
example2_ADC/Project/Debug/Obj/stm32f10x_dma.o
example2_ADC/Project/Debug/Obj/stm32f10x_flash.o
example2_ADC/Project/Debug/Obj/stm32f10x_gpio.o
example2_ADC/Project/Debug/Obj/stm32f10x_it.o
example2_ADC/Project/Debug/Obj/stm32f10x_lib.o
example2_ADC/Project/Debug/Obj/stm32f10x_nvic.o
example2_ADC/Project/Debug/Obj/stm32f10x_rcc.o
example2_ADC/Project/Debug/Obj/stm32f10x_tim.o
example2_ADC/Project/Debug/Obj/stm32f10x_tim1.o
example2_ADC/Project/Debug/Obj/stm32f10x_vector.o
example2_ADC/Project/example2_ADC.dep
example2_ADC/Project/example2_ADC.ewd
example2_ADC/Project/example2_ADC.ewp
example2_ADC/Project/example2_ADC.eww
example2_ADC/Project/lnkarm_flash.xcl
example2_ADC/Project/lnkarm_ram.xcl
example2_ADC/Project/settings/example2_ADC.cspy.bat
example2_ADC/Project/settings/example2_ADC.dbgdt
example2_ADC/Project/settings/example2_ADC.dni
example2_ADC/Project/settings/example2_ADC.wsdt
example2_ADC/Project/settings/example2_ADC_Debug.jlink
example2_ADC/Project/stm32f10x_flash.icf
example2_ADC/Project/stm32f10x_ram.icf
example2_ADC/Project/stm32f10x_vector.c
example2_ADC/Project/Debug/Exe
example2_ADC/Project/Debug/List
example2_ADC/Project/Debug/Obj
example2_ADC/FWLib/inc
example2_ADC/FWLib/src
example2_ADC/Project/Debug
example2_ADC/Project/settings
example2_ADC/App
example2_ADC/FWLib
example2_ADC/Project
example2_ADC
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.