Interfacing Traffic Light Controller

6
Interfacing of Traffic light controller

description

Interfacing Traffic Light Controller

Transcript of Interfacing Traffic Light Controller

  • Interfacing of Traffic light controller

  • HARDWARE FOR TRAFFIC LIGHT CONTROL12 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, 09HOUT 80H (PA) MVI A, 24HOUT 81H (PB) CALL DELAY1MVI A, 12HOUT (80H) PAOUT (81H) PBCALL DELAY2MVI A, 24HOUT 80H (PA)MVI A, 09HOUT 81H (PB)CALL DELAY1MVI A, 12HOUT PAOUT PBCALL DELAY2JMP START