hi,, i have to make a poject for embedded systems... i m controlling phase n speed of stepper motor. i want a code for stepper motor.
There isn't "A" code. There are thousads of different implementations for stepper motors.
The implementations depends on: - what microcontroller. - what pins that are used on the microcontroller. - what stepper motor. - what glue logic to power the windongs. - what requirements in acceleration, max speed etc. - the knowledge of the programmer that implemented it. - the available time to implement the function - ...
A huge number of variables. Your post does not cover anything other than that you are using some form of C51-based processor.