This is my source code
# include
# define uchar unsigned char
# define uchar unsigned int
Char table []={0 x08, 0 x0c, 0 x04, 0 x06, 0 x02, 0 x03, 0 x01, 0 x09};//is
Void delay ()//delay program
{
Uchar a, b;
For (a=0; a<150; +)
For (b=0; B<112; B++);
}
Void main ()
{
Uchar I, j;
for(i=0; i<8; I++) {
P1=table [I];//motor forward
delay();
}
}
This is the circuit diagram
CodePudding user response:
What kind of test your motor turned a few rounds? CodePudding user response: