Hello all,
For an end of term project we are required to use digital logic to produce a traffic light system for a main highway and farm road intersection. There are 3 sensors (1 for both the eastern and western direction of the highway and 1 for the farm road). There are also 3 timers that are to be used - 3 seconds for transition a set of light to red from amber, 6 seconds to transition lights to green when either of the roads are empty of cars, 15 seconds to transition the lights when the roads are occupied.
I am struggling to begin with finding the logic for the combo block that will send a high pulse to the next output which will in turn increment a counter that will change the state of the FSM.
Does anyone have any ideas or tips on how i should go about beginning the truth table. My issue is that, i understand my inputs to the logic block to be - the sensors and 'count done' - i.e from the state of the sensors has the counter counted the 15 s etc, the output should be next ( which will activate a counter), but when i complete the table next is always 1 so i dont see how i can implement K maps from this.
any help would be great!
cheers
Mod edit: rotate/resize image. Welcome to AAC!
For an end of term project we are required to use digital logic to produce a traffic light system for a main highway and farm road intersection. There are 3 sensors (1 for both the eastern and western direction of the highway and 1 for the farm road). There are also 3 timers that are to be used - 3 seconds for transition a set of light to red from amber, 6 seconds to transition lights to green when either of the roads are empty of cars, 15 seconds to transition the lights when the roads are occupied.
I am struggling to begin with finding the logic for the combo block that will send a high pulse to the next output which will in turn increment a counter that will change the state of the FSM.
Does anyone have any ideas or tips on how i should go about beginning the truth table. My issue is that, i understand my inputs to the logic block to be - the sensors and 'count done' - i.e from the state of the sensors has the counter counted the 15 s etc, the output should be next ( which will activate a counter), but when i complete the table next is always 1 so i dont see how i can implement K maps from this.
any help would be great!
cheers

Last edited by a moderator: