PROGRAM TO CONTROL A STEPPER MOTOR USING 8051
MOV A,#80
MOV DPTR,#E803
MOVX @DPTR,A
MOV DPTR, #E800
MOV A,#88
CONTINUE: MOVX @DPTR,A
CALL DELAY
RR A (IF ANTICLOCLWISE THEN RL A)
LJMP CONTINUE
DELAY: MOV R0,#02
MOV R1,#FF
MOV R2,#FF
DJNZ R2,L1
DJNZ R1,L2
DJNZ R0,L3
RET
______________________________________________
Tag : micro controller, micro controller lab, new way of engineering, Stepper Motor Program, Stepper Motor Program using 8051,
______________________________________________
Tag : micro controller, micro controller lab, new way of engineering, Stepper Motor Program, Stepper Motor Program using 8051,
0 comments:
Post a Comment