Discussion in 'Homework Help' started by ShakeECET109, Apr 10, 2008.

1. ### ShakeECET109 Thread Starter Member

Apr 10, 2008
19
0
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

2. ### ShakeECET109 Thread Starter Member

Apr 10, 2008
19
0
the whole truth table I got is

_____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
0___0___1____0___________1___0___0___0___0
0___0___1____1___________1___0___0___0___1
0___1___0____0___________0___1___0___0___0
0___1___0____1___________1___0___1___1___0
0___1___1____0___________1___1___0___0___0
0___1___1____1___________1___1___0___0___1
1___0___0____0___________0___1___0___0___0
1___0___0____1___________1___0___1___1___0
1___0___1____0___________1___1___0___0___0
1___0___1____1___________1___1___0___0___1
1___1___0____0___________1___0___0___0___0
1___1___0____1___________1___0___0___0___1
1___1___1____0___________1___0___1___0___0
1___1___1____1___________1___0___1___0___1

I wanted to be sure that this was the correct truth table for the design of a 10cent coffee machine that accepts 2 nickels, a dime, a quarter or any combination of those 4. AND also gives change for any amount over 10cents. I am having trouble writing the SOP forum of each output. I got the SOP for each output and then I used altera to test the circuit and it dosent go with this truth table. So I think I messed up somewhere on the table or writing the SOP forums of each output. Can anyone verify this is the correct table for my design? and the SOP forum for each output?

3. ### mklehnerfec New Member

Feb 25, 2008
4
0
This doesn't help you in any way, but are you in ECET 109 at Purdue? With Widmer??

4. ### mklehnerfec New Member

Feb 25, 2008
4
0
Can you show what you've been trying to do with your SOP?

5. ### veritas Active Member

Feb 7, 2008
167
0
Hey, some fellow Purdue-ians.

The truth-tables looks correct. I'll second mklehnerfec's request for your SOP work. I don't quite have the spare time to work through that whole thing, but I could probably find mistakes in your work if you make them.