Do assembly language program to display 0 to 9 digit on seven segment LED display panel in 8051 MCU IDE

 ORG 0000H


TARGET:MOV DPTR,#0100H

BACK:CLR A

MOVC A,@A+DPTR

ACALL LOOP

MOV P2,A

INC DPTR

CJNE A,00H,BACK

SJMP TARGET



ORG 0100H

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



 LOOP: MOV R0,#003H

 L2:MOV R1,#003H

 L1:DJNZ R1,L1

 DJNZ R0,L2

 RET

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.