Automation of Street Light using 8085
Microprocessor
B. Tech Minor Project Report
Session : 2014-2015
Submitted By: Guided
Shubham Kumar Sharma(11/075) Dr. S.R. Kapoor
Shiv Shankar Yadav(11/073) Dr. M.K. Lalwani
Sanjay Kumar Tepan(11/069)
Rishikesh Kumar Singh (11/067)
Department of Electrical Engineering
University College of Engineering
Rajasthan Technical University, Kota
5)Design a digital clock program of 24 hours using 8085 microprocessor:-
Digital;MVI A 80 h
OUT 00h
START : MVI D 00h
NEXTHOUR: MVI C 00h
NEXTMINUTE: MVI E OOh
NEXTSECOND: PUSH B
CALL CALLING
POP B
INR E
MOV A E
OUT 01h
CPI 3ch
JNZ NEXTSECOND
INR C
MOV A C
OUT 02h
CPI 3ch
JNZ NEXTMINUTE
INR D
MOV A D
OUT 03h
CPI 18 h
JNZ NEXTHOUR
CALLING: LXI B FFFFh
DELAY: DCX B
MOV A C
ORA B
NOP
NOP
RZ
JMP DELAY
HLT
6)Now, we have to design relay to operate from 8:00 a.m. to 17:00 p.m. for 9 hrs:-
CLOCK: MVI H 09h
MOV A D
CPI 08h
JNZ DIGITAL
MVI A 00h
OUT 43 h
DCR H
MOV A H
CPI 00h
JNZ CLOCK
MVI A 01 h
OUT 44h
Now we want to show digital clock on 8085 microprocessor kit:-
For this we will call directly 02B7 code and this will directly display [HL]
register pair content on data port or address port by giving following code:-
00 h =to display on address port.
01 h= to display on data port.
7)To display digital clock on 8085 microprocessor and operate relay from
8:00 am to 17:00pm:-
DIGITAL:
MVI A 80 h
OUT 00h
START : MVI D 00h
NEXTHOUR: MVI C 00h
NEXTMINUTE: MVI E OOh
NEXTSECOND: PUSH B
CALL CALLING
POP B
INR E
MOV A,E
LXI H C008
CALL 02B7
OUT 00h
MOV A,L
CPI 3Ch
JNZ NEXTSECOND
INR C
MOV A C
OUT 02h
CPI 3C h
JNZ NEXTMINUTE
JNZ NEXTMINUTE
INR D
MOV A D
OUT 03 h
CALL: CLOCK
CPI 18 h
JNZ NEXTHOUR
JMP START
CALLING: LXI B FFFF h
DELAY: DCX B
MOV A C
ORA B
NOP
NOP
RZ
JMP DELAY
CLOCK: MVI H 09h
MOV A D
CPI 08h
JNZ DIGITAL
MVI A 00h
OUT 43 h
DCR H
MOV A H
CPI 00h
JNZ DIGITAL
MVI A 01 h
OUT 44h
HLT
8)CONCLUSION:-
From this Project we conclude that we can easily automate street light using 8085 Microprocessor.we have
designed a program on 8085 microprocessor to trip relay from 8:00 am to 17:00 pm that will make street
light to off otherwise, street light will on.
9.)
REFERENCES
1. Microprocessor Architecture, Programming and Applications with the 8085
microprocessor.(Ramesh S. Gaonkar).
2. Lab Manual Of 8085 Microprocessor Lab.

automation of street light using 8085 microprocessor

  • 1.
    Automation of StreetLight using 8085 Microprocessor B. Tech Minor Project Report Session : 2014-2015 Submitted By: Guided Shubham Kumar Sharma(11/075) Dr. S.R. Kapoor Shiv Shankar Yadav(11/073) Dr. M.K. Lalwani Sanjay Kumar Tepan(11/069) Rishikesh Kumar Singh (11/067) Department of Electrical Engineering University College of Engineering Rajasthan Technical University, Kota
  • 2.
    5)Design a digitalclock program of 24 hours using 8085 microprocessor:- Digital;MVI A 80 h OUT 00h START : MVI D 00h NEXTHOUR: MVI C 00h NEXTMINUTE: MVI E OOh NEXTSECOND: PUSH B CALL CALLING POP B INR E MOV A E OUT 01h CPI 3ch JNZ NEXTSECOND INR C MOV A C OUT 02h CPI 3ch
  • 3.
    JNZ NEXTMINUTE INR D MOVA D OUT 03h CPI 18 h JNZ NEXTHOUR CALLING: LXI B FFFFh DELAY: DCX B MOV A C ORA B NOP NOP RZ JMP DELAY HLT
  • 4.
    6)Now, we haveto design relay to operate from 8:00 a.m. to 17:00 p.m. for 9 hrs:- CLOCK: MVI H 09h MOV A D CPI 08h JNZ DIGITAL MVI A 00h OUT 43 h DCR H MOV A H CPI 00h JNZ CLOCK MVI A 01 h OUT 44h
  • 5.
    Now we wantto show digital clock on 8085 microprocessor kit:- For this we will call directly 02B7 code and this will directly display [HL] register pair content on data port or address port by giving following code:- 00 h =to display on address port. 01 h= to display on data port. 7)To display digital clock on 8085 microprocessor and operate relay from 8:00 am to 17:00pm:-
  • 6.
    DIGITAL: MVI A 80h OUT 00h START : MVI D 00h NEXTHOUR: MVI C 00h NEXTMINUTE: MVI E OOh NEXTSECOND: PUSH B CALL CALLING POP B INR E MOV A,E
  • 7.
    LXI H C008 CALL02B7 OUT 00h MOV A,L CPI 3Ch JNZ NEXTSECOND INR C MOV A C OUT 02h CPI 3C h JNZ NEXTMINUTE
  • 8.
    JNZ NEXTMINUTE INR D MOVA D OUT 03 h CALL: CLOCK CPI 18 h JNZ NEXTHOUR JMP START CALLING: LXI B FFFF h
  • 9.
    DELAY: DCX B MOVA C ORA B NOP NOP RZ JMP DELAY CLOCK: MVI H 09h MOV A D CPI 08h JNZ DIGITAL MVI A 00h OUT 43 h
  • 10.
    DCR H MOV AH CPI 00h JNZ DIGITAL MVI A 01 h OUT 44h HLT
  • 11.
    8)CONCLUSION:- From this Projectwe conclude that we can easily automate street light using 8085 Microprocessor.we have designed a program on 8085 microprocessor to trip relay from 8:00 am to 17:00 pm that will make street light to off otherwise, street light will on. 9.) REFERENCES 1. Microprocessor Architecture, Programming and Applications with the 8085 microprocessor.(Ramesh S. Gaonkar). 2. Lab Manual Of 8085 Microprocessor Lab.