GLOWING 8 LEDS ON TIME INTERVAL
Circuit :
CODE:
MOV P0,#00H
MOV A, #0FEH
BACK: MOV P0,A
RLA
A_CALL DELAY
SIMP BACK
DELAY:MOV R2,#08H
LOOP2: MOV R1,#0FFH
LOOP1: MOV R0,#OFFH
LOOP:DJNZ R0,LOOP
DJNZ R1,LOOP1
DJNZ R2,LOOP2
RET
END
The code should be written in keil
uvision software and hex code should be compiled and burned to 8051 microcontroller
with program burner.
I have used here AT89C51 a
microcontroller of atmel company .
This way you can make a pattern of
several leds glowing on a time interval and can use in decorations or for any
signal sending device.
For any further assistance if
required then comment below.