Hello,
I have task where i need to design simple soda vending machine.
This machine accepts coins with value 5,10 and 15 and it doesn't give back change.
When the output is 1, it gives information what kind of coin entered in, table above:
Instead of OUT, it should be IN. A and B are outputs!
When the coin that makes the whole sum>20, output z1 gets activated and machine get coins back to customer.
When the sum=20 then output z2 is activated and customer get his soda can.
This should be realized with D-FF's and whatever logic gates are needed.
I have learned about state machines, moor and mealy machines and i have solved examples with sequences like for eg. when input sequence is 001 it gives 1 on the output.
I need guidance from where to start. I know i should have 2 functions as outputs, but i am not sure how many FF's should i have, i think 3
?
I have task where i need to design simple soda vending machine.
This machine accepts coins with value 5,10 and 15 and it doesn't give back change.
When the output is 1, it gives information what kind of coin entered in, table above:
Instead of OUT, it should be IN. A and B are outputs!
When the coin that makes the whole sum>20, output z1 gets activated and machine get coins back to customer.
When the sum=20 then output z2 is activated and customer get his soda can.
This should be realized with D-FF's and whatever logic gates are needed.
I have learned about state machines, moor and mealy machines and i have solved examples with sequences like for eg. when input sequence is 001 it gives 1 on the output.
I need guidance from where to start. I know i should have 2 functions as outputs, but i am not sure how many FF's should i have, i think 3