Electronic Circuits and Projects Forum


can u help me out

Results 1 to 4 of 4
Reply to Thread
  1. #1
    divya51088
    divya51088 is offline

    Default can u help me out

    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.

  2. #2
    divya51088
    divya51088 is offline
    its very urgent ,can sombody reply fast

  3. #3
    rushi53
    rushi53 is offline
    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
    Thanks,
    Rushikesh
    www.projectsof8051.com

  4. #4
    pedroromanvr
    pedroromanvr is offline
    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 by pedroromanvr; 14th December 2009 at 11:52 PM.

Reply to Thread