0% found this document useful (0 votes)
388 views6 pages

Interfacing Traffic Light Controller

This document describes the hardware and software for interfacing a traffic light controller. The hardware includes 12 electric bulbs that are controlled by relays through 8255 pins and 12 transistors. The software uses an 8-bit microcontroller to output values to ports A and B to control the lights on a north-south road and an east-west road respectively, with each light sequence followed by a delay before toggling to the next state.

Uploaded by

Sheeraz Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
388 views6 pages

Interfacing Traffic Light Controller

This document describes the hardware and software for interfacing a traffic light controller. The hardware includes 12 electric bulbs that are controlled by relays through 8255 pins and 12 transistors. The software uses an 8-bit microcontroller to output values to ports A and B to control the lights on a north-south road and an east-west road respectively, with each light sequence followed by a delay before toggling to the next state.

Uploaded by

Sheeraz Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 6

Interfacing of Traffic

light controller

HARDWARE FOR TRAFFIC


LIGHT CONTROL

12 electric bulbs
Port A is used to control
lights on N-S road and Port B
is used to control lights on
W-E road.
Electric bulbs are controlled
by relays.
8255 pins are used to control
relay on-off action with the
help of relay driver circuits.
The driver circuit includes 12
transistors to drive 12 relays.

Interfacing of Traffic light


controller

Software for traffic light


controller

Program:MVI A, 80H
OUT 83H (CR)
START:
MVI A, 09H
OUT 80H (PA)
MVI A, 24H
OUT 81H (PB)
CALL DELAY1
MVI A, 12H
OUT (80H) PA
OUT (81H) PB
CALL DELAY2

MVI A, 24H
OUT 80H (PA)
MVI A, 09H
OUT 81H (PB)
CALL DELAY1
MVI A, 12H
OUT PA
OUT PB
CALL DELAY2
JMP START

You might also like