文件名称:TIMER_RVMDK
- 所属分类:
- 微处理器(ARM/PowerPC等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 148kb
- 下载次数:
- 0次
- 提 供 者:
- huangs*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本源码为STM32的定时器使用例程,主要测试定时器2的功能。开发环境realviewMDK
将定时器2设置为输出比较模式,4个通道分别设置不同的比较值,因此每个通道产生中断的频率不同。在中断处理程序中分别相应的LED翻转,从而可以观察到4个闪烁频率不同的LED。
闪烁频率由快到慢:LD5、LD6、LD4、LD3。-The source code for the STM32 timer routine use, the main test Timer 2 functions. Development environment realviewMDK set the timer 2 output compare mode, four-channel comparison of each set different values, so generate an interrupt for each channel a different frequency. In the interrupt handler, respectively, the corresponding LED flip, which can be observed four different frequencies of flashing LED. Flicker frequency by approaching slowly: LD5, LD6, LD4, LD3.
将定时器2设置为输出比较模式,4个通道分别设置不同的比较值,因此每个通道产生中断的频率不同。在中断处理程序中分别相应的LED翻转,从而可以观察到4个闪烁频率不同的LED。
闪烁频率由快到慢:LD5、LD6、LD4、LD3。-The source code for the STM32 timer routine use, the main test Timer 2 functions. Development environment realviewMDK set the timer 2 output compare mode, four-channel comparison of each set different values, so generate an interrupt for each channel a different frequency. In the interrupt handler, respectively, the corresponding LED flip, which can be observed four different frequencies of flashing LED. Flicker frequency by approaching slowly: LD5, LD6, LD4, LD3.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TIMER\cortexm3_macro.s
.....\main.c
.....\obj\TIMER.plg
.....\...\TIMER.sct
.....\...\TIMER.tra
.....\Readme.txt
.....\stm32f10x_conf.h
.....\stm32f10x_it.c
.....\stm32f10x_it.h
.....\stm32f10x_vector.s
.....\TIMER.Opt
.....\TIMER.plg
.....\TIMER.Uv2
.....\TIMER_Opt.Bak
.....\TIMER_Uv2.Bak
library\inc\cortexm3_macro.h
.......\...\LCD.h
.......\...\MAX1270.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\LCD.c
.......\...\MAX1270.c
.......\...\stm32f10x_adc.c
.......\...\stm32f10x_bkp.c
.......\...\stm32f10x_can.c
.......\...\stm32f10x_dma.c
.......\...\stm32f10x_exti.c
.......\...\stm32f10x_flash.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_spi.c
.......\...\stm32f10x_systick.c
.......\...\stm32f10x_tim.c
.......\...\stm32f10x_tim1.c
.......\...\stm32f10x_usart.c
.......\...\stm32f10x_wwdg.c
TIMER\listing
.....\obj
library\inc
.......\src
TIMER
library
.....\main.c
.....\obj\TIMER.plg
.....\...\TIMER.sct
.....\...\TIMER.tra
.....\Readme.txt
.....\stm32f10x_conf.h
.....\stm32f10x_it.c
.....\stm32f10x_it.h
.....\stm32f10x_vector.s
.....\TIMER.Opt
.....\TIMER.plg
.....\TIMER.Uv2
.....\TIMER_Opt.Bak
.....\TIMER_Uv2.Bak
library\inc\cortexm3_macro.h
.......\...\LCD.h
.......\...\MAX1270.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\LCD.c
.......\...\MAX1270.c
.......\...\stm32f10x_adc.c
.......\...\stm32f10x_bkp.c
.......\...\stm32f10x_can.c
.......\...\stm32f10x_dma.c
.......\...\stm32f10x_exti.c
.......\...\stm32f10x_flash.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_spi.c
.......\...\stm32f10x_systick.c
.......\...\stm32f10x_tim.c
.......\...\stm32f10x_tim1.c
.......\...\stm32f10x_usart.c
.......\...\stm32f10x_wwdg.c
TIMER\listing
.....\obj
library\inc
.......\src
TIMER
library