can u help me out

Status
Not open for further replies.

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.
 
Here is the circuit diagram
This includes 4 LEDs, modify it for 7 LEDs

**broken link removed**

Code:
;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
 
Last edited:
Yep, or you can make it a little "intelligent"

Code:
MAIN:	        MOV A,#1
		CPL A
CICLE:
		MOV P1,A
		RL A
		CALL DELAY
		JMP CICLE
DELAY:
RET

The connection is the same rushi proposed
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…