资源简介
利用定时器调整不同的占空比的pwm波,对直流电机进行调速。

代码片段和文件信息
/**
******************************************************************************
* @file misc.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @brief This file provides all the miscellaneous firmware functions (add-on
* to CMSIS functions).
******************************************************************************
* @attention
*
* 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.
*
* © COPYRIGHT 2011 STMicroelectronics
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “misc.h“
/** @addtogroup STM32F10x_StdPeriph_Driver
* @{
*/
/** @defgroup MISC
* @brief MISC driver modules
* @{
*/
/** @defgroup MISC_Private_TypesDefinitions
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Defines
* @{
*/
#define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000)
/**
* @}
*/
/** @defgroup MISC_Private_Macros
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Variables
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_FunctionPrototypes
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Functions
* @{
*/
/**
* @brief Configures the priority grouping: pre-emption priority and subpriority.
* @param NVIC_PriorityGroup: specifies the priority grouping bits length.
* This parameter can be one of the following values:
* @arg NVIC_PriorityGroup_0: 0 bits for pre-emption priority
* 4 bits for subpriority
* @arg NVIC_PriorityGroup_1: 1 bits for pre-emption priority
* 3 bits for subpriority
* @arg NVIC_PriorityGroup_2: 2 bits for pre-emption priority
* 2 bits for subpriority
* @arg NVIC_PriorityGroup_3: 3 bits for pre-emption priority
* 1 bits for subpriority
* @arg NVIC_PriorityGroup_4: 4 bits for pre-emption priority
* 0 bits for subpriority
* @retval None
*/
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
{
/* Check the parameters */
assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup));
/* Set the PRIGROUP[10:8] bits according to NVIC_PriorityGroup value */
SCB->AIRCR = AIRCR_VECTKEY_MASK | NVIC_PriorityGroup;
}
/**
* @brief Initializes the NVIC p
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-22 22:05 电机调速2\ASM\
文件 10308 2008-09-21 13:21 电机调速2\ASM\cortexm3_macro.s
文件 15761 2010-04-23 10:40 电机调速2\ASM\startup_stm32f10x_cl.s
文件 15503 2011-03-10 10:52 电机调速2\ASM\startup_stm32f10x_hd.s
文件 12376 2011-03-10 10:52 电机调速2\ASM\startup_stm32f10x_ld.s
文件 13651 2010-04-23 10:40 电机调速2\ASM\startup_stm32f10x_ld_vl.s
文件 12765 2011-03-10 10:52 电机调速2\ASM\startup_stm32f10x_md.s
文件 14068 2010-04-23 10:40 电机调速2\ASM\startup_stm32f10x_md_vl.s
文件 15950 2010-04-23 10:40 电机调速2\ASM\startup_stm32f10x_xl.s
文件 9630 2009-11-21 17:22 电机调速2\ASM\stm32f10x_startup.s
目录 0 2018-11-22 22:05 电机调速2\DebugConfig\
文件 6956 2015-12-10 17:06 电机调速2\DebugConfig\STM32_STM32F103VE_1.0.0.dbgconf
文件 6956 2015-12-10 17:06 电机调速2\DebugConfig\Target_1_STM32F103VE_1.0.0.dbgconf
目录 0 2018-11-22 22:05 电机调速2\Lib\
目录 0 2018-11-22 22:05 电机调速2\Lib\inc\
文件 8982 2011-03-10 10:47 电机调速2\Lib\inc\misc.h
文件 21690 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_adc.h
文件 7555 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_bkp.h
文件 27559 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_can.h
文件 6573 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_cec.h
文件 3213 2009-04-06 10:30 电机调速2\Lib\inc\stm32f10x_conf.h
文件 2162 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_crc.h
文件 15233 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_dac.h
文件 3818 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_dbgmcu.h
文件 20754 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_dma.h
文件 6824 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_exti.h
文件 25445 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_flash.h
文件 27016 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_fsmc.h
文件 20175 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_gpio.h
文件 30029 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_i2c.h
文件 3828 2011-03-10 10:47 电机调速2\Lib\inc\stm32f10x_iwdg.h
............此处省略111个文件信息
- 上一篇:Yz左耳快速车头源码模块.rar
- 下一篇:基于深度学习的三维人脸识别
相关资源
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- zlib 最新 1.2.8 win32 win64 编译好的dll
- 线路里程标注(BZLC).VLX
- network science Albert-László Barabási
- zlc源码众利模式.zip
- 《蚁群优化》书籍 张军、胡晓敏 译多
- zzljlu_3186901.zip
- zlib1.dll 支持WinXP Win7 Win8 Win10
- ZLF-450/660型矿用冷风机组的试验研究
- ZLIB解压缩STM32工程
- OpenSSH升级包、依赖包
- tyqqzlplxgrj-a5.zip
- zlib源码+libpng源码,可运行工程
- Learning Algorithms Through Programming and Pu
- jmxzl6.ppt
- 二维码的特征定位和信息识别
- CentOS-6.6-x86_64 nginx 依赖 pcre-devel zli
- [rar文件] libharu2.3.0 (含libhpdf.liblibp
- arm经典教材 入门的必备书籍
- ZL50铰接式装载机带轮边减速驱动器设
- The Moscow Puzzles359 莫斯科数学趣题
- 最新编译 libcurl.dll 7.60.0静态库包含
- ZLHIS软件升级操作
- 升级OpenSSH_7.4p1完整源码包
- lhddzld-v1.5.zip
- libcurl.a(with zlib openssl libssh2) 含r
- USBCAN_E_U_drive,ZLG,周立功 CAN驱动
- zlifes_10180175.zip
- 传奇客户端补丁编辑工具(支持Wzl、
- OmniDazzle-1.2.dmg最好的OmniDazzle
评论
共有 条评论