Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I want a code to drive stepper motors.

Status
Not open for further replies.

zamanmalik

Junior Member level 2
Joined
Jun 18, 2008
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,429
Please post me a code to drive stepper motors.
 

hahahaha!! hihi

okay, here's one snippet I made in C

#include<dos.h>
main(void)
{
while(1){ //for infinite looping
outportb(0x378,0x00); //parallel port control
outportb(0x378,0x01);
outportb(0x378,0x02);
outportb(0x378,0x04);
outportb(0x378,0x08);
outportb(0x378,0x10);
outportb(0x378,0x20);
outportb(0x378,0x40);
outportb(0x378,0x80);
}
}

hope it helped... //hey, do not include this
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top