www.pudn.com > motor.rar > Stepper.h, change:2005-09-13,size:541b


/*****************************************/ 
/* Copyright (c) 2005, 通信工程学院      */ 
/* All rights reserved.                  */ 
/* 作    者:戴 佳						 */ 
/*****************************************/ 
 
#ifndef	_STEPPER_H 		// 防止Stepper.h被重复引用 
 
#define	_STEPPER_H 
 
#include <reg51.h> 
 
#define uchar unsigned char 
#define uint unsigned int 
 
#define T 10000    // 10ms定时常量宏定义 
 
sbit M1=P2^0; 
sbit M2=P2^1; 
sbit M4=P2^2; 
sbit M5=P2^3; 
sbit EN=P2^4; 
sbit CWB=P2^5; 
sbit RET=P2^6; 
sbit CLK=P2^7; 
 
#endif