资源简介
这是本人参加电子设计大赛的一个STM32工程(电源组),这个工工程实现了Pid动态调节电流电压,精度还可以达到50-100mv
代码片段和文件信息
/**************************************************************************//**
* @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
相关资源
- STM32定时器产生PWM波控制电机寄存器版
- stm32+esp8266上传数据到移动onenet平台
- INA226硬件IICSTM32F4驱动.7z
- 基于stm32f103vc的超声波测距
- 单纯形法的控制系统PID参数优化设计
- STM32 语音模块资料
- MS5837水深传感器-stm32程序源码
- STM32F103 SX1278通讯程序
- STM32F103C8T6定时器秒表TM1650显示.rar
- ULN2003驱动28BYJ-48步进电机STM32F103库函
- stm32sk6812灯带
- stm32+ov7670+颜色识别追踪
- STM32F0工程模板
- 基于STM32室内温度报警控制系统设计
- STM32F103串口使用空闲IDLE中断接收不定
- STM32+USB+W25Q实现U盘程序
- BQ40Z50通讯正常-基于STM32F0.rar
- 基于STM32单片机的窗帘自动控制系统设
- STM32_ADC+TIM+DMA
- lsm303dlhc Stm32f103 驱动程序
- 基于MQ135+STM32的环境空气质量检测
- QT5获取USB设备信息+PID+VID+序列号+热插
- STM32编码器程序
- ARM stm32f407 开发板原理图及 PCB图
- STM32驱动12864点阵LCD,多级菜单,完整
- 基于LABVIEW的STM32F0多路数据采集系统源
- STM32红外遥控解码程序解码后的按键值
- STM32升降桌控制霍尔电机,PID调速
- STM32F103R LCD显示汉字.rar
- stm32f103zet6矩阵键盘(4x4)实现数字密
评论
共有 条评论