For a traffic light, we are designing a 3-bit binary counter with D flip-flops that counts from 0 to 7 and back to 0 and repeats. The circuit also has 3 outputs: G (for green light), R (for red light) and Y (for yellow light). The green light is on (G=1) when the counter is at states: 0, 1, 2 and 3 and it is off (G=0) otherwise The yellow light is on (Y=1) when the counter is at state 4 and it is off (Y=0) otherwise The red light is on (R=1) when the counter is at states: 5, 6, and 7 and it is off (R=0) otherwise. Note that the circuit has no input.
For a traffic light, we are designing a 3-bit binary counter with D flip-flops that counts from 0 to 7 and back to 0 and repeats. The circuit also has 3 outputs: G (for green light), R (for red light) and Y (for yellow light).
The green light is on (G=1) when the counter is at states: 0, 1, 2 and 3 and it is off (G=0) otherwise The yellow light is on (Y=1) when the counter is at state 4 and it is off (Y=0) otherwise
The red light is on (R=1) when the counter is at states: 5, 6, and 7 and it is off (R=0) otherwise. Note that the circuit has no input.
A. Draw the state diagram.
B. Construct the state table.
C. Write the necessary equations using K-map.
D. Implement the circuit.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images