A sequential circuit is to be used to control the operation of a vending machine
ID: 1716968 • Letter: A
Question
A sequential circuit is to be used to control the operation of a vending machine which dispenses a $0.25 product. The circuit has three inputs (N, D, and Q) and two outputs (R and C).The coin detector mechanism in the vending machine is synchronized with the same clock as the sequential circuit you are to design. The coin detector outputs a single 1 to the N, D, or Q input for every nickel, dime, or quarter, respectively that the customer inserts. Only one input will be 1 at a time. When the customer has inserted at least $0.25 in any combination of nickels, dimes, and quarters, the vending machine must give change and dispense the product. The coin return mechanism gives change by returning nickels to the customer. For every 1 output on C, the coin return mechanism will return one nickel to the customer. The product is dispensed when the circuit outputs a single 1 on output R. The circuit should reset after dispensing the product. Derive a Moore state table for the sequential circuit, and for each state indicate how much money the customer has inserted or how much change is due. (Please explain as much as possible)
Explanation / Answer
Example: The customer inserts a nickel, a dime, and a quater . the network input and output could look like this:INPUT : N= 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0D = 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0Q= 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0OUTPUT: R= 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0C= 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0Note that any number of 0's can occur between 1 inputsderive a moore state table for the sequential circuit,and for each state indicate show muct money the customer has inserted or how much change is due.
3 N D Q 2 R C
3 N,nicgle = 5 cent D,dime = 10 cent Q,Qureter = 25 cent
2
R =
C =
sincronice clock
25 cent 25 cent 25 cent 5 cent 3 40 cent
1 C nicgle = 5 cent 1 0
Moor State State
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.