资源简介
STM32定时器1实现两组PWM互补输出,DMA方式实现占空比可调,并带有死区。
代码片段和文件信息
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED “AS IS“. NO WARRANTIES WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0 psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the curren
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 497 2015-08-02 17:15 TIM1_SPWM(DMA)\USER\Jli
文件 49590 2015-08-02 18:29 TIM1_SPWM(DMA)\USER\Jli
文件 375 2012-03-29 14:15 TIM1_SPWM(DMA)\USER\Jli
文件 1192 2015-07-28 14:55 TIM1_SPWM(DMA)\USER\main.c
文件 11719 2015-08-02 22:10 TIM1_SPWM(DMA)\USER\pwm_output.c
文件 136 2015-07-28 15:01 TIM1_SPWM(DMA)\USER\pwm_output.h
文件 3606 2012-03-29 13:51 TIM1_SPWM(DMA)\USER\STM32-DEMO.plg
文件 136375 2012-06-02 23:36 TIM1_SPWM(DMA)\USER\STM32-DEMO.uvgui.flyleaf
....... 135378 2015-08-02 22:12 TIM1_SPWM(DMA)\USER\STM32-DEMO.uvgui_Administrator.bak
文件 136367 2012-06-02 15:01 TIM1_SPWM(DMA)\USER\STM32-DEMO.uvgui_flyleaf.bak
文件 42514 2012-04-18 11:44 TIM1_SPWM(DMA)\USER\STM32-DEMO_3.5-Template.dep
文件 7323 2015-08-02 22:13 TIM1_SPWM(DMA)\USER\STM32-DEMO_Target 1.dep
....... 14898 2015-08-02 22:12 TIM1_SPWM(DMA)\USER\STM32-DEMO_uvopt.bak
....... 16389 2015-07-04 22:03 TIM1_SPWM(DMA)\USER\STM32-DEMO_uvproj.bak
文件 3297 2015-07-28 14:29 TIM1_SPWM(DMA)\USER\stm32f10x_conf.h
文件 4405 2011-04-04 19:03 TIM1_SPWM(DMA)\USER\stm32f10x_it.c
文件 2086 2011-04-04 19:03 TIM1_SPWM(DMA)\USER\stm32f10x_it.h
....... 16580 2015-07-28 17:40 TIM1_SPWM(DMA)\USER\STM32-DEMO.uvproj
....... 14898 2015-08-02 22:13 TIM1_SPWM(DMA)\USER\STM32-DEMO.uvopt
....... 135370 2015-08-02 22:13 TIM1_SPWM(DMA)\USER\STM32-DEMO.uvgui.Administrator
文件 3548 2015-07-28 15:39 TIM1_SPWM(DMA)\Output\core_cm3.crf
文件 114 2015-07-28 15:39 TIM1_SPWM(DMA)\Output\core_cm3.d
文件 10396 2015-07-28 15:39 TIM1_SPWM(DMA)\Output\core_cm3.o
文件 19 2012-05-31 18:22 TIM1_SPWM(DMA)\Output\ExtDll.iex
文件 259109 2012-05-31 18:30 TIM1_SPWM(DMA)\Output\led.crf
文件 443 2012-05-31 18:30 TIM1_SPWM(DMA)\Output\led.d
文件 273460 2012-05-31 18:30 TIM1_SPWM(DMA)\Output\led.o
文件 288 2012-05-31 18:30 TIM1_SPWM(DMA)\Output\led.__i
文件 265330 2015-07-28 15:39 TIM1_SPWM(DMA)\Output\main.crf
文件 528 2015-07-28 15:39 TIM1_SPWM(DMA)\Output\main.d
............此处省略171个文件信息
- 上一篇:算法分析与设计基础 习题答案
- 下一篇:稻歌3.0试用版
相关资源
- 基于STM32的贪吃蛇
- stm32实现4096点FFT
- stm32f103 modbus主站工程
- STM32 串口读取炜盛CO2数据,中断超时
- uCOS-II移植STM32,带有4路PWM输出
- STM32的RTC闹钟实验
- STM32F103触摸按键测试
- 基于STM32的帆板控制
- HMC5983 STM32F407 代码
- STM32_USART_向PC机发送数据
- 步进电机梯形加速 stm32程序
- stm32-cryp-lib(STM32 芯片加密库)
- STM32驱动蜂鸣器播放语音
- 《物联网操作系统+LiteOS开发实战指南
- MPU6050MS5611HMC5883三传感器数据读取
- STM32F407+ov5640摄像头在TFTLCD实时显示图
- stm32的小车红外寻迹加超声波避障
- 基于stm32f4的舵机控制
- stm32_usb_HID例程及上位机
- 红外测距stm32
- STM32F1-ILI9341 -SPI
- STM32采集雨量
- stm32f407+DCDC降压+pid算法
- stm32f103精准超声波测距程序_HC-SR04模块
- stm32f103 ds18b20
- DHT11温湿度传感器例程
- 噪声传感器,基于STM32F10x
- stm32 多串口同步工作 DMA printf打印字符
- ads1118+stm32f407程序+12864显示
- Stm32驱动SDCard移植FATFS文件系统
评论
共有 条评论