Hi, Can anyone guide me how to write the code for digital outputs for stepper motor. I just want to run motor clockwise and to do 4 rotations and then I want it to rotate counter clockwise and to do four anti-clockwise rotations. I am using Fez mini and for driver, I am using IFR530 MOSFET circuit.
Not from that little we can't. We have no idea what interface circuitry you have between the PC and the IRF530 (I assume you miss-typed) - you certainly can't connect one of them directly to a standard PC output!
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
Ok, I will try to explain my circuit. I have 4 IFR530, which are going to the unipolar stepper motor. These 4 MOSFETs are connected to Digital I/Os of FEz Mini (MCU) via optoisolators and some resistors. So I have to Program the FEZ mini to run the stepper motor.