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

Foil type strain gauge

Working of hair hygrometer.