文件名称:TIMTrigger_AutoInjection
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 14kb
- 下载次数:
- 0次
- 提 供 者:
- wjg****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
TIM1触发ADC自动注入转换,注入组的通道 ADC1和ADC2工作于同步规则模式。
ADC1配置为每次TIM1捕获事件发生时转换ADC通道14。每次规则转换结束时触发DMA传输,将
转换结果从ADC1数据寄存器传输到ADC_RegularConvertedValueTab数组。
使能自动注入功能,允许在规则通道14转换结束时自动转换注入组的ADC通道11。在注入通道
转换结束时设置JE0C标志产生ADC中断,在中断服务程序将ADC转换结果存储到
ADC_InjectedConvertedValueTab数组。这个过程重复32次后TIM1外设被禁止。TIM1触发信号可以
通过示波器(非开发板集成的示波器)测量PA8引脚进行观测,同时PC6口线翻转指示自动注入转换过程。
-The TIM1 trigger ADC automatically injected conversion injected group channel ADC1 and ADC2 work in synchronization rule pattern. The ADC1 configured to capture event occurs each time TIM1 convert ADC channel 14. Each trigger a DMA transfer rules to the end of conversion, to convert the results from the ADC1 data register transfer to ADC_RegularConvertedValueTab array. Enable automatic injection capabilities, allowing the end of the rules of channel 14 conversion automatically converted to injection group ADC channel 11. In the injection channel is converted to set JE0C flag to generate an ADC interrupt, the interrupt service routine ADC conversion result stored in ADC_InjectedConvertedValueTab array. This process is repeated 32 times after the TIM1 peripheral is prohibited. The TIM1 trigger can signal through an oscilloscope (non-development board integration the oscilloscope) measuring the PA8 pins for observation, the flip of the PC6 mouth line instructions automatically injected in
ADC1配置为每次TIM1捕获事件发生时转换ADC通道14。每次规则转换结束时触发DMA传输,将
转换结果从ADC1数据寄存器传输到ADC_RegularConvertedValueTab数组。
使能自动注入功能,允许在规则通道14转换结束时自动转换注入组的ADC通道11。在注入通道
转换结束时设置JE0C标志产生ADC中断,在中断服务程序将ADC转换结果存储到
ADC_InjectedConvertedValueTab数组。这个过程重复32次后TIM1外设被禁止。TIM1触发信号可以
通过示波器(非开发板集成的示波器)测量PA8引脚进行观测,同时PC6口线翻转指示自动注入转换过程。
-The TIM1 trigger ADC automatically injected conversion injected group channel ADC1 and ADC2 work in synchronization rule pattern. The ADC1 configured to capture event occurs each time TIM1 convert ADC channel 14. Each trigger a DMA transfer rules to the end of conversion, to convert the results from the ADC1 data register transfer to ADC_RegularConvertedValueTab array. Enable automatic injection capabilities, allowing the end of the rules of channel 14 conversion automatically converted to injection group ADC channel 11. In the injection channel is converted to set JE0C flag to generate an ADC interrupt, the interrupt service routine ADC conversion result stored in ADC_InjectedConvertedValueTab array. This process is repeated 32 times after the TIM1 peripheral is prohibited. The TIM1 trigger can signal through an oscilloscope (non-development board integration the oscilloscope) measuring the PA8 pins for observation, the flip of the PC6 mouth line instructions automatically injected in
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TIMTrigger_AutoInjection\main.c
........................\readme.txt
........................\stm32f10x_conf.h
........................\stm32f10x_it.c
........................\stm32f10x_it.h
........................\system_stm32f10x.c
TIMTrigger_AutoInjection
........................\readme.txt
........................\stm32f10x_conf.h
........................\stm32f10x_it.c
........................\stm32f10x_it.h
........................\system_stm32f10x.c
TIMTrigger_AutoInjection