BM Dept., Govt. Engg. College, Gandhinagar Page 33
ACALL DELAY
MOVC A,@A+DPTR
MOV P1,A ;Display count value
AJMP again ;Continue DIP switch reading process
DELAY: MOV R6,#0ffh
LOOP1: DJNZ R6,LOOP1
RET
CODE: db 0C0h,0F9h,0A4h,0B0h,99h,92h,82h,0F8h,80h,90h,0C8h,
db 83h,0C6h,0A1h, 86h, 8Eh, 00h
END
:: WORKSHEET ::
Exercise:
A. Write program to display count value F to 0 at the interval of 1 second on seven segment
display connected at port P1.
Memory
Location
HEX
code
Label Opcode Operands Comments
Comments to this Manuals