文件名称:1.PWM_F1
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2015-07-22
- 文件大小:
- 335kb
- 下载次数:
- 0次
- 提 供 者:
- 刘**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
要使STM32的通用定时器TIMx产生PWM输出,我们会用到3个寄存器,来控制PWM的。这三个寄存器分别是:捕获/比较模式寄存器(TIMx_CCMR1/2)、捕获/比较使能寄存器(TIMx_CCER)、捕获/比较寄存器(TIMx_CCR1~4)。(注意,还有个TIMx的ARR寄存器是用来控制pwm的输出频率)
首先是捕获/比较模式寄存器(TIMx_CCMR1/2),该寄存器总共有2个,TIMx _CCMR1和TIMx _CCMR2。TIMx_CCMR1控制CH1和2,而TIMx_CCMR2控制CH3和4。-PWM channel configuration based on stm32
首先是捕获/比较模式寄存器(TIMx_CCMR1/2),该寄存器总共有2个,TIMx _CCMR1和TIMx _CCMR2。TIMx_CCMR1控制CH1和2,而TIMx_CCMR2控制CH3和4。-PWM channel configuration based on stm32
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.PWM_F1
........\CORE
........\....\core_cm3.c
........\....\core_cm3.h
........\....\startup_stm32f10x_hd.s
........\....\startup_stm32f10x_md.s
........\HARDWARE
........\........\EXTI
........\........\....\exti.c
........\........\....\exti.h
........\........\KEY
........\........\...\key.c
........\........\...\key.h
........\........\LED
........\........\...\led.c
........\........\...\led.h
........\........\PWM
........\........\...\pwm.c
........\........\...\pwm.h
........\........\TIMER
........\........\.....\timer.c
........\........\.....\timer.h
........\........\WDG
........\........\...\wdg.c
........\........\...\wdg.h
........\keilkilll.bat
........\STM32F10x_FWLib
........\...............\inc
........\...............\...\misc.h
........\...............\...\stm32f10x_adc.h
........\...............\...\stm32f10x_bkp.h
........\...............\...\stm32f10x_can.h
........\...............\...\stm32f10x_cec.h
........\...............\...\stm32f10x_crc.h
........\...............\...\stm32f10x_dac.h
........\...............\...\stm32f10x_dbgmcu.h
........\...............\...\stm32f10x_dma.h
........\...............\...\stm32f10x_exti.h
........\...............\...\stm32f10x_flash.h
........\...............\...\stm32f10x_fsmc.h
........\...............\...\stm32f10x_gpio.h
........\...............\...\stm32f10x_i2c.h
........\...............\...\stm32f10x_iwdg.h
........\...............\...\stm32f10x_pwr.h
........\...............\...\stm32f10x_rcc.h
........\...............\...\stm32f10x_rtc.h
........\...............\...\stm32f10x_sdio.h
........\...............\...\stm32f10x_spi.h
........\...............\...\stm32f10x_tim.h
........\...............\...\stm32f10x_usart.h
........\...............\...\stm32f10x_wwdg.h
........\...............\src
........\...............\...\misc.c
........\...............\...\stm32f10x_adc.c
........\...............\...\stm32f10x_bkp.c
........\...............\...\stm32f10x_can.c
........\...............\...\stm32f10x_cec.c
........\...............\...\stm32f10x_crc.c
........\...............\...\stm32f10x_dac.c
........\...............\...\stm32f10x_dbgmcu.c
........\...............\...\stm32f10x_dma.c
........\...............\...\stm32f10x_exti.c
........\...............\...\stm32f10x_flash.c
........\...............\...\stm32f10x_fsmc.c
........\...............\...\stm32f10x_gpio.c
........\...............\...\stm32f10x_i2c.c
........\...............\...\stm32f10x_iwdg.c
........\...............\...\stm32f10x_pwr.c
........\...............\...\stm32f10x_rcc.c
........\...............\...\stm32f10x_rtc.c
........\...............\...\stm32f10x_sdio.c
........\...............\...\stm32f10x_spi.c
........\...............\...\stm32f10x_tim.c
........\...............\...\stm32f10x_usart.c
........\...............\...\stm32f10x_wwdg.c
........\SYSTEM
........\......\delay
........\......\.....\delay.c
........\......\.....\delay.h
........\......\sys
........\......\...\sys.c
........\......\...\sys.h
........\......\usart
........\......\.....\usart.c
........\......\.....\usart.h
........\USER
........\....\JLinkSettings.ini
........\....\main.c
........\....\PWM.hex
........\....\PWM.plg
........\....\PWM.uvgui.admin
........\....\PWM.uvgui.Administrator
........\....\PWM.uvgui_admin.bak
........\....\PWM.uvopt
........\....\PWM.uvproj
........\....\PWM_Target 1.dep
........\....\stm32f10x.h
........\....\stm32f10x_conf.h
........\....\stm32f10x_it.c
........\....\stm32f10x_it.h