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.
its very urgent ,can sombody reply fast
Here is the circuit diagram
This includes 4 LEDs, modify it for 7 LEDs
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 by rushi53; 14th December 2009 at 09:39 AM. Reason: included code for LED flashing
Yep, or you can make it a little "intelligent"
The connection is the same rushi proposedCode:MAIN: MOV A,#1 CPL A CICLE: MOV P1,A RL A CALL DELAY JMP CICLE DELAY: RET
Last edited by pedroromanvr; 14th December 2009 at 11:52 PM.