PWM

所属分类:处理器开发
开发工具:Visual C++
文件大小:1782KB
下载次数:88
上传日期:2012-04-17 17:37:11
上 传 者na239152605
说明:  用STM32实现控制PWM!实验现象是可以看到LED灯变暗又变亮!
(With STM32 realize control PWM! The experiment phenomenon is can see LED lights turn dark and brighten!)

文件列表:
PWM (0, 2012-03-19)
PWM\Lib (0, 2012-03-18)
PWM\Lib\CMSIS (0, 2012-03-18)
PWM\Lib\CMSIS\Core (0, 2012-03-18)
PWM\Lib\CMSIS\Core\CM3 (0, 2012-03-18)
PWM\Lib\CMSIS\Core\CM3\core_cm3.c (16249, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\core_cm3.h (42077, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup (0, 2012-03-18)
PWM\Lib\CMSIS\Core\CM3\startup\arm (0, 2012-03-18)
PWM\Lib\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_hd.s (15872, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_ld.s (12236, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_md.s (12564, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\gcc (0, 2012-03-18)
PWM\Lib\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c (16437, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_ld.c (12790, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_md.c (13104, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\iar (0, 2012-03-18)
PWM\Lib\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_hd.s (16573, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_ld.s (12001, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_md.s (12492, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\stm32f10x.h (530869, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\system_stm32f10x.c (24166, 2009-04-06)
PWM\Lib\CMSIS\Core\CM3\system_stm32f10x.h (2158, 2009-04-06)
PWM\Lib\CMSIS\Core\Documentation (0, 2012-03-18)
PWM\Lib\CMSIS\Core\Documentation\CMSIS_Core.htm (50779, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver (0, 2012-03-18)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc (0, 2012-03-18)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\misc.h (4951, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (19558, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h (7373, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h (14289, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h (1980, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h (10271, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h (2980, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h (18790, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h (5833, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h (14446, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_fsmc.h (17276, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_gpio.h (15050, 2009-04-06)
PWM\Lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_i2c.h (16923, 2009-04-06)
... ...

/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V2.0.1 * Date : 06/13/2008 * Description : Description of the SysTick Example. ******************************************************************************** * 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. *******************************************************************************/ Example description =================== This example shows how to configure the SysTick to generate a time base equal to 1 ms. The system clock is set to 72 MHz, the SysTick is clocked by the AHB clock (HCLK) divided by 8. A "Delay" function is implemented based on the SysTick end-of-count event. Four LEDs connected to the GPIO_LED Pin 6, Pin 7, Pin 8 and Pin 9 are toggled with a timing defined by the Delay function. Directory contents ================== platform_config.h Evaluation board specific configuration file stm32f10x_conf.h Library Configuration file stm32f10x_it.c Interrupt handlers stm32f10x_it.h Header for stm32f10x_it.c main.c Main program main.h Header for main.c Hardware environment ==================== This example runs on STMicroelectronics STM3210B-EVAL and STM3210E-EVAL evaluation boards and can be easily tailored to any other hardware. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. + STM3210B-EVAL - Use LD1, LD2, LD3 and LD4 leds connected respectively to PC.06, PC.07, PC.08 and PC.09 pins + STM3210E-EVAL - Use LD1, LD2, LD3 and LD4 leds connected respectively to PF.06, PF0.7, PF.08 and PF.09 pins How to use it ============= In order to make the program work, you must do the following: - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files: + stm32f10x_lib.c + stm32f10x_gpio.c + stm32f10x_rcc.c + stm32f10x_nvic.c + stm32f10x_flash.c + stm32f10x_systick.c - Link all compiled files and load your image into target memory - Run the example ******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者