A sequential circuit is to be used to control the

Chapter 14, Problem 14.42

(choose chapter or problem)

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.

Example:

The customer inserts a nickel, a dime, and a quarter. The circuit inputs and outputs could look like this:

Inputs:           N = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0

                      D = 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0

                      Q = 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0

Outputs:        R = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0

                      C = 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0

Note that any number of 0’s can occur between 1 inputs.

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.

Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.

Becoming a subscriber
Or look for another answer

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back