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 $
The vending machine accepts $ coin and $ coin only. Note also that the vending
machine only allows inserting one coin at a time. Change is returned if more than $
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 iff a $ coin is inserted;
ii will be set to iff a $ coin is inserted;
iii. C is set to iff a can of soft drink is to be released;
iv is set to 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 $
The vending machine accepts $ coin and $ coin only. Note also that the vending
machine only allows inserting one coin at a time. Change is returned if more than $
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 and 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 iff a $ coin is inserted;
ii B will be set to iff a $ coin is inserted;
iii. C is set to iff a can of soft drink is to be released;
iv is set to iff 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 Flipflops' 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
