- #1

- 19

- 0

**Coffee Machine Desgin help PLEASE!!**

Hey Everyone, Not sure if this is where I can post this topic. I have a project in class to design a 10cent coffee machine. We just have to create the truth table, write the SOP form. Draw the circuit on @ltera and program the CPLD. I am having trouble creating the truth table, I know the inputs are N1(Nickel 1), N2(Nickel 2), D(Dime), Q(Quarter). The coffee machine has to give back the correct change so I know the outputs are C(coffee), N(Nickel), D1(Dime1), D2(Dime2), Q(Quarter). This is the start of my truth table.

_____INPUTS_________________OUTPUTS______

N1__N2__D___Q __________C___N__D1__D2__Q

0___0___0____0___________0___0___0___0___0

0___0___0____1___________1___1___1___0___0

Since I only have 4 inputs there should only be 16 possible combinations right? I get confused when you get the truth table and reduce the boolean sum of products for all five outputs. I am not sure if my equation is correct and I think I made a mistake on my truth table. Can anyone help me on the correct truth table to the design on this machine? Thanks guys