STC单片机89C52RC .步进电机驱动板型号是ULN2003AN 。步进电机是四相五线的,型号是28BYJ-48 .

[复制链接]
查看11 | 回复2 | 2013-5-29 13:25:11 | 显示全部楼层 |阅读模式
#include//#include "reg52.h"unsigned char code RUN[8]={0xfe,0xfc,0xfd,0xf9,0xfb,0xf3,0xf7,0xf6};//步进电机相序表void delay(unsigned int t); /************************************************************///步进电机驱动voidmotor_ffw(unsigned int n)
//正转函数 {
unsigned char i,j,s,x; for(...
回复

使用道具 举报

千问 | 2013-5-29 13:25:11 | 显示全部楼层
STC的数据手册里有案例,你去官网下载...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行