Timer2

所属分类:单片机开发
开发工具:matlab
文件大小:629KB
下载次数:6
上传日期:2012-08-17 09:43:34
上 传 者topyin
说明:  使用keil开发环境对STM32编程,本程序为时钟程序
(Keil development environment on the STM32 programming, the program clock program )

文件列表:
Timer2\cortexm3_macro.d (44, 2012-05-30)
Timer2\cortexm3_macro.lst (26245, 2012-05-30)
Timer2\cortexm3_macro.o (2440, 2012-05-30)
Timer2\FWLib\inc\cortexm3_macro.h (2225, 2008-09-23)
Timer2\FWLib\inc\sht10.h (495, 2011-10-19)
Timer2\FWLib\inc\stm32f10x_adc.h (18854, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_bkp.h (6911, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_can.h (12279, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_crc.h (1881, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_dac.h (9598, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_dbgmcu.h (2859, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_dma.h (17974, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_exti.h (5776, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_flash.h (13996, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_fsmc.h (19041, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_gpio.h (14820, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_i2c.h (16213, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_iwdg.h (3414, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_lib.h (3200, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_map.h (28290, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_nvic.h (19198, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_pwr.h (3865, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_rcc.h (14783, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_rtc.h (3619, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_sdio.h (18326, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_spi.h (13782, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_systick.h (3212, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_tim.h (47203, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_type.h (3388, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_usart.h (14395, 2008-09-23)
Timer2\FWLib\inc\stm32f10x_wwdg.h (2620, 2008-09-23)
Timer2\FWLib\src\sht10.c (20, 2011-10-19)
Timer2\FWLib\src\sht10.h (527, 2011-10-19)
Timer2\FWLib\src\src.lnk (439, 2011-10-19)
Timer2\FWLib\src\stm32f10x_adc.c (58563, 2008-09-23)
Timer2\FWLib\src\stm32f10x_bkp.c (11170, 2008-09-23)
Timer2\FWLib\src\stm32f10x_can.c (32049, 2008-09-23)
Timer2\FWLib\src\stm32f10x_crc.c (4615, 2008-09-23)
Timer2\FWLib\src\stm32f10x_dac.c (17175, 2008-09-23)
Timer2\FWLib\src\stm32f10x_dbgmcu.c (5222, 2008-09-23)
... ...

程序配置说明: 第一步:对RCC进行配置 第二步:对GPIO进行配置 第三步:对中断优先级进行配置 {优先级组选者 通道使能 抢占优先级 从优先级等配置} 第四步:对Timer进行配置 {1、装载值 2、预分频值 3、时钟分割 4、计数模式} 第五步:写中断服务程序 注意:1、同一个project只能有一个PriorityGroup; 2、抢占优先级 从优先级都相等的时候,参照向量表 本程序实现的功能:1、计数程序 2、时钟程序 3、闹钟程序 4、到时作为触发程序

近期下载者

相关文件


收藏者