SlideShare una empresa de Scribd logo
1 de 40
Descargar para leer sin conexión
Batch 5
MICRO PROCESSOR ASSIGN.
PRESENTATION. - 2
OUR TOPIC IS:

TRAFFIC LIGHT
CONTROL
SYSTEM
We mean:
NEED FOR THE SYSTEM :
Traffic lightsstoplights/ traffic lamps/
traffic signals/ signal lights/ robots/
semaphore
 signaling devices
 positioned at road intersections,
pedestrian crossings and other locations
 to control competing flows of traffic.
 Preventing accidents
 Improving safety
 Minimize travel time

ABOUT THE COLORS OF TRAFFIC LIGHT
CONTROL
Traffic lights alternate the right of way of road
users by displaying lights of a standard color
(red, yellow/amber, and green)
 By using a universal color code (and a
precise sequence to enable comprehension
by those who are color blind

SIGNAL FOR VEHICLE
SIGNAL FOR PEDESTRIAN
PROCESSOR USED:

8085
Microprocessor
WHY 8085?
 Sufficient

memory for the given scenario
 Basic units to be interfaced are supported by
8085
 Less complicated in the aspect of coding
 Supports the necessary instruction sets
 Simple and robust
BASIC BLOCK DIAGRAM
TIMER

5v Power
Supply

8085
Microprocessor

LED Display

OUTPUT
SIGNAL

INPUT
7 Segment
Display

DISPLAYS
WAITING
BLOCK DIAGRAM:
ALGORITHM
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
STATE DIAGRAM FOR TRAFFIC CONTROLER
PROPOSED SYSTEM:
HARWARE DETAILS:

2 PARTS

• 8085 Processor
based system
• Traffic Light
Controller
Interface board
IC’S USED:

8085 Micro processor
8255 PPI
8253 Timer
8279 Keyboard and Display Interface
8255 PIN
INTERFACING WITH 8085:
I/O MAP:
8255 FOR TRAFFIC LIGHT :


MVI A, 80H :

OUT 83H (CR) :
 START:
 MVI A, 09H
 OUT 80H (PA) :


MVI A, E4H
 OUT 81H (PB) :

Initialize 8255, port A and
port B
in output mode

Send data on PA to glow
R1 and R2



MVI A, 0CH
 OUT 82H (PB) :

Send data on PB to glow
G3 ,G4,G3R,G4R



Send data on PC to glow
G3 R ,G4L













MVI C, 28H :

Load multiplier count for
delay
CALL DELAY : Call delay subroutine
MVI A, 09H
OUT 80H (PA) :
R2
MVI A, 24H
OUT 81H (PB) :
G4
MVI A, 00H
OUT 82H (PB) :
,G4L &
MVI C, 28H :

Send data on PA to glow R1 and

Send data on PB to glow G3 and

Send data on PC to disable G3 L
Enable Pedestrian Crossing

Load multiplier count for
delay
















MVI A, 12H
OUT (81H) PA :
OUT (81H) PB :
Y3 and
MVI C, 0AH :
CALL DELAY :
MVI A, E4H
OUT (80H) PA :

MVI A, 09H
OUT (81H) PB :
R3 and
MVI C, 28H :
MVI A, 03H
OUT 82H (PB) :
L ,G2L
CALL DELAY :

Send data on Port A to glow Y1 and
Y2
Send data on port B to glow
Y4
Load multiplier count for delay
Call delay subroutine
Send data on port A to glow G1 and
G2,G1R,G2R
Send data on port B to glow
R4
Load multiplier count for delay
Send data on PC to glow G1
Call delay subroutine















MVI A, E4H
OUT (80H) PA : Send data on port A to glow G1 and G2
MVI A, 09H
OUT (81H) PB :
Send data on port B to glow R3
and R4
MVI A, 00H
OUT 82H (PB) :
Send data on PC to disable G1 L
,G2L  Enable Pedestrian
Crossing
MVI C, 28H :
Load multiplier count (40i?) for delay
CALL DELAY : Call delay subroutine
MVI A, 12H
OUT PA :
Send data on port A to glow Y1
and Y2
OUT PB :
Send data on port B to glow Y3
and Y4
MVI C, 0AH : Load multiplier count (10i?) for delay
DELAY SUBROUTINE:


DELAY:



DCR C : Decrement counter



JNZ DELAY



RET : Return to main program
LOGIC FOR PEDESTRIANS CROSSING
8279 DISPLAY INTERFACE
7 SEGMENT DISPLAY FOR TRAFFIC
LIGHT- WORKING :
The processor initializes the look up table
pointer. The look up table contains the
format for the 7 segment display
SEGMENT CODES FOR COMMON CATHODE
DISPLAY
LOOK UP TABLE FOR DIGITS 1-8:
The microprocessor sends the data to the
latch
 From the latch, the data is sent to 8279
Display Interface
 It then stores the data in its 16 X 8 Internal
RAM

WRITING TO RAM:

There are 6 seven segment displays in 8085 kit
I 4 displays address
II 2 displays data
Here we make use of last two displays to interpret
the waiting time in each signal



Hence we require a decoder to select among the
two displays
Since there are 6 displays, we require a 3X8
decoder(74138)



The inputs to these pins will be s1,s2,s0 of 8279



Output of decoder  xx0 Left display xx1 
Right Display



Output to the seven segment displays will be from
A3-0 and B3-0
ANALOG TO DIGITAL CONVERTOR


This is required because 8085 will require only
+5V power supply
REFERENCES:


rbinnovations.com



gobookee.net



seminarprojects.com



eprlabs.blogspot.com


Batch members

DINESH .S
(11I309)
MARIA JERIN .J
(11I324)
SARATHY .K
(11I340)
SRINIVASAN .R
(11I347)
SUBASH .S
(11I348)
MURALI KRISHNAN .P (12I469)
FINAL PRODUCT:
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR

Más contenido relacionado

La actualidad más candente

8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LEDTaha Malampatti
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Jay Patel
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerSudhanshu Janwadkar
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfacesanishgoel
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chipsSrikrishna Thota
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture pptParvesh Gautam
 

La actualidad más candente (20)

Intel 8051 Programming in C
Intel 8051 Programming in CIntel 8051 Programming in C
Intel 8051 Programming in C
 
8086 modes
8086 modes8086 modes
8086 modes
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LED
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
program status word
program status wordprogram status word
program status word
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
TMS320C5x
TMS320C5xTMS320C5x
TMS320C5x
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
 

Similar a TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR

Similar a TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR (20)

Diljit.pdf
Diljit.pdfDiljit.pdf
Diljit.pdf
 
8085 microprocessor(1)
8085 microprocessor(1)8085 microprocessor(1)
8085 microprocessor(1)
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Varsha patil AISSMS IOIT Pune mca te pu book
Varsha patil AISSMS IOIT Pune mca te pu bookVarsha patil AISSMS IOIT Pune mca te pu book
Varsha patil AISSMS IOIT Pune mca te pu book
 
8255
82558255
8255
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
 
Unit iii microcontrollers final1
Unit iii microcontrollers final1Unit iii microcontrollers final1
Unit iii microcontrollers final1
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
8155 GPPI
8155 GPPI8155 GPPI
8155 GPPI
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
Touchpad Monitored Car
Touchpad Monitored Car Touchpad Monitored Car
Touchpad Monitored Car
 
Touchpad Monitored Car
Touchpad Monitored CarTouchpad Monitored Car
Touchpad Monitored Car
 
MICROCONTROLLER.pptx
MICROCONTROLLER.pptxMICROCONTROLLER.pptx
MICROCONTROLLER.pptx
 
ARCHITECTURE OF 8255MODULE 04.docx
ARCHITECTURE OF 8255MODULE 04.docxARCHITECTURE OF 8255MODULE 04.docx
ARCHITECTURE OF 8255MODULE 04.docx
 

Último

Presentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a ParagraphPresentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a ParagraphNetziValdelomar1
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxSaurabhParmar42
 
The Stolen Bacillus by Herbert George Wells
The Stolen Bacillus by Herbert George WellsThe Stolen Bacillus by Herbert George Wells
The Stolen Bacillus by Herbert George WellsEugene Lysak
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfYu Kanazawa / Osaka University
 
HED Office Sohayok Exam Question Solution 2023.pdf
HED Office Sohayok Exam Question Solution 2023.pdfHED Office Sohayok Exam Question Solution 2023.pdf
HED Office Sohayok Exam Question Solution 2023.pdfMohonDas
 
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRADUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRATanmoy Mishra
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational PhilosophyShuvankar Madhu
 
How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17Celine George
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesMohammad Hassany
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxAditiChauhan701637
 
How to Filter Blank Lines in Odoo 17 Accounting
How to Filter Blank Lines in Odoo 17 AccountingHow to Filter Blank Lines in Odoo 17 Accounting
How to Filter Blank Lines in Odoo 17 AccountingCeline George
 
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxPractical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxKatherine Villaluna
 
3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptx
3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptx3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptx
3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptxmary850239
 
M-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptxM-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptxDr. Santhosh Kumar. N
 
Latin American Revolutions, c. 1789-1830
Latin American Revolutions, c. 1789-1830Latin American Revolutions, c. 1789-1830
Latin American Revolutions, c. 1789-1830Dave Phillips
 
Quality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICEQuality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICESayali Powar
 
Education and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptxEducation and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptxraviapr7
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfMohonDas
 
Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.EnglishCEIPdeSigeiro
 
How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17Celine George
 

Último (20)

Presentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a ParagraphPresentation on the Basics of Writing. Writing a Paragraph
Presentation on the Basics of Writing. Writing a Paragraph
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptx
 
The Stolen Bacillus by Herbert George Wells
The Stolen Bacillus by Herbert George WellsThe Stolen Bacillus by Herbert George Wells
The Stolen Bacillus by Herbert George Wells
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
 
HED Office Sohayok Exam Question Solution 2023.pdf
HED Office Sohayok Exam Question Solution 2023.pdfHED Office Sohayok Exam Question Solution 2023.pdf
HED Office Sohayok Exam Question Solution 2023.pdf
 
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRADUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
DUST OF SNOW_BY ROBERT FROST_EDITED BY_ TANMOY MISHRA
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational Philosophy
 
How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming Classes
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptx
 
How to Filter Blank Lines in Odoo 17 Accounting
How to Filter Blank Lines in Odoo 17 AccountingHow to Filter Blank Lines in Odoo 17 Accounting
How to Filter Blank Lines in Odoo 17 Accounting
 
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxPractical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
 
3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptx
3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptx3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptx
3.19.24 Urban Uprisings and the Chicago Freedom Movement.pptx
 
M-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptxM-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptx
 
Latin American Revolutions, c. 1789-1830
Latin American Revolutions, c. 1789-1830Latin American Revolutions, c. 1789-1830
Latin American Revolutions, c. 1789-1830
 
Quality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICEQuality Assurance_GOOD LABORATORY PRACTICE
Quality Assurance_GOOD LABORATORY PRACTICE
 
Education and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptxEducation and training program in the hospital APR.pptx
Education and training program in the hospital APR.pptx
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdf
 
Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.Easter in the USA presentation by Chloe.
Easter in the USA presentation by Chloe.
 
How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17
 

TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR

  • 1. Batch 5 MICRO PROCESSOR ASSIGN. PRESENTATION. - 2
  • 2. OUR TOPIC IS: TRAFFIC LIGHT CONTROL SYSTEM
  • 4. NEED FOR THE SYSTEM : Traffic lightsstoplights/ traffic lamps/ traffic signals/ signal lights/ robots/ semaphore  signaling devices  positioned at road intersections, pedestrian crossings and other locations  to control competing flows of traffic.  Preventing accidents  Improving safety  Minimize travel time 
  • 5. ABOUT THE COLORS OF TRAFFIC LIGHT CONTROL Traffic lights alternate the right of way of road users by displaying lights of a standard color (red, yellow/amber, and green)  By using a universal color code (and a precise sequence to enable comprehension by those who are color blind 
  • 9. WHY 8085?  Sufficient memory for the given scenario  Basic units to be interfaced are supported by 8085  Less complicated in the aspect of coding  Supports the necessary instruction sets  Simple and robust
  • 10. BASIC BLOCK DIAGRAM TIMER 5v Power Supply 8085 Microprocessor LED Display OUTPUT SIGNAL INPUT 7 Segment Display DISPLAYS WAITING
  • 16. STATE DIAGRAM FOR TRAFFIC CONTROLER
  • 18. HARWARE DETAILS: 2 PARTS • 8085 Processor based system • Traffic Light Controller Interface board
  • 19. IC’S USED: 8085 Micro processor 8255 PPI 8253 Timer 8279 Keyboard and Display Interface
  • 23. 8255 FOR TRAFFIC LIGHT :  MVI A, 80H : OUT 83H (CR) :  START:  MVI A, 09H  OUT 80H (PA) :  MVI A, E4H  OUT 81H (PB) : Initialize 8255, port A and port B in output mode Send data on PA to glow R1 and R2  MVI A, 0CH  OUT 82H (PB) : Send data on PB to glow G3 ,G4,G3R,G4R  Send data on PC to glow G3 R ,G4L
  • 24.          MVI C, 28H : Load multiplier count for delay CALL DELAY : Call delay subroutine MVI A, 09H OUT 80H (PA) : R2 MVI A, 24H OUT 81H (PB) : G4 MVI A, 00H OUT 82H (PB) : ,G4L & MVI C, 28H : Send data on PA to glow R1 and Send data on PB to glow G3 and Send data on PC to disable G3 L Enable Pedestrian Crossing Load multiplier count for delay
  • 25.              MVI A, 12H OUT (81H) PA : OUT (81H) PB : Y3 and MVI C, 0AH : CALL DELAY : MVI A, E4H OUT (80H) PA : MVI A, 09H OUT (81H) PB : R3 and MVI C, 28H : MVI A, 03H OUT 82H (PB) : L ,G2L CALL DELAY : Send data on Port A to glow Y1 and Y2 Send data on port B to glow Y4 Load multiplier count for delay Call delay subroutine Send data on port A to glow G1 and G2,G1R,G2R Send data on port B to glow R4 Load multiplier count for delay Send data on PC to glow G1 Call delay subroutine
  • 26.             MVI A, E4H OUT (80H) PA : Send data on port A to glow G1 and G2 MVI A, 09H OUT (81H) PB : Send data on port B to glow R3 and R4 MVI A, 00H OUT 82H (PB) : Send data on PC to disable G1 L ,G2L  Enable Pedestrian Crossing MVI C, 28H : Load multiplier count (40i?) for delay CALL DELAY : Call delay subroutine MVI A, 12H OUT PA : Send data on port A to glow Y1 and Y2 OUT PB : Send data on port B to glow Y3 and Y4 MVI C, 0AH : Load multiplier count (10i?) for delay
  • 27. DELAY SUBROUTINE:  DELAY:  DCR C : Decrement counter  JNZ DELAY  RET : Return to main program
  • 30. 7 SEGMENT DISPLAY FOR TRAFFIC LIGHT- WORKING : The processor initializes the look up table pointer. The look up table contains the format for the 7 segment display
  • 31. SEGMENT CODES FOR COMMON CATHODE DISPLAY
  • 32. LOOK UP TABLE FOR DIGITS 1-8:
  • 33. The microprocessor sends the data to the latch  From the latch, the data is sent to 8279 Display Interface  It then stores the data in its 16 X 8 Internal RAM 
  • 34. WRITING TO RAM: There are 6 seven segment displays in 8085 kit I 4 displays address II 2 displays data Here we make use of last two displays to interpret the waiting time in each signal
  • 35.   Hence we require a decoder to select among the two displays Since there are 6 displays, we require a 3X8 decoder(74138)  The inputs to these pins will be s1,s2,s0 of 8279  Output of decoder  xx0 Left display xx1  Right Display  Output to the seven segment displays will be from A3-0 and B3-0
  • 36. ANALOG TO DIGITAL CONVERTOR  This is required because 8085 will require only +5V power supply
  • 38.  Batch members DINESH .S (11I309) MARIA JERIN .J (11I324) SARATHY .K (11I340) SRINIVASAN .R (11I347) SUBASH .S (11I348) MURALI KRISHNAN .P (12I469)