Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

STEPPER MOTOR

INTERFACING WITH 8051 MICROCONTROLLER


WHAT IS A STEPPER MOTOR?

 A stepper motor (or step motor) is a brushless


synchronous electric motor that can divide a full
rotation into a large number of steps.

 It is a device that converts electrical energy into


mechanical energy.

 It's used in 3D printing equipment, Textile machines,


Small robotics.... Etc.
WORKING :

Step a b c d Data

1 1 0 1 0 0AH

2 1 0 0 1 09H

3 0 1 0 1 05H

4 0 1 1 0 06H

Logic developed in Microcontroller


INTERFACING WITH 8051 MICROCONTROLLER
ASSEMBLY LANGUAGE PROGRAM(ALP)

MOV p1, #00H //output port


START: MOV DPTR, #9000H
MOV R0, 04H
UP: MOVX A, @DPTR //#9000H MOVED TO A
MOV P1, A //0AH MOVED TO P1
LCALL DELAY // TO DELAY IN PROGRAM
INC DPTR //INCREMENTATION OF DPTR
DCR R0 //DECREMENTION OF COUNT VALUE
JNZ UP //JUMP NOT ZERO
LJMP START //FOR STARTING AGAIN
OUTPUT
THANK YOU

Prepared By:-
Suraj Kumar

You might also like