8 channel light chaser using 8051

admin June 5, 2012 10 Comments

6 function 8 channel light chaser using 8051.

A 6 function 8 channel light chaser using 8051 is shown here. The hardware and software of this circuit are very simple and the light functions gets repeated one after another  automatically. P1.0 to P1.7  of the microcontroller (AT89S51) are assigned as the output pins. Corresponding LEDs are connected to the output pins through 1K current limiting resistors (R1 to R8). The sequence by which the output pins (P1.0 to P1.7) goes high and low is determined by the program and the LEDs follow this sequence. Circuit diagram of the 6 function chaser using 8051 is shown below.

light chaser AT89S51

6 function light chaser using 8051

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program.

START: MOV A,#80H
       MOV R7,#07H
       MOV P1,A
       LCALL DELAY
LABEL1: RR A
        MOV P1,A
        LCALL DELAY
        DJNZ R7,LABEL1
        MOV R7,#07H
LABEL2: RL A
        MOV P1,A
        LCALL DELAY
        DJNZ R7,LABEL2
        MOV P1,#81H
        LCALL DELAY
        MOV P1,#42H
        LCALL DELAY
        MOV P1,#24H
        LCALL DELAY
        MOV P1,#18H
        LCALL DELAY
        MOV P1,#0FFH
        LCALL DELAY
        MOV P1,#00H
        LCALL DELAY
        MOV A,#80H
        MOV P1,A
        LCALL DELAY
        MOV R7,#07H
LABEL3: SETB C
        RRC A
        MOV P1,A
        LCALL DELAY
        DJNZ R7,LABEL3
        MOv P1,#00H
        LCALL DELAY
        MOV A,#0AAH
        MOV P1,A
        LCALL DELAY
        CPL A
        MOV P1,A
        LCALL DELAY 
        LJMP START 

DELAY:  MOV R4,#03H
WAIT1: MOV R3,#00H
WAIT2: MOV R2,#00H
WAIT3: DJNZ R2,WAIT3
        DJNZ R3,WAIT2
        DJNZ R4,WAIT1
        RET
        END
Comments
  • aparna
    March 28, 2013

    what are the applications of this chaser

    • apurva
      March 28, 2013

      hello can anyone tell the applicatoins of light chaser???

  • vimal
    March 18, 2013

    hello can i get the flow chart of the program??? anynone can help me?

  • admin
    June 1, 2012

    @Sameer Gupta
    You can convert the assembly language code to hex code using MIDE-51. Its a good software.

  • May 31, 2012

    what do i must change this circuit if i want to use the 220 volt lamps.

  • May 31, 2012

    Same set-up If you have any other desidn ,Please publish

  • dennis
    May 28, 2012

    Please provide code in “embedded C” it will be more useful and helpful for further developments. Also give the working explanation if possible…

    regards

    dennis

  • Rowan walters
    May 21, 2012

    Loved this circuit I did electrical and electronic craft
    As an apprentice and we stopped just at micro processors
    I learned all the internals of mpu but never went any
    Further I’m seriously thinking of building something mpu

  • Sameer Gupta
    May 13, 2012

    Fantastic project for begginers.
    Please write about assembler used & attach the HEX code if it is possible.

  • Niranjan Hegde
    May 12, 2012

    Please provide code in “embedded C” it will be more useful and helpful for further developments. Also give the working explanation if possible…

    regards
    Niranjan Hegde

Leave a Reply

Your email address will not be published. Required fields are marked *