(Solved) : Consider Coin Operated Vending Machine Assume Machine Accepts Quarters Dimes Nickels Coins Q30694758 . . .
Consider a coin-operated vending machine. Assume that themachine accepts only quarters, dimes, and nickels. Coins areinserted until a total of 25 cents or more is deposited. Only onecoin is deposited at a time. The input signals corresponding toeach coin are given by I25, I10,and I5.
The output signal OM should indicate thatmerchandise should be provided. OM = 0 indicatesno merchandise. At the same time as the last coin input (that makesthe total amount 20 cents or higher), the change outputs are to beset. Assume that the machine can give a dime (O10= 1) and/or a nickel (O5 = 1). Use the binaryoutputs O5 and O10 to representthe 4 distinct change possibilities: no change, 1 nickel, 1 dime, 1nickel and 1 dime.
If a customer does something unwise (such as put in a dime and anickel followed by a quarter), correct change does not need to begiven, but the maximum amount of change must be provided.
Input Pins
Your input pins are the relevant coin signals,I5, I10, andI25. You will also need the clock pinClock. There is also an input namedEnable. Hook this up to the enable pins on yourflip flops.
Output Pins
Your output pins are the merchandise output OM,and the change outputs O5 andO10.
Exception to Minimization
We are not going to learn how to do K-maps for more than 4variables. Since a K-map for this FSM would require 6 variables,you do not need to minimize the combinational logic for thisFSM.
Expert Answer
Answer to Consider Coin Operated Vending Machine Assume Machine Accepts Quarters Dimes Nickels Coins Q30694758 . . .
OR