5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.
COM
EEEGUIDE.COM
Online Electrical and Electronics Study
Microprocessor Based Traffic Light Control:
Nowadays microprocessors are used to implement the traffic control system. Figure 10.62
shows the simple model of Microprocessor Based Traffic Light Control.
Ads by
Send feedback
Why this ad?
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 1/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
The various control signals such as red, green, orange, forward arrow, right arrow and left
arrow are used in this scheme. The forward, right and left arrows are used to indicate forward,
right and left movement respectively. The red (R) signal is used to stop the traffic in the
required lane and the yellow (Y) signal is used as standby, which indicates that the traffic must
wait for the next signal. The green (G) light for a particular lane remains ON for DELAY-1
seconds followed by the standby signal for DELAY-2 seconds. However, at a time for 3 out of
the four roads, the left signal or the left arrow remains on even though that lane may have a
red signal. The traffic light control is implemented using the 8085 microprocessor kit having
8255 on board and the interfacing circuit is illustrated in Fig. 10.63.
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 2/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
Each signal is controlled by a separate pin of I/O ports. The total number of logic signals
required for this arrangement is twenty-four. The programmable peripheral interface device
8255 is used to interface these 24 logic signals with the lamps. The logic ‘0’ and ‘1’ represent
the state of the lamp. Logic ‘1’ represents ON and ‘0’ represents OFF. All ports of 8255 are
used as output ports. The control word to make all ports as output ports for Mode 0
operation is 80H. The traffic light control program can be written by the flowing steps:
Step 1 Initialize all ports of the 8255 as output ports.
Step 2 Determine the required status of Port A, Port B and Port C of 8255 for north to south
traffic movement. Load data into accumulator and send to Port A, Port B and Port C for north
to south traffic movement.
Step 3 Call delay subroutine -1.
Step 4 Before starting east to west traffic movement, north to south traffic movement will be
ready to stop, and east to west traffic must be ready for movement. Therefore, determine the
required status of Port A, Port B and Port C for this operation. Then load data into
accumulator and send to Port A, Port B and Port C for north to south traffic movement which
will be ready to stop and east to west traffic must be ready for movement.
Step 5 Call delay subroutine-2.
Step 6 For east to west traffic movement, determine the required status of Port A, Port B and
Port C of 8255. Load data into accumulator and send to Port A, Port B and Port C for east to
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 3/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
west traffic movement.
Step 7 Call delay subroutine-1.
Step 8 Prior to starting south to north traffic movement, east to west traffic will be ready to
stop, and south to north traffic must be ready for movement. For this operation, determine
the status of Port A, Port B and Port C of 8255. Load required data into accumulator and send
to Port A, Port B and Port C for east to west traffic will be ready to stop and south to north
traffic must be ready for movement.
Ads by
Send feedback
Why this ad?
Step 9 Call delay subroutine-2.
Step 10 Determine the status of Port A, Port B and Port C for south to north traffic
movement. Load required data into accumulator and send to Port A, Port B and Port C for
south to north movement.
Step 11 Call delay subroutine-1.
Step 12 Before starting west to east traffic movement, south to north traffic movement will
be ready to stop and west to cast traffic must he ready for movement. Find out the status of
Port A, Port B and Port C for this operation. Load required data into accumulator and send to
Port A, Port B and Port C for south to north traffic movement which will be ready to stop and
west to east traffic must be ready for movement.
Step 13 Call delay subroutine-2.
Step 14 For west to east traffic movement, determine the status of Port A, Port B and Port C
of 8255. Load necessary data into accumulator and send to Port A, Port B and Port C for west
to east traffic movement.
Step 15 Call delay subroutine-1.
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 4/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
Step 16 Subsequently, west to east traffic movement will be ready to stop and north to south
traffic must be ready for movement. Determine the status of Port A, Port B and Port C for this
operation. Load needed data into accumulator and send to Port A, Port B and Port C west to
east traffic movement will be ready to stop and north to south traffic must be ready for
movement.
Step 17 Call delay subroutine-2.
Step 18 Jump to step-2.
The chart shows the bit assignment of ports. Putting 0s and 1s in the required position, the
data byte for each port can be derived. For example, during north to south traffic movement,
the statuses of Port A, Port B and port C are as follows:
When north to south traffic movement will be ready to stop and east to west traffic must be
ready for movement, the statuses of Port A, Port B and Port C are as follows:
The calculated necessary data bytes of Port A, Port B and Port C for all types of traffic
movement are illustrated in Table 10.7 as given below.
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 5/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
Ads by
Send feedback
Why this ad?
← Previous Post Next Post →
Related Posts:
Bus Interface in Instruction Set of Data Types and 8288 Bus
Microprocessor 80386 Instruction Set of Controller
Microprocessor 8087 co-
processor
Data Types of What is Stack in Pin Diagram of Pentium Pro,
80386 Assembly 80286 Pentium II and
Microprocessor Language? Microprocessor
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 6/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
Pentium III
Processors
What is Core What is Assembly
Processor? Language
Programming?
Search …
Main Categories
Circuits and Networks
Fundamentals of Electrical Drives
Electrical Machines
Electronics Engineering
Electronic Communication Systems
Electronic Devices and Circuits
Electronic Instrumentation
High Voltage Engineering
Integrated Circuits
Microprocessors and Microcontrollers
Modern Power System
Network Analysis and Synthesis
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 7/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
Principles of Power System
Power System Protection and Switchgear
Power Plant Engineering
Comparisons
Interview Questions and Answers
Recent Article
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 12
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 8/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 11
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 10
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 9
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 8
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 7
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 6
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 5
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 4
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 3
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 2
Electrical Power Engineering Multiple Choice Questions and Answers (MCQs) Part 1
Power Supply for Electric Traction Interview Questions and Answers
Braking and Mechanical Considerations Interview Questions and Answers
Control of Traction Motors Interview Questions and Answers
To Receive Updates
Your Email Address
SUBSCRIBE
Active users on site
| HOME | SITEMAP | CONTACT US | ABOUT US COPYRIGHT © 2014 TO 2023 EEEGUIDE.COM
| PRIVACY POLICY | ALL RIGHTS RESERVED
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 9/10
5/16/23, 9:05 AM Microprocessor Based Traffic Light Control - EEEGUIDE.COM
https://www.eeeguide.com/microprocessor-based-traffic-light-control/ 10/10