• 大小: 2.28MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-14
  • 语言: 其他
  • 标签:

资源简介

新西达2212电调电机无刷驱动例程,使用的主芯片是STM32F103C8T6,PWM输出口是PB6,波特率为115200,可以使用蓝牙透传或者RS232进行串口通讯,具体请看附件中的驱动流程,代码亲测可用

资源截图

代码片段和文件信息

#include “gpio.h“
void gpio_init()
{
    GPIO_InitTypeDef  GPIOA_InitTypeDef;
    GPIO_InitTypeDef  GPIOB_InitTypeDef;
    RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOBENABLE);
    RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIOENABLE);
    
    GPIOA_InitTypeDef.GPIO_Mode=GPIO_Mode_AF_PP;
    GPIOA_InitTypeDef.GPIO_Speed=GPIO_Speed_50MHz;
    GPIOA_InitTypeDef.GPIO_Pin=GPIO_Pin_6;
    GPIO_Init(GPIOB&GPIOA_InitTypeDef);

    GPIOB_InitTypeDef.GPIO_Mode=GPIO_Mode_Out_PP;
    GPIOB_InitTypeDef.GPIO_Speed=GPIO_Speed_50MHz;
    GPIOB_InitTypeDef.GPIO_Pin=GPIO_Pin_9|GPIO_Pin_8;
    GPIO_Init(GPIOB&GPIOB_InitTypeDef);
    GPIO_SetBits(GPIOBGPIO_Pin_8|GPIO_Pin_9);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        707  2017-09-14 22:48  电调驱动\APP\gpio.c

     文件         96  2017-09-05 21:23  电调驱动\APP\gpio.h

     文件        471  2017-09-14 23:55  电调驱动\APP\pwm.c

     文件         99  2017-03-22 23:28  电调驱动\APP\pwm.h

     文件        245  2017-03-22 23:33  电调驱动\APP\SysTick.c

     文件        109  2017-03-22 23:33  电调驱动\APP\SysTick.h

     文件        529  2017-09-14 22:35  电调驱动\APP\tim.c

     文件         98  2017-03-22 23:34  电调驱动\APP\tim.h

     文件       1537  2017-06-10 23:08  电调驱动\APP\usart.c

     文件        100  2017-03-23 20:52  电调驱动\APP\usart.h

     文件      98177  2017-09-18 19:48  电调驱动\JlinkLog.txt

     文件        671  2017-09-05 22:13  电调驱动\JlinkSettings.ini

     文件      17273  2010-06-07 10:25  电调驱动\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c

     文件      85714  2011-02-09 14:59  电调驱动\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h

     文件      26297  2011-03-14 12:31  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\Release_Notes.html

     文件      15766  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s

     文件      15503  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s

     文件      15692  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd_vl.s

     文件      12376  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s

     文件      13656  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s

     文件      12765  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s

     文件      14073  2011-03-10 10:51  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s

     文件      15955  2011-03-10 10:51  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s

     文件      13072  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s

     文件      13160  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s

     文件      12482  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd_vl.s

     文件       9814  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s

     文件      10562  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld_vl.s

     文件      10269  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md.s

     文件      11058  2011-03-10 10:52  电调驱动\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md_vl.s

............此处省略164个文件信息

评论

共有 条评论