TIMER_RVMDK

所属分类:单片机开发
开发工具:C/C++
文件大小:148KB
下载次数:58
上传日期:2009-12-18 12:47:15
上 传 者Criss
说明:  本源码为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.)

文件列表:
TIMER\cortexm3_macro.s (9548, 2007-05-17)
TIMER\main.c (8799, 2008-03-14)
TIMER\obj\TIMER.plg (833, 2008-04-29)
TIMER\obj\TIMER.sct (479, 2008-04-29)
TIMER\obj\TIMER.tra (1696, 2008-04-29)
TIMER\stm32f10x_conf.h (5628, 2008-03-12)
TIMER\stm32f10x_it.c (23872, 2008-03-14)
TIMER\stm32f10x_it.h (3357, 2007-11-09)
TIMER\stm32f10x_vector.s (8676, 2007-06-11)
TIMER\TIMER.Opt (1988, 2008-04-29)
TIMER\TIMER.plg (176, 2008-04-29)
TIMER\TIMER.Uv2 (3269, 2008-04-29)
TIMER\TIMER_Opt.Bak (2088, 2008-04-29)
TIMER\TIMER_Uv2.Bak (3353, 2008-04-29)
library\inc\cortexm3_macro.h (2313, 2007-06-11)
library\inc\LCD.h (297, 2007-11-09)
library\inc\MAX1270.h (224, 2007-12-17)
library\inc\stm32f10x_adc.h (16421, 2007-06-11)
library\inc\stm32f10x_bkp.h (3526, 2007-06-11)
library\inc\stm32f10x_can.h (12319, 2007-06-11)
library\inc\stm32f10x_dma.h (12551, 2007-06-11)
library\inc\stm32f10x_exti.h (5868, 2007-06-11)
library\inc\stm32f10x_flash.h (10421, 2007-06-11)
library\inc\stm32f10x_gpio.h (12562, 2007-06-11)
library\inc\stm32f10x_i2c.h (15681, 2007-06-11)
library\inc\stm32f10x_iwdg.h (3534, 2007-06-11)
library\inc\stm32f10x_lib.h (3080, 2007-06-11)
library\inc\stm32f10x_map.h (20402, 2007-06-11)
library\inc\stm32f10x_nvic.h (16398, 2007-06-11)
library\inc\stm32f10x_pwr.h (3975, 2007-06-11)
library\inc\stm32f10x_rcc.h (13856, 2007-06-11)
library\inc\stm32f10x_rtc.h (3767, 2007-06-11)
library\inc\stm32f10x_spi.h (9436, 2007-06-11)
library\inc\stm32f10x_systick.h (3315, 2007-06-11)
library\inc\stm32f10x_tim.h (29150, 2007-06-11)
library\inc\stm32f10x_tim1.h (34803, 2007-06-11)
library\inc\stm32f10x_type.h (3189, 2007-06-11)
library\inc\stm32f10x_usart.h (11846, 2007-06-11)
library\inc\stm32f10x_wwdg.h (2750, 2007-06-11)
... ...

本示例程序主要测试定时器功能。 将定时器2设置为输出比较模式,4个通道分别设置不同的比较值,因此每个通道产生中断的频率不同。在中断处理程序中分别相应的LED翻转,从而可以观察到4个闪烁频率不同的LED。 闪烁频率由快到慢:LD5、LD6、LD4、LD3。

近期下载者

相关文件


收藏者