Question: You are required to design a digital controller for a simple soft drink vending machine that only one kind of soft drink is available inside.

You are required to design a digital controller for a simple soft drink vending machine
that only one kind of soft drink is available inside. Each can of the soft drink costs $3.
The vending machine accepts $1 coin and $2 coin only. Note also that the vending
machine only allows inserting one coin at a time. Change is returned if more than $3
have been deposited. The controller has the two binary inputs (A and B) for receiving
the two types of coins. The controller has two binary outputs (C and D) for delivering
a can of soft drink and returning change. The information of the values of the inputs
and outputs are as follows.
i. A will be set to 1 iff a $1 coin is inserted;
ii.B will be set to 1 iff a $2 coin is inserted;
iii. C is set to 1 iff a can of soft drink is to be released;
iv.D is set to 1 iff change is to be given.You are required to design a digital controller for a simple soft drink vending machine
that only one kind of soft drink is available inside. Each can of the soft drink costs $3.
The vending machine accepts $1 coin and $2 coin only. Note also that the vending
machine only allows inserting one coin at a time. Change is returned if more than $3
have been deposited. The controller has the two binary inputs (A and B) for receiving
the two types of coins. The controller has two binary outputs (C and D) for delivering
a can of soft drink and returning change. The information of the values of the inputs
and outputs are as follows.
i. A will be set to 1 iff a $1 coin is inserted;
ii. B will be set to 1 iff a $2 coin is inserted;
iii. C is set to 1 iff a can of soft drink is to be released;
iv.D is set to 1iff change is to be given.
a) Draw a Mealy state diagram of the controller. Clearly define the states you used in
the diagram.
b) Determine the state table for a) with JK Flip-flops' excitation.
c) Determine the expressions of the inputs of the JK flipflops to minimum SOP
forms.
d) Draw a Moore state diagram of the controller. Clearly define the states you used in
the diagram.
You are required to design a digital controller

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!