divya51088
New Member
there r 7 LEDs and i have to glow each one of them one by one using 8051.so i need da circuit diagram with its programs ,can anyone help me.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
;Code for LED flashing
START: MOV P1,#01H
CALL DELAY
MOV P1,#02H
CALL DELAY
MOV P1,#04H
CALL DELAY
MOV P1,#08H
CALL DELAY
JMP START
DELAY:
;write delay routine here
RET
MAIN: MOV A,#1
CPL A
CICLE:
MOV P1,A
RL A
CALL DELAY
JMP CICLE
DELAY:
RET