资源简介
通过配置STM32高级定时器产生三相六路SPWM波,可用于驱动三相全桥,制作三相电源,驱动三相电机等.
代码片段和文件信息
/**************************************************************************//**
* @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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17273 2010-06-07 10:25 3相SPWM\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 3相SPWM\CORE\core_cm3.h
文件 15503 2013-04-16 12:19 3相SPWM\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 3相SPWM\CORE\startup_stm32f10x_md.s
文件 2748 2013-04-25 21:52 3相SPWM\HARDWARE\ADC\adc.c
文件 693 2013-04-25 21:42 3相SPWM\HARDWARE\ADC\adc.h
文件 4674 2013-07-24 09:51 3相SPWM\HARDWARE\EXTI\exti.c
文件 598 2012-09-13 20:52 3相SPWM\HARDWARE\EXTI\exti.h
文件 1813 2012-09-13 15:05 3相SPWM\HARDWARE\KEY\key.c
文件 1114 2012-09-13 15:26 3相SPWM\HARDWARE\KEY\key.h
文件 16156 2012-08-25 14:01 3相SPWM\HARDWARE\LCD\font.h
文件 50108 2013-07-24 17:19 3相SPWM\HARDWARE\LCD\lcd.c
文件 8640 2012-09-18 13:16 3相SPWM\HARDWARE\LCD\lcd.h
文件 1298 2012-09-13 13:13 3相SPWM\HARDWARE\LED\led.c
文件 638 2012-09-13 09:45 3相SPWM\HARDWARE\LED\led.h
文件 6443 2013-07-24 19:26 3相SPWM\HARDWARE\TIMER\timer.c
文件 617 2012-09-14 20:43 3相SPWM\HARDWARE\TIMER\timer.h
文件 399 2011-04-23 10:24 3相SPWM\keilkilll.bat
文件 320002 2013-07-24 18:22 3相SPWM\OBJ\adc.crf
文件 1337 2013-07-24 18:22 3相SPWM\OBJ\adc.d
文件 340492 2013-07-24 18:22 3相SPWM\OBJ\adc.o
文件 3529 2013-07-24 18:22 3相SPWM\OBJ\core_cm3.crf
文件 89 2013-07-24 18:22 3相SPWM\OBJ\core_cm3.d
文件 10284 2013-07-24 18:22 3相SPWM\OBJ\core_cm3.o
文件 270501 2013-07-24 18:22 3相SPWM\OBJ\delay.crf
文件 695 2013-07-24 18:22 3相SPWM\OBJ\delay.d
文件 287444 2013-07-24 18:22 3相SPWM\OBJ\delay.o
文件 19 2013-05-01 14:15 3相SPWM\OBJ\ExtDll.iex
文件 320494 2013-07-24 18:22 3相SPWM\OBJ\exti.crf
文件 1369 2013-07-24 18:22 3相SPWM\OBJ\exti.d
............此处省略165个文件信息
- 上一篇:WPE封包抓取
- 下一篇:IMX174LL.pdf
相关资源
- stm32与cc2530串口通信实验
- 基于STM32的密码锁设计
- STM32驱动蜂鸣器播放歌曲
- STM32F103 串口DMA+空闲中断接收(修复版
- STM32F103C8T6定时器TIM4双通道PWM输出
- STM32F103+Modbus通信源码
- STM32 LCD FFT音乐频普效果
- MAG3110电子罗盘代码基于STM32
- openpilot飞控程序
- stm32f103上移植fatfs文件系统
- STM32,MPU6050(硬件IIC)
- STM32双通道DMA数据
- STM32温湿度光照采集程序IIC
- STM32固件库使用手册中文版
- 基于stm32的示波器程序
- 基于tmc2660的步进电机S加减速曲线设计
- 思岚激光雷达数据读取
- 智能宠物喂食器 程序
- stm32f103c8t6最小系统版PWM程序
- stm32带引脚图.pdf
- stm32基本例程 PWM输出实验
- STM32控制舵机任意角度转动0--180度 M
- stm32f407+dm9161驱动程序
- STM32最简单的蜂鸣器程序
- stm32f103串口接收数据后发送数组的数
- STM32 数控电源原理图和程序
- 扭扭车平衡车原理图免费stm32 rct6
- hx711串口stm32例程
- EG8030三相SPWM逆变器资料汇总.rar
- stm32 f429 disco 示波器程序
评论
共有 条评论