Lab Manual of Microcontroller & Interfacing Page 36
acall delay
clr a
movc a,@a+dptr
jz exit
acall disp_data
inc dptr
sjmp disp_msg
exit: ret
delay:
mov R6,#0ffh
loop1: djnz R6,loop1
ret
msg: DB ‘ Your name ',0
END
:: WORKSHEET ::
Exercise:
A. Modify LCD program to display two lines: “WELCOME TO B.M.” on first line and
“GEC GANDHINAGAR” on the second line. Execute program in your hardware.
Memory
Location
HEX
code
Label Opcode Operands Comments
Comments to this Manuals