D divya51088 New Member Dec 9, 2009 #1 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.
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.
R rushi53 Member Dec 14, 2009 #3 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: Dec 14, 2009
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
pedroromanvr New Member Dec 14, 2009 #4 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: Dec 14, 2009
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