stepper motor control

Status
Not open for further replies.

atif123

Member
hi all . i want to control stepper motor . control with micro controllar 89c51 . bidirtectnal from to switchs . i need c code . on keil software . plz send c code with hex as early as posible. thanks all
 
Do some research, Google is your friend. If you did, you would come across things like
**broken link removed**

When you have a question, state it properly (check spelling, provide details like schematic, pin assignment, clock type and etc.).
 
Hi,
I have used this stepper motor control c code recently.

#include<reg52.h>
void main(2)
{
while(2)
{ void delay (int);
P1=0xCC;
delay(2);
P1=0x66;
delay(2);
P1=0x33;
delay(2);
P1=0x99;
delay(2);
}
}
void delay(int b)
{
unsigned int x,y,z;
for(x=0;x<10;x+++)
for(y=0;y<a;a+++);
}


<<<<*>>>>
THanks
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…