Jan 19, 2016

Interfacing 7 Segment display with 8051 - Assembly Program Code - Proteus Stimulation - Keil


The program is stimulated in proteus, compiled in Keil for 8051 - AT89C51 in assembly language.

Program for interfacing 7 segment display with 8051 in assembly language using proteus and uvision,

Flowchart:-



Proteus Stimulation:-



Program:-

ORG 00H
LJMP 50H
ORG 13H
CPL P3.3
RETI
ORG 50H
MOV P0,#00H
MOV P2,#0FFH
MOV P3,#0FFH
MOV R0,#00H
MOV IE,#84H
LOOP: JNB P3.3,LOOP
JNB P2.0, DWN
CLR C
CJNE R0,#09H, LOOP1
MOV R0, #00H
SJMP PORTMOVE
LOOP1: INC R0
SJMP PORTMOVE
DWN: CLR C
CJNE R0,#00H,LOOP2
MOV R0,#09H
SjMP PORTMOVE
LOOP2: DEC R0
PORTMOVE: MOV P0,R0
ACALL DELAY
SJMP LOOP
DELAY: MOV R3,#0FFH
DEC1: MOV R4,#0FFH
DEC2: MOV R5,#03H
DEC3 DJNZ R5,DEC3
DJNZ R4,DEC2
DJNZ R3,DEC1
RET
END

For more ASM programs - click here