Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top