SlideShare une entreprise Scribd logo
1  sur  40
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
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

Contenu connexe

Tendances

Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
Differential amplifier
Differential amplifierDifferential amplifier
Differential amplifiersarunkutti
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 
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
 
temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya VIKAS ARYA
 
Traffic Light Controller using 8255
Traffic Light Controller using 8255Traffic Light Controller using 8255
Traffic Light Controller using 8255Amit Kumer Podder
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Pulse width modulation (PWM)
Pulse width modulation (PWM)Pulse width modulation (PWM)
Pulse width modulation (PWM)amar pandey
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085Gaurav Solanki
 

Tendances (20)

Adc and dac
Adc and dacAdc and dac
Adc and dac
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Differential amplifier
Differential amplifierDifferential amplifier
Differential amplifier
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
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...
 
temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya
 
Traffic Light Controller using 8255
Traffic Light Controller using 8255Traffic Light Controller using 8255
Traffic Light Controller using 8255
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Pulse width modulation (PWM)
Pulse width modulation (PWM)Pulse width modulation (PWM)
Pulse width modulation (PWM)
 
Two port network
Two port networkTwo port network
Two port network
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
8155 Basic Concepts
8155 Basic Concepts8155 Basic Concepts
8155 Basic Concepts
 
Intel 8051 Programming in C
Intel 8051 Programming in CIntel 8051 Programming in C
Intel 8051 Programming in C
 
8051 memory
8051 memory8051 memory
8051 memory
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
 

Similaire à TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR

Similaire à 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
 
1.pdf
1.pdf1.pdf
1.pdf
 

Dernier

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 

Dernier (20)

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 

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
  • 13.
  • 14.
  • 15.
  • 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)