STM32F103C8+LED.zip
大小:10.97MB
价格:21积分
下载量:0
评分:
5.0
上传者:mym351381869
更新日期:2025-09-22

STM32F103C8T6+LED显示

资源文件列表(大概)

文件名
大小
LED/
-
LED/keil_LED/
-
LED/keil_LED/CORE/
-
LED/keil_LED/CORE/core_cm3.c
16.87KB
LED/keil_LED/CORE/core_cm3.h
83.71KB
LED/keil_LED/CORE/startup_stm32f10x_ld.s
12.09KB
LED/keil_LED/LED.uvgui.1
136.43KB
LED/keil_LED/LED.uvopt
18.1KB
LED/keil_LED/LED.uvproj
20.67KB
LED/keil_LED/Listings/
-
LED/keil_LED/Listings/LED.map
99.51KB
LED/keil_LED/Listings/startup_stm32f10x_ld.lst
38.17KB
LED/keil_LED/OBJ/
-
LED/keil_LED/OBJ/core_cm3.crf
3.85KB
LED/keil_LED/OBJ/core_cm3.d
99B
LED/keil_LED/OBJ/core_cm3.o
10.68KB
LED/keil_LED/OBJ/LED.axf
461.22KB
LED/keil_LED/OBJ/LED.build_log.htm
1.29KB
LED/keil_LED/OBJ/led.crf
338.1KB
LED/keil_LED/OBJ/led.d
1.29KB
LED/keil_LED/OBJ/LED.hex
4.79KB
LED/keil_LED/OBJ/LED.hex.asm
21B
LED/keil_LED/OBJ/LED.htm
34.38KB
LED/keil_LED/OBJ/LED.lnp
941B
LED/keil_LED/OBJ/led.o
371.85KB
LED/keil_LED/OBJ/LED.sct
479B
LED/keil_LED/OBJ/LED_Target 1.dep
46.74KB
LED/keil_LED/OBJ/main.crf
338.4KB
LED/keil_LED/OBJ/main.d
1.35KB
LED/keil_LED/OBJ/main.o
373.2KB
LED/keil_LED/OBJ/misc.crf
338.36KB
LED/keil_LED/OBJ/misc.d
1.34KB
LED/keil_LED/OBJ/misc.o
372.8KB
LED/keil_LED/OBJ/startup_stm32f10x_ld.d
59B
LED/keil_LED/OBJ/startup_stm32f10x_ld.o
5.63KB
LED/keil_LED/OBJ/stm32f10x_adc.crf
345.36KB
LED/keil_LED/OBJ/stm32f10x_adc.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_adc.o
417.86KB
LED/keil_LED/OBJ/stm32f10x_bkp.crf
339.28KB
LED/keil_LED/OBJ/stm32f10x_bkp.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_bkp.o
382.23KB
LED/keil_LED/OBJ/stm32f10x_can.crf
346.93KB
LED/keil_LED/OBJ/stm32f10x_can.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_can.o
403.7KB
LED/keil_LED/OBJ/stm32f10x_cec.crf
339.82KB
LED/keil_LED/OBJ/stm32f10x_cec.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_cec.o
384.72KB
LED/keil_LED/OBJ/stm32f10x_crc.crf
337.92KB
LED/keil_LED/OBJ/stm32f10x_crc.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_crc.o
373.77KB
LED/keil_LED/OBJ/stm32f10x_dac.crf
339.95KB
LED/keil_LED/OBJ/stm32f10x_dac.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_dac.o
382.85KB
LED/keil_LED/OBJ/stm32f10x_dbgmcu.crf
337.72KB
LED/keil_LED/OBJ/stm32f10x_dbgmcu.d
1.73KB
LED/keil_LED/OBJ/stm32f10x_dbgmcu.o
370.02KB
LED/keil_LED/OBJ/stm32f10x_dma.crf
341.39KB
LED/keil_LED/OBJ/stm32f10x_dma.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_dma.o
382.36KB
LED/keil_LED/OBJ/stm32f10x_exti.crf
338.9KB
LED/keil_LED/OBJ/stm32f10x_exti.d
1.67KB
LED/keil_LED/OBJ/stm32f10x_exti.o
376.71KB
LED/keil_LED/OBJ/stm32f10x_flash.crf
345.2KB
LED/keil_LED/OBJ/stm32f10x_flash.d
1.7KB
LED/keil_LED/OBJ/stm32f10x_flash.o
407.2KB
LED/keil_LED/OBJ/stm32f10x_fsmc.crf
343.74KB
LED/keil_LED/OBJ/stm32f10x_fsmc.d
1.67KB
LED/keil_LED/OBJ/stm32f10x_fsmc.o
393.31KB
LED/keil_LED/OBJ/stm32f10x_gpio.crf
341.77KB
LED/keil_LED/OBJ/stm32f10x_gpio.d
1.67KB
LED/keil_LED/OBJ/stm32f10x_gpio.o
392.21KB
LED/keil_LED/OBJ/stm32f10x_i2c.crf
344.15KB
LED/keil_LED/OBJ/stm32f10x_i2c.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_i2c.o
412.22KB
LED/keil_LED/OBJ/stm32f10x_it.crf
338.02KB
LED/keil_LED/OBJ/stm32f10x_it.d
1.58KB
LED/keil_LED/OBJ/stm32f10x_it.o
380.37KB
LED/keil_LED/OBJ/stm32f10x_iwdg.crf
338.02KB
LED/keil_LED/OBJ/stm32f10x_iwdg.d
1.67KB
LED/keil_LED/OBJ/stm32f10x_iwdg.o
373.73KB
LED/keil_LED/OBJ/stm32f10x_pwr.crf
339.18KB
LED/keil_LED/OBJ/stm32f10x_pwr.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_pwr.o
378.27KB
LED/keil_LED/OBJ/stm32f10x_rcc.crf
345.26KB
LED/keil_LED/OBJ/stm32f10x_rcc.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_rcc.o
410.97KB
LED/keil_LED/OBJ/stm32f10x_rtc.crf
339.18KB
LED/keil_LED/OBJ/stm32f10x_rtc.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_rtc.o
384.26KB
LED/keil_LED/OBJ/stm32f10x_sdio.crf
342.37KB
LED/keil_LED/OBJ/stm32f10x_sdio.d
1.67KB
LED/keil_LED/OBJ/stm32f10x_sdio.o
405.97KB
LED/keil_LED/OBJ/stm32f10x_spi.crf
342.24KB
LED/keil_LED/OBJ/stm32f10x_spi.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_spi.o
398.39KB
LED/keil_LED/OBJ/stm32f10x_tim.crf
359.93KB
LED/keil_LED/OBJ/stm32f10x_tim.d
1.63KB
LED/keil_LED/OBJ/stm32f10x_tim.o
493.2KB
LED/keil_LED/OBJ/stm32f10x_usart.crf
343.84KB
LED/keil_LED/OBJ/stm32f10x_usart.d
1.7KB
LED/keil_LED/OBJ/stm32f10x_usart.o
407.23KB
LED/keil_LED/OBJ/stm32f10x_wwdg.crf
338.46KB
LED/keil_LED/OBJ/stm32f10x_wwdg.d
1.67KB
LED/keil_LED/OBJ/stm32f10x_wwdg.o
376.53KB
LED/keil_LED/OBJ/system_stm32f10x.crf
339.49KB
LED/keil_LED/OBJ/system_stm32f10x.d
1.66KB
LED/keil_LED/OBJ/system_stm32f10x.o
372.06KB
LED/keil_LED/Objects/
-
LED/keil_LED/Objects/core_cm3.crf
3.85KB
LED/keil_LED/Objects/core_cm3.d
107B
LED/keil_LED/Objects/core_cm3.o
10.7KB
LED/keil_LED/Objects/LED.axf
234.45KB
LED/keil_LED/Objects/LED.build_log.htm
2KB
LED/keil_LED/Objects/led.crf
337.41KB
LED/keil_LED/Objects/led.d
1.41KB
LED/keil_LED/Objects/LED.hex
2.81KB
LED/keil_LED/Objects/LED.htm
29.96KB
LED/keil_LED/Objects/LED.lnp
1.04KB
LED/keil_LED/Objects/led.o
366.67KB
LED/keil_LED/Objects/LED.sct
479B
LED/keil_LED/Objects/LED_Target 1.dep
47.08KB
LED/keil_LED/Objects/main.crf
337.97KB
LED/keil_LED/Objects/main.d
1.48KB
LED/keil_LED/Objects/main.o
368.74KB
LED/keil_LED/Objects/misc.crf
338.36KB
LED/keil_LED/Objects/misc.d
1.46KB
LED/keil_LED/Objects/misc.o
372.81KB
LED/keil_LED/Objects/startup_stm32f10x_ld.d
63B
LED/keil_LED/Objects/startup_stm32f10x_ld.o
5.63KB
LED/keil_LED/Objects/stm32f10x_adc.crf
345.36KB
LED/keil_LED/Objects/stm32f10x_adc.d
1.75KB
LED/keil_LED/Objects/stm32f10x_adc.o
417.88KB
LED/keil_LED/Objects/stm32f10x_bkp.crf
339.28KB
LED/keil_LED/Objects/stm32f10x_bkp.d
1.75KB
LED/keil_LED/Objects/stm32f10x_bkp.o
382.24KB
LED/keil_LED/Objects/stm32f10x_can.crf
346.93KB
LED/keil_LED/Objects/stm32f10x_can.d
1.75KB
LED/keil_LED/Objects/stm32f10x_can.o
403.71KB
LED/keil_LED/Objects/stm32f10x_cec.crf
339.82KB
LED/keil_LED/Objects/stm32f10x_cec.d
1.75KB
LED/keil_LED/Objects/stm32f10x_cec.o
384.73KB
LED/keil_LED/Objects/stm32f10x_crc.crf
337.92KB
LED/keil_LED/Objects/stm32f10x_crc.d
1.75KB
LED/keil_LED/Objects/stm32f10x_crc.o
373.78KB
LED/keil_LED/Objects/stm32f10x_dac.crf
339.95KB
LED/keil_LED/Objects/stm32f10x_dac.d
1.75KB
LED/keil_LED/Objects/stm32f10x_dac.o
382.86KB
LED/keil_LED/Objects/stm32f10x_dbgmcu.crf
337.72KB
LED/keil_LED/Objects/stm32f10x_dbgmcu.d
1.85KB
LED/keil_LED/Objects/stm32f10x_dbgmcu.o
370.04KB
LED/keil_LED/Objects/stm32f10x_dma.crf
341.39KB
LED/keil_LED/Objects/stm32f10x_dma.d
1.75KB
LED/keil_LED/Objects/stm32f10x_dma.o
382.37KB
LED/keil_LED/Objects/stm32f10x_exti.crf
338.9KB
LED/keil_LED/Objects/stm32f10x_exti.d
1.79KB
LED/keil_LED/Objects/stm32f10x_exti.o
376.72KB
LED/keil_LED/Objects/stm32f10x_flash.crf
345.2KB
LED/keil_LED/Objects/stm32f10x_flash.d
1.82KB
LED/keil_LED/Objects/stm32f10x_flash.o
407.21KB
LED/keil_LED/Objects/stm32f10x_fsmc.crf
343.74KB
LED/keil_LED/Objects/stm32f10x_fsmc.d
1.79KB
LED/keil_LED/Objects/stm32f10x_fsmc.o
393.32KB
LED/keil_LED/Objects/stm32f10x_gpio.crf
341.77KB
LED/keil_LED/Objects/stm32f10x_gpio.d
1.79KB
LED/keil_LED/Objects/stm32f10x_gpio.o
392.22KB
LED/keil_LED/Objects/stm32f10x_i2c.crf
344.15KB
LED/keil_LED/Objects/stm32f10x_i2c.d
1.75KB
LED/keil_LED/Objects/stm32f10x_i2c.o
412.23KB
LED/keil_LED/Objects/stm32f10x_it.crf
338.02KB
LED/keil_LED/Objects/stm32f10x_it.d
1.7KB
LED/keil_LED/Objects/stm32f10x_it.o
380.38KB
LED/keil_LED/Objects/stm32f10x_iwdg.crf
338.02KB
LED/keil_LED/Objects/stm32f10x_iwdg.d
1.79KB
LED/keil_LED/Objects/stm32f10x_iwdg.o
373.74KB
LED/keil_LED/Objects/stm32f10x_pwr.crf
339.18KB
LED/keil_LED/Objects/stm32f10x_pwr.d
1.75KB
LED/keil_LED/Objects/stm32f10x_pwr.o
378.28KB
LED/keil_LED/Objects/stm32f10x_rcc.crf
345.26KB
LED/keil_LED/Objects/stm32f10x_rcc.d
1.75KB
LED/keil_LED/Objects/stm32f10x_rcc.o
410.98KB
LED/keil_LED/Objects/stm32f10x_rtc.crf
339.18KB
LED/keil_LED/Objects/stm32f10x_rtc.d
1.75KB
LED/keil_LED/Objects/stm32f10x_rtc.o
384.27KB
LED/keil_LED/Objects/stm32f10x_sdio.crf
342.37KB
LED/keil_LED/Objects/stm32f10x_sdio.d
1.79KB
LED/keil_LED/Objects/stm32f10x_sdio.o
405.98KB
LED/keil_LED/Objects/stm32f10x_spi.crf
342.24KB
LED/keil_LED/Objects/stm32f10x_spi.d
1.75KB
LED/keil_LED/Objects/stm32f10x_spi.o
398.4KB
LED/keil_LED/Objects/stm32f10x_tim.crf
359.93KB
LED/keil_LED/Objects/stm32f10x_tim.d
1.75KB
LED/keil_LED/Objects/stm32f10x_tim.o
493.21KB
LED/keil_LED/Objects/stm32f10x_usart.crf
343.84KB
LED/keil_LED/Objects/stm32f10x_usart.d
1.82KB
LED/keil_LED/Objects/stm32f10x_usart.o
407.25KB
LED/keil_LED/Objects/stm32f10x_wwdg.crf
338.46KB
LED/keil_LED/Objects/stm32f10x_wwdg.d
1.79KB
LED/keil_LED/Objects/stm32f10x_wwdg.o
376.54KB
LED/keil_LED/Objects/system_stm32f10x.crf
339.49KB
LED/keil_LED/Objects/system_stm32f10x.d
1.77KB
LED/keil_LED/Objects/system_stm32f10x.o
372.07KB
LED/keil_LED/STM32LIB/
-
LED/keil_LED/STM32LIB/inc/
-
LED/keil_LED/STM32LIB/inc/misc.h
8.77KB
LED/keil_LED/STM32LIB/inc/stm32f10x_adc.h
21.18KB
LED/keil_LED/STM32LIB/inc/stm32f10x_bkp.h
7.38KB
LED/keil_LED/STM32LIB/inc/stm32f10x_can.h
26.91KB
LED/keil_LED/STM32LIB/inc/stm32f10x_cec.h
6.42KB
LED/keil_LED/STM32LIB/inc/stm32f10x_crc.h
2.11KB
LED/keil_LED/STM32LIB/inc/stm32f10x_dac.h
14.88KB
LED/keil_LED/STM32LIB/inc/stm32f10x_dbgmcu.h
3.73KB
LED/keil_LED/STM32LIB/inc/stm32f10x_dma.h
20.27KB
LED/keil_LED/STM32LIB/inc/stm32f10x_exti.h
6.66KB
LED/keil_LED/STM32LIB/inc/stm32f10x_flash.h
24.85KB
LED/keil_LED/STM32LIB/inc/stm32f10x_fsmc.h
26.38KB
LED/keil_LED/STM32LIB/inc/stm32f10x_gpio.h
19.7KB
LED/keil_LED/STM32LIB/inc/stm32f10x_i2c.h
29.33KB
LED/keil_LED/STM32LIB/inc/stm32f10x_iwdg.h
3.74KB
LED/keil_LED/STM32LIB/inc/stm32f10x_pwr.h
4.28KB
LED/keil_LED/STM32LIB/inc/stm32f10x_rcc.h
29.74KB
LED/keil_LED/STM32LIB/inc/stm32f10x_rtc.h
3.77KB
LED/keil_LED/STM32LIB/inc/stm32f10x_sdio.h
21.35KB
LED/keil_LED/STM32LIB/inc/stm32f10x_spi.h
17.31KB
LED/keil_LED/STM32LIB/inc/stm32f10x_tim.h
51.2KB
LED/keil_LED/STM32LIB/inc/stm32f10x_usart.h
16.16KB
LED/keil_LED/STM32LIB/inc/stm32f10x_wwdg.h
2.9KB
LED/keil_LED/STM32LIB/src/
-
LED/keil_LED/STM32LIB/src/misc.c
6.88KB
LED/keil_LED/STM32LIB/src/stm32f10x_adc.c
46.09KB
LED/keil_LED/STM32LIB/src/stm32f10x_bkp.c
8.26KB
LED/keil_LED/STM32LIB/src/stm32f10x_can.c
44.05KB
LED/keil_LED/STM32LIB/src/stm32f10x_cec.c
11.38KB
LED/keil_LED/STM32LIB/src/stm32f10x_crc.c
3.27KB
LED/keil_LED/STM32LIB/src/stm32f10x_dac.c
18.64KB
LED/keil_LED/STM32LIB/src/stm32f10x_dbgmcu.c
5.03KB
LED/keil_LED/STM32LIB/src/stm32f10x_dma.c
28.91KB
LED/keil_LED/STM32LIB/src/stm32f10x_exti.c
6.8KB
LED/keil_LED/STM32LIB/src/stm32f10x_flash.c
61.08KB
LED/keil_LED/STM32LIB/src/stm32f10x_fsmc.c
34.65KB
LED/keil_LED/STM32LIB/src/stm32f10x_gpio.c
22.68KB
LED/keil_LED/STM32LIB/src/stm32f10x_i2c.c
44.71KB
LED/keil_LED/STM32LIB/src/stm32f10x_iwdg.c
4.8KB
LED/keil_LED/STM32LIB/src/stm32f10x_pwr.c
8.55KB
LED/keil_LED/STM32LIB/src/stm32f10x_rcc.c
50.07KB
LED/keil_LED/STM32LIB/src/stm32f10x_rtc.c
8.4KB
LED/keil_LED/STM32LIB/src/stm32f10x_sdio.c
28.25KB
LED/keil_LED/STM32LIB/src/stm32f10x_spi.c
29.52KB
LED/keil_LED/STM32LIB/src/stm32f10x_tim.c
106.6KB
LED/keil_LED/STM32LIB/src/stm32f10x_usart.c
37.41KB
LED/keil_LED/STM32LIB/src/stm32f10x_wwdg.c
5.6KB
LED/keil_LED/USER/
-
LED/keil_LED/USER/led.c
1.04KB
LED/keil_LED/USER/led.h
181B
LED/keil_LED/USER/led.h.bak
-
LED/keil_LED/USER/main.c
580B
LED/keil_LED/USER/stm32f10x.h
619.08KB
LED/keil_LED/USER/stm32f10x_conf.h
3.18KB
LED/keil_LED/USER/stm32f10x_it.c
4.71KB
LED/keil_LED/USER/stm32f10x_it.h
2.11KB
LED/keil_LED/USER/system_stm32f10x.c
35.69KB
LED/keil_LED/USER/system_stm32f10x.h
2.04KB
LED/proteus_LED/
-
LED/proteus_LED/Backup Of LED.pdsbak
83.35KB
LED/proteus_LED/Last Loaded LED.pdsbak
85.01KB
LED/proteus_LED/LED.pdsprj
92.9KB
LED/proteus_LED/LED.pdsprj.DESKTOP-J4OK9VH.1.workspace
13.72KB
LED/proteus_LED/LED.pdsprj.MOHEN.mym35.workspace
2.02KB
LED/SI/
-
LED/SI/LED.si4project/
-
LED/SI/LED.si4project/LED.bookmarks.xml
162B
LED/SI/LED.si4project/LED.siproj
19.4KB
LED/SI/LED.si4project/LED.siproj_settings.xml
509B
LED/SI/LED.si4project/LED.sip_sym
1.8MB
LED/SI/LED.si4project/LED.sip_xab
872KB
LED/SI/LED.si4project/LED.sip_xad
8.84KB
LED/SI/LED.si4project/LED.sip_xc
117.12KB
LED/SI/LED.si4project/LED.sip_xf
117.12KB
LED/SI/LED.si4project/LED.sip_xm
236B
LED/SI/LED.si4project/LED.sip_xr
117.12KB
LED/SI/LED.si4project/LED.sip_xsb
244KB
LED/SI/LED.si4project/LED.sip_xsd
2.7KB
LED/SI/LED.si4project/LED.siwork
26.35KB
LED/SI/LED.si4project/LED.snippets.xml
170B

资源内容介绍

实验要求用proteus+keil编写用Proteus设计一个STM32最小系统板+LED流水灯实验原理图,仿真运行。以STM32最小系统核心板(STM32F103C8T6)+3只红绿蓝LED搭建电路,使用GPIOA端口控制LED灯,轮流闪烁,间隔时长1秒。程序采用stm32标准库编写,keil5编译,代码有详细注解。
/** ****************************************************************************** * @file stm32f10x_tim.c * @author MCD Application Team * @version V3.5.0 * @date 11-March-2011 * @brief This file provides all the TIM firmware functions. ****************************************************************************** * @attention * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2> ****************************************************************************** */#include "stm32f10x_tim.h"#include "stm32f10x_rcc.h"/** @addtogroup STM32F10x_StdPeriph_Driver * @{ *//** @defgroup TIM * @brief TIM driver modules * @{ *//** @defgroup TIM_Private_TypesDefinitions * @{ *//** * @} *//** @defgroup TIM_Private_Defines * @{ */#define SMCR_ETR_Mask ((uint16_t)0x00FF) #define CCMR_Offset ((uint16_t)0x0018)#define CCER_CCE_Set ((uint16_t)0x0001) #defineCCER_CCNE_Set ((uint16_t)0x0004) /** * @} *//** @defgroup TIM_Private_Macros * @{ *//** * @} *//** @defgroup TIM_Private_Variables * @{ *//** * @} *//** @defgroup TIM_Private_FunctionPrototypes * @{ */static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter);static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter);static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter);static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter);/** * @} *//** @defgroup TIM_Private_Macros * @{ *//** * @} *//** @defgroup TIM_Private_Variables * @{ *//** * @} *//** @defgroup TIM_Private_FunctionPrototypes * @{ *//** * @} *//** @defgroup TIM_Private_Functions * @{ *//** * @brief Deinitializes the TIMx peripheral registers to their default reset values. * @param TIMx: where x can be 1 to 17 to select the TIM peripheral. * @retval None */void TIM_DeInit(TIM_TypeDef* TIMx){ assert_param(IS_TIM_ALL_PERIPH(TIMx)); if (TIMx == TIM1) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, DISABLE); } else if (TIMx == TIM2) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, DISABLE); } else if (TIMx == TIM3) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, DISABLE); } else if (TIMx == TIM4) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, DISABLE); } else if (TIMx == TIM5) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, DISABLE); } else if (TIMx == TIM6) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, DISABLE); } else if (TIMx == TIM7) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, DISABLE); } else if (TIMx == TIM8) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, DISABLE); } else if (TIMx == TIM9) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, DISABLE); } else if (TIMx == TIM10) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, DISABLE); } else if (TIMx == TIM11) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, DISABLE); } else if (TIMx == TIM12) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, DISABLE); } else if (TIMx == TIM13) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, DISABLE); } else if (TIMx == TIM14) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, DISABLE); } else if (TIMx == TIM15) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM15, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM15, DISABLE); } else if (TIMx == TIM16) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM16, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM16, DISABLE); } else { if (TIMx == TIM17) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM17, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM17, DISABLE); } }}/** * @brief Initializes the TIMx Time Base Unit peripheral according to * the specified parameters in the TIM_TimeBaseInitStruct. * @param TIMx: where x can be 1 to 17 to select the TIM peripheral. * @param TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef * structure that contains the configuration information for the * specified TIM peripheral. * @retval None */void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct){ uint16_t tmpcr1 = 0; assert_param(IS_TIM_ALL_PERIPH(TIMx)); assert_param(IS_TIM_COUNTER_MODE(TIM_TimeBaseInitStruct->TIM_CounterMode)); assert_param(IS_TIM_CKD_DIV(TIM_TimeBaseInitStruct->TIM_ClockDivision)); tmpcr1 = TIMx->CR1; if((TIMx == TIM1) || (TIMx == TIM8)|| (TIMx == TIM2) || (TIMx == TIM3)|| (TIMx == TIM4) || (TIMx == TIM5)) { tmpcr1 &= (uint16_t)(~((uint16_t)(TIM_CR1_DIR | TIM_CR1_CMS))); tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_CounterMode; } if((TIMx != TIM6) && (TIMx != TIM7)) { tmpcr1 &= (uint16_t)(~((uint16_t)TIM_CR1_CKD)); tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_ClockDivision; } TIMx->CR1 = tmpcr1; TIMx->ARR = TIM_TimeBaseInitStruct->TIM_Period ; TIMx->PSC = TIM_TimeBaseInitStruct->TIM_Prescaler; if ((TIMx == TIM1) || (TIMx == TIM8)|| (TIMx == TIM15)|| (TIMx == TIM16) || (TIMx == TIM17)) { TIMx->RCR = TIM_TimeBaseInitStruct->TIM_RepetitionCounter; } TIMx->EGR = TIM_PSCReloadMode_Immediate; }/** * @brief Initializes the TIMx Channel1 according to the specified * parameters in the TIM_OCInitStruct. * @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. * @param TIM_OCInitStru

用户评论 (0)

发表评论

captcha

相关资源

stm32f103c8t6+8位数码管,使用proteus仿真+keil编译

实验要求使用proteus仿真+keil编译用Proteus设计一个STM32最小系统板+8位数码管实验原理图,仿真运行。以STM32最小系统核心板(STM32F103C8T6)编写程序驱动数码管,显示0-9数字。用stm32标准库编写,有必要的注释。

5.86MB35积分

NPOI2.5.6版本

NPOI是指构建在POI 3.x版本之上的一个程序,NPOI可以在没有安装Office的情况下对Word或Excel文档进行读写操作。NPOI是一个开源的C#读写Excel、WORD等微软OLE2组件文档的项目。NPOI之所以强大,并不是因为它支持导出Excel,而是因为它支持导入Excel,并能“理解”OLE2文档结构,这也是其他一些Excel读写库比较弱的方面。通常,读入并理解结构远比导出来得复杂,因为导入你必须假设一切情况都是可能的,而生成你只要保证满足你自己需求就可以了,如果把导入需求和生成需求比做两个集合,那么生成需求通常都是导入需求的子集,这一规律不仅体现在Excel读写库中,也体现在pdf读写库中,目前市面上大部分的pdf库仅支持生成,不支持导入。

10.62MB34积分

NPOI2.4.1使用 NPOI 你就可以在没有安装 Office 或者相应环境的机器上对 WORD/EXCEL 文档进行读写

NPOI2.4.1使用 NPOI 你就可以在没有安装 Office 或者相应环境的机器上对 WORD/EXCEL 文档进行读写

4.61MB10积分

stm32f103c8t6按键数码管编程+proteus原理图

实验要求使用proteus仿真+keil编译用Proteus设计一个STM32最小系统板+按键+数码管实验原理图,仿真运行。以STM32最小系统核心板(STM32F103C8T6)编写程序驱动数码管,显示0-9数字,通过按键控制数字显示,每按一次数字加1,到9返回0。用stm32标准库编写,有必要的注释。

5.77MB29积分