Wednesday, 18 March 2020

STEPPER MOTOR INTERFACING




Program:


                OUTPUT 2500AD
                ORG 2000H
                MOV AX,0000H            
                 MOV AL,80H                
                MOV DX,0FFE6H          
                OUT DX,AL
                MOV  AL,88H            
                MOV  DX,0FFE0H  
LOOP:      OUT DX,AL
                  CALL  DELAY
                               
                  RCR  AL,1
                  JMP SHORT LOOP
DELAY:    MOV  CX,1500H           
SS:           LOOP SS
                RET
                END

No comments:

Post a Comment