Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a sequential circuit using D-flip flops for a simple candy machine controller. The candy machine must release a candy after 15 cents are

 

Design a sequential circuit using D-flip flops for a simple candy machine controller. The candy machine must release a candy after 15 cents are deposited. It has a single coin slot for dimes (10 cents) and nickles (5 cents). It gives no change. The circuit must have two inputs (N for "nickel is deposited" and D for "dime is deposited"), and one output OPEN (1 for "release a candy" and 0 for "closed"). Two coins cannot be inserted simultaneously. You may assume that the N and D signals are produced by the sensor in such a way that they are asserted (ie, become 1) for a very short duration that includes just one active clock edge. That is, a single coin can only cause one state transition. (Hint: You can do this with as few as four states!) i) Derive the state diagram for a Moore-type system. Use whatever you determine in this step for parts (ii) and (iii). (Note: If you are unable to come up with a suitable solution for this part, give a state diagram for any reasonable four-state two-input system to complete parts (ii) and (iii)) [10 marks] ii) Assign the necessary number of bits (for example, using variable names Q and Qo) to represent the states of the system. Create the state table that defines the two input variables N, D, the current-states, next-states, and the output OPEN. Use don't cares where appropriate. [5 marks] iii) Implement the system using D flip-flops and whatever combinational gates you may need, and sketch the circuit. [5 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

State Diagram State A No coin deposited N0 D0 Stay in state A OPEN0 N0 D1 Move to state B OPEN0 N1 D... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automation Production Systems and Computer Integrated Manufacturing

Authors: Mikell P.Groover

3rd edition

132393212, 978-0132393218

More Books

Students also viewed these Programming questions

Question

=+6 Why is there no term for Q4?

Answered: 1 week ago

Question

What is computer-aided design?

Answered: 1 week ago