Professional Documents
Culture Documents
Lecture8b Example TrafficLights
Lecture8b Example TrafficLights
System
Mantık Devreleri
Yrd.Doç. Dr. Mutlu BOZTEPE
Traffic Light Control System
Chap.6 ve Chap.8’den devam… (inceleyiniz)
Design steps
1. State diagram
2. Sequential circuit design
3. Design State decoder, output
logic and trigger logic
4. Design Timing circuits
5. Implementing
6. Verification
Figure 6--65 Requirements for the traffic light sequence.
Figure 6--66 A minimal system block diagram.
State Diagram (Chap 6)
VS: Vehicle present on the side street , TL: 25s timer , TS: 4s timer
ANAYOL YEŞİL Tali yolda araç yok ise (VS = ‘0’) hep
bu durumda (state) kal. Araç var ise en
fazla TL (25s) süresi kadar kal.
TS (4s) süresi
sonunda sıradaki
duruma geç Araç varken TL=0 ise (veya 25s
dolduysa) sıradaki duruma geç
MR’=m2’.m3’ SR’=m0’.m1’
MY’=m1’ SY’=m2’
MG’=m0’ SG’=m3’
TL’=m1’.m2’
Ts’=m0’.m3’
S1 S0 MR’
MY’
MG’
SR’
SY’
SG’
MR’=m2’.m3’ SR’=m0’.m1’
MY’=m1’ SY’=m3’
MG’=m0’ SG’=m2’
Figure 8--71 Block diagram of the timing circuits.
74121 one-shot
TL trigger
TS trigger 10kHz
TS’ TS
TL’ TL CLK
Figure 6--67 System block diagram showing essential elements.
Sequential Logic
Next state table
Q1 Q0 Q1 Q0 Output transitions
0 0 0 0 TL+VS’ QN QN+1 Flip-flop Input
0 0 0 1 TL’ VS 0 0 0
0 1 0 1 TS 0 1 1
0 1 1 1 TS’ 1 0 0
1 1 1 1 TL VS 1 1 1
1 1 1 0 TL’ + VS’
1 0 1 0 TS
1 0 0 0 TS’
Vehicle
Sensor
TL’ TL TS’ TS
State decoder,
output logic,
trigger logic
Timing
circuits
To
interface
circuits
Sequential
circuits