LED interfacing 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 LED interfacing with 8051 by both software and hardware algorithm in assembly language using proteus and uvision,

Flowchart:-



Proteus Stimulation:-



Program:-

SOFTWARE DELAY

ORG 00H
CLR A
MOV P1,A
REPEAT: CPL P1.0
ACALL DELAY1
SJMP REPEAT
DELAY 1: MOV R0,#0FFH
BACK 3: MOV R1,#0FFH
BACK 2: MOV R2,#01H
BACK1 : DJNZ R2,BACK1
DJNZ R1,BACK2
DJNZ R0,BACK3
RET
END


HARDWARE DELAY

ORG 00H
CLR A
MOV P1,A
REPEAT: MOV R0,#0EH
CPL P1.0
ACALL DELAY1
SJMP REPEAT
DELAY1: MOV TMOD,#10H
MOV TH1,#00H
MOV TL1,#00H
SETB TR0
HERE:JNB TF0,HERE
DJNZ R0,DELAY1
RET
END


For more ASM programs - click here

Popular posts from this blog

Mini Militia Chat Codes - Shortforms

8051 Assembly Program Code for Sorting in Ascending Order - Keil -AT89C51