P. 1
Traffic Light Controller

Traffic Light Controller

|Views: 65|Likes:
Published by Yogesh Miglani

More info:

Published by: Yogesh Miglani on May 18, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/22/2013

pdf

text

original

Vinytics

VMC-TLC User's Manual

Vinytics

VMC-TLC User's Manual

MAIN PROGRAM
Address Opcodes
0400 0403 0405 0406 0408 040B 040C 040F 0410 0412 0415 0416 041B 041D 0420 0421 0424 0425 042A 042C 042F 0430 0433 0434 0436 0439 043A 043F 0441 0444 0445 0448 0449 044E 0450 0453 0454 BA 16 B0 80 EE B0 10 BA 10 EE BA 12 EE B0 11 BA 14 EE 9A 00 B0 04 BA 10 EE BA 12 EE 9A 50 B0 41 BA 10 EE BA 12 EE B0 11 BA 14 EE 9A 00 B0 04 BA 10 EE BA 12 EE 9A 50 B0 02 BA 10 EE BA 12 00

Mnemonics
MOV MOV OUT MOV MOV OUT MOV OUT MOV MOV OUT CALL MOV MOV OUT MOV OUT CALL MOV MOV OUT MOV OUT MOV MOV OUT CALL MOV MOV OUT MOV OUT CALL MOV MOV OUT MOV DX,0016 AL,80 DX,AL AL,10 DX,0010 DX,AL DX,0012 DX,AL AL,11 DX,0014 DX,AL 0000:0500 AL,04 DX,0010 DX,AL DX,0012 DX,AL 0000:0550 AL,41 DX,0010 DX,AL DX,0012 DX,AL AL,11 DX,0014 DX,AL 0000:0500 AL,04 DX,0010 DX,AL DX,0012 DX,AL 0000:0550 AL,02 DX,0010 DX,AL DX,0012

Comments
;initilize 8255

00 00

;go straight signal for ;traffic of up/down & ;stop signal for traffic ;of left/right direction

TRAFFIC LIGHT CONTROLLER WITH VMC-8609ADP

00 05 00 00 00 00 05 00 00 00 00

;call DELAY 1 ;alert signal for traffic ;of up/down & stop ;signal for left/right ;direction. ;check EOC ;call DELAY 2 ;stop straight signal for ;traffic of up/down & ;left/right direction and ;turn right for traffic of ;up/down direction. ;clear display

00 05 00 00 00 00 05 00 00 00 00

;call DELAY 1 ;alert signal for traffic of ;up/down and stop for ;traffic of left/right ;direction. ;call DELAY 2 ;stop signal for ;traffic of up/down & ;go straight signal for ;traffic of left/right

Vinytics Peripherals Pvt. Ltd.
www.vinytics.com

2

Observe the status of LEDs on the module. 2. Connect +5V and GND to the module from the power supply. The students can easily understand the working of traffic light controls which they see at the crossings. Connect 26 pin FRC Cable from 8255-III (CN5) of the kit to the module as per the polarity. discomfort of drivers. The main motto of Vinytics is to clear the fundamentals to students about the microprocessors. The microprocessor controls the traffic signals very effectively and with accurate timings. PORT ADDRESS Port A Port B Port C Control Word Register 8255 III ( CN5) 10 12 14 16 1. Execute the programme from 400 memory address of the kit. Enter the programme from 400 memory address of the kit. This Traffic Light Control Card uses the ports of Programmable Peripheral Interface (PPI) 8255. The increase of vehicle may cause accidents and other problems on the road. We use ports A&C of 8255 of Vinytics make Microprocessor Kits. the number of vehicles increase more day by day. 4. Controlling traffic at regular intervals of time with accuracy and uniformity has become a necessity to avoid accidents. The program for control of traffic lights is as follows. 3. One can change the sequence and time delay between two signals by implementing the logic. 1 . The module “Traffic Light Control Card” based on the microprocessor and Programmable Peripheral Interface (PPI). 5.Vinytics VMC-TLC User's Manual Vinytics VMC-TLC User's Manual INTRODUCTION In this modern life.

AL DX.AL DX.0010 DX.AL 0000:0550 AL.clear display 3 .AL 0000:0500 AL. .traffic of up/down & .0010 DX.AL DX.AL AL.clear display (PA6) GO STOP (PC4) GO (PC7) (PA4) WAIT (PC2) (PC1) .0010 DX.left/right direction and .call DELAY 1 .0014 DX.traffic of up/down & .01 DX.clear display (PC6) WAIT (PC5) STOP (PA0) WAIT (PA2) .turn right for traffic of .up/down direction.AL DX.call DELAY 2 . . .33 DX.stop straight signal for .direction.stop straight signal for .up/down direction.0012 DX.99 DX.22 DX.stop straight signal for .0010 DX.Vinytics VMC-TLC User's Manual Vinytics 0457 0458 0459 045A 045B 045C 045D 045F 0462 0463 0466 0467 0469 046C 046D 0472 0474 0477 0478 047B 047C 047E 0481 0482 0487 0489 048C 048D 0490 0491 0493 0496 0497 049C 049E 04A1 04A2 04A5 04A6 04A8 EE 90 90 90 90 90 B0 01 BA 10 00 EE BA 12 00 EE B0 44 BA 14 00 EE 9A 00 05 00 00 B0 01 BA 10 00 EE BA 12 00 EE B0 22 BA 14 00 EE 9A 50 05 00 00 B0 01 BA 10 00 EE BA 12 00 EE B0 99 BA 14 00 EE 9A 00 05 00 00 B0 01 BA 10 00 EE BA 12 00 EE B0 33 BA 14 00 OUT NOP NOP NOP NOP NOP MOV MOV OUT MOV OUT MOV MOV OUT CALL MOV MOV OUT MOV OUT MOV MOV OUT CALL MOV MOV OUT MOV OUT MOV MOV OUT CALL MOV MOV OUT MOV OUT MOV MOV DX.left/right direction and .0012 DX.AL 0000:0500 AL.traffic of up/down & .turn right for traffic of .turn right for traffic of .0014 .left/right direction and .stop straight signal for .AL AL.01 DX.clear display (PC3) GO (PB4) WAIT (PB2) (PC0) STOP GO (PB6) STOP (PB0) .01 DX.AL AL.0014 DX.turn right for traffic of .up/down direction.0012 DX.AL AL.0014 DX.traffic of up/down & .up/down direction.AL VMC-TLC User's Manual .call DELAY 1 .left/right direction and .44 DX. . CN1 GND +5V NC NC CN2 LAYOUT OF TRAFFIC LIGHT CONTROL CARD 4 AL.01 DX.0012 DX.

AL CALL 0000:0550 JMP 0406 VMC-TLC User's Manual Vinytics VMC-TLC User's Manual .Vinytics 04AB 04AC 04B1 EE 9A 50 05 00 00 E9 52 FF OUT DX.call DELAY 2 .repeat the procedure Connector Details at CN1 PC4 PC5 PC3 PC1 PB7 PB5 PB3 PB1 PA7 PA5 PA3 PA1 PC7 GND DELAY .FFFF CX 0506 BX 0503 PC2 PC0 PB6 PB4 PB2 PB0 PA6 PA4 DELAY .000F CX.FFFF CX 0556 BX 0553 PA2 PA0 PC6 GND 4 5 .1 0500 0503 0506 0507 0509 050A 050C BB 0F 00 B9 FF FF 49 75 FD 4B 75 F7 C3 MOV MOV DEC JNZ DEC JNZ RET BX.0005 CX.2 0550 0553 0556 0557 0559 055A 055C BB 05 00 B9 FF FF 49 75 FD 4B 75 F7 C3 MOV MOV DEC JNZ DEC JNZ RET BX.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->