
21-12
x86 MICROPROCESSORS
MOVC A, @A+DPTR ;get keycode from ROM
MOV DISP, A ;send key to PI for display
SJMP FIRST ;start all over again
DELAY: MOV RI, #N1
FIR: MOV.R2, #N2
SELF: DJNZ R2, SELF
DJNZ.R1, FIR
RET
ORG 0900H
LINE0: DB '0', '1', '2', '3'
LINE1: DB '4', '5', '6', '7'
LINE2: DB '8', '9', 'A', 'B'
LINE3: DB 'C', 'D', 'E', 'F'
END
21.6 | Stepper Motor Interfacing
This topic has been covered in great detail in Section 9.11 and readers are advised to
read that to understand the way by which a stepper motor is controlled by a sequence
of pulses. Here, we discuss the use of a stepper motor as an interface to the 8051. We
can run ...