Professional Documents
Culture Documents
AIM:
To interface the traffic light control system board to 8085
microprocessor kit and write an assembly language program for the
given traffic conditions.
APPARATUS REQUIRED:
8085 microprocessor kit, traffic light control system board, 26 pin port
THEORY:
Figure shows a simple arrangement and pin connections for
microprocessor based traffic control. All ports of 8255 have been
programmed as output ports. Three types of LED’s have been used, red,
yellow and green. Green light glows to allow crossing, yellow to make
alert and red does not allow crossing. Eight dual colour LED’s are
provided for pedestrian crossing. These LED’s change their colour to red
or to green. When the LED is ON it shows green colour and when it is
OFF it shows red colour.
The following traffic control states are for the experiment:
State1: Vehicles can go from South to North.
State2: Wait state.
State3: Vehicles can go from East to West.
State4: Wait state.
State5: Vehicles can go from North to South.
State6: Wait state.
State7: Vehicles can go from West to East.
State8: Wait state.
State9: All pedestrians can cross.
State10: Wait state.
Since the LED is an output device, all 8255 ports are assumed to
be output ports in mode 0. Therefore the control word is 80H. For
the state 1, the green LED connected to pin PA4 must glow and the
red LED’s connected to pins PA1, PB3, PA3 must glow. Also
pedestrians must be in OFF conditions. Therefore the data that is to
be sent to the ports A, B and C are 1A, F8, 00 respectively.
DIRECTION
PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 DATA
S
South-North 0 0 0 1 1 0 1 0 1A
DIRECTION PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 DATA
S
South-North 1 1 1 1 1 0 0 0 F8
The above data is sent to the respective port to allow the vehicle
from south to north. Similarly all the data’s are sent to the port for
the further process