基本信息
源码名称:stm32驱动 28BYJ-48 步进电机
源码大小:0.27M
文件格式:.rar
开发语言:C/C++
更新时间:2021-12-26
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍
stm32驱动 28BYJ-48 步进电机

void motor_step(void)

{
stepNum = stepNum & 0x0F;
if(dir)
{
stepNum ;
if(stepNum>7)
stepNum = 0;
}
else
{
stepNum--;
if(stepNum<0)
stepNum = 7;
}
//printf("dir=%x\r\n",dir);
//printf("stepNum=%x\r\n",stepNum);
GPIO_SetBits(GPIOA,motor_stepData[stepNum]);
delay_us(scale*50 2);
GPIO_ResetBits(GPIOA,motor_stepData[stepNum]);
delay_us(scale*10 2);
}
.
├── workshop
│   ├── CORE
│   │   ├── core_cm3.c
│   │   ├── core_cm3.h
│   │   ├── startup_stm32f10x_hd.s
│   │   └── startup_stm32f10x_md.s
│   ├── FWLIB
│   │   └── STM32F10x_FWLib
│   │       ├── inc
│   │       │   ├── misc.h
│   │       │   ├── stm32f10x_adc.h
│   │       │   ├── stm32f10x_bkp.h
│   │       │   ├── stm32f10x_can.h
│   │       │   ├── stm32f10x_cec.h
│   │       │   ├── stm32f10x_crc.h
│   │       │   ├── stm32f10x_dac.h
│   │       │   ├── stm32f10x_dbgmcu.h
│   │       │   ├── stm32f10x_dma.h
│   │       │   ├── stm32f10x_exti.h
│   │       │   ├── stm32f10x_flash.h
│   │       │   ├── stm32f10x_fsmc.h
│   │       │   ├── stm32f10x_gpio.h
│   │       │   ├── stm32f10x_i2c.h
│   │       │   ├── stm32f10x_iwdg.h
│   │       │   ├── stm32f10x_pwr.h
│   │       │   ├── stm32f10x_rcc.h
│   │       │   ├── stm32f10x_rtc.h
│   │       │   ├── stm32f10x_sdio.h
│   │       │   ├── stm32f10x_spi.h
│   │       │   ├── stm32f10x_tim.h
│   │       │   ├── stm32f10x_usart.h
│   │       │   └── stm32f10x_wwdg.h
│   │       └── src
│   │           ├── misc.c
│   │           ├── stm32f10x_adc.c
│   │           ├── stm32f10x_bkp.c
│   │           ├── stm32f10x_can.c
│   │           ├── stm32f10x_cec.c
│   │           ├── stm32f10x_crc.c
│   │           ├── stm32f10x_dac.c
│   │           ├── stm32f10x_dbgmcu.c
│   │           ├── stm32f10x_dma.c
│   │           ├── stm32f10x_exti.c
│   │           ├── stm32f10x_flash.c
│   │           ├── stm32f10x_fsmc.c
│   │           ├── stm32f10x_gpio.c
│   │           ├── stm32f10x_i2c.c
│   │           ├── stm32f10x_iwdg.c
│   │           ├── stm32f10x_pwr.c
│   │           ├── stm32f10x_rcc.c
│   │           ├── stm32f10x_rtc.c
│   │           ├── stm32f10x_sdio.c
│   │           ├── stm32f10x_spi.c
│   │           ├── stm32f10x_tim.c
│   │           ├── stm32f10x_usart.c
│   │           └── stm32f10x_wwdg.c
│   ├── HARDWARE
│   │   ├── IOPORT
│   │   │   ├── ioPort.c
│   │   │   └── ioPort.h
│   │   └── TIMER
│   │       ├── timer.c
│   │       └── timer.h
│   ├── OBJ
│   │   └── test.hex
│   ├── PROJECT
│   │   ├── JLinkSettings.ini
│   │   ├── motor.uvguix.David
│   │   ├── motor.uvoptx
│   │   └── motor.uvprojx
│   ├── SYSTEM
│   │   ├── delay
│   │   │   ├── delay.c
│   │   │   └── delay.h
│   │   ├── sys
│   │   │   ├── sys.c
│   │   │   └── sys.h
│   │   ├── usart
│   │   │   ├── usart.c
│   │   │   └── usart.h
│   │   ├── usart2
│   │   │   ├── usart2.c
│   │   │   └── usart2.h
│   │   └── usart3
│   │       ├── usart3.c
│   │       └── usart3.h
│   ├── USER
│   │   ├── PROCESS
│   │   │   ├── process.c
│   │   │   └── process.h
│   │   ├── main.c
│   │   ├── stm32f10x.h
│   │   ├── stm32f10x_conf.h
│   │   ├── stm32f10x_it.c
│   │   ├── stm32f10x_it.h
│   │   ├── system_stm32f10x.c
│   │   └── system_stm32f10x.h
│   └── keilkilll.bat
└── 好例子网_motor.rar

19 directories, 80 files