Wednesday, 20 February 2013

GLOWING 8 LEDS IN TIME INTERVAL

 

GLOWING 8 LEDS ON TIME INTERVAL

 Circuit :



CODE:



ORG 00H

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.

 
 


 





About the author

Scholar Ratan pal singh is a Google scholar, a man with innovative ideas and a nothing is impossible attitude, is a tech-lover.
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.

"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."

Translate

Pageviews