Do assembly language program for displaying 0 to 9 on seven segment display in MCU IDE 8051 virtual hardware

ORG 0000H

TARGET:

MOV DPTR,#0400H

AGAIN:

CLR A

MOVC A,@A+DPTR

MOV P1,A

ACALL DELAY

INC DPTR

CJNE A,0,AGAIN 

SJMP TARGET

DELAY:

MOV R4,#0FH

BACK:

DJNZ R4,BACK

RET


ORG 0400H

DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,00H

END

Comments

Popular posts from this blog

Wire wound strain gauge

SemiConductor type strain gauge

Do an ALP to compare two eight bit numbers NUM1 and NUM2 stored in external memory locations 8000h and 8001h respectively. Reflect your result as: If NUM1NUM2, SET MSB of location 2FH (bit address 7FH). If NUM1 = NUM2, then Clear both LSB & MSB of bit addressable memory location 2FH.