Design a sequential circuit using D-flip flops for a simple candy machine controller. The candy machine...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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] 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]
Expert Answer:
Answer rating: 100% (QA)
State Diagram State A No coin deposited N0 D0 Stay in state A OPEN0 N0 D1 Move to state B OPEN0 N1 D... View the full answer
Related Book For
Automation Production Systems and Computer Integrated Manufacturing
ISBN: 978-0132393218
3rd edition
Authors: Mikell P.Groover
Posted Date:
Students also viewed these programming questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
Briefly describe ASCII and Unicode and draw attention to any relationship between them. [3 marks] (b) Briefly explain what a Reader is in the context of reading characters from data. [3 marks] A...
-
Guido is calculating his personal income tax. He has the following expenses, and wants to know what he can claim on his tax return. The following expenses are all related to Guido's personal...
-
Refer to Exercise 4.35. Suppose the elementary outcomes are assigned these probabilities. P(el) = P(e2) = P(e3) = .15 P(e4) = P(e5) = .06 P(e6) = .2 P(e7) = .23 (a) find P(A), P(B), and P(AB). (b)...
-
Redo Problem 12.30 assuming that the water table coincides with the top of the fill and that satsfilld = 19.8 kN/m 3 . If the other quantities remain the same, what would be the downward drag force...
-
If the probability of event A is p, then the odds that it will occur are given by the ratio of p to 1p. Odds are usually given as a ratio of two positive integers having no common factor, and if an...
-
Messer Company purchased equipment for $24,000. The company is considering whether t o determine annual depreciation using the straight-line method or the declining-balance method at 150 percent of...
-
What annual interest rate would you need to earn if you wanted a $4,575 per month contribution starting 1 month from today to grow to $1,644,350 in 17 years (Assume monthly compounding and that you...
-
Evaluate the following 23 +31 x + 4x +3 dr.
-
The potential energy of a soap bubble of total area A is V = A, where is the surface tension constant of the soap.We consider a soap bubble between two circles of the same axis and same radius R, as...
-
We consider Keplers problem H = p2/2m e2/r. Calculate the Poisson brackets of the components of the Lenz vector between each other, with the components of the angular momentum and with the...
-
Calculate the Poisson brackets of the three components of the angular momentum L = r p.
-
Deduce from (3) the equation that determines the optimal trajectory (which minimizes T ). A sailboat has velocity v(), which is a function of the angle between the direction of the wind and the...
-
The Lagrangian of a one-dimensional harmonic oscillator is Show that the corresponding propagator is where T = t b t a and where c = {m -{maxx, L 2
-
An experiment has a single factor with six groups and three values in each group. In determining the among- roup variation, there are 5 degrees of freedom. In determining the within-group variation,...
-
Grace is training to be an airplane pilot and must complete five days of flying training in October with at least one day of rest between trainings. How many ways can Grace schedule her flying...
-
In the case considered in the question (14), show what the trajectory corresponds to in case the magnitude of acceleration is \(a=2 k \sqrt{1+\frac{t}{T}}\), where \(T=\) cost. Question 14 A particle...
-
A projectile is launched from the Earth's surface with velocity \(v_{0}=50.0 \mathrm{~m} / \mathrm{s}\), at an angle \(\theta=60^{\circ}\) to the vertical. Determine the radius of curvature of the...
-
The equation of motion of a particle is given in Cartesian coordinates by the relation \(\mathbf{r}(t)=\alpha t^{2} \hat{\mathbf{i}}+\beta t^{2} \hat{\mathbf{j}}\). Determine (i) the trajectory of...
Study smarter with the SolutionInn App