11 Make your own Truth Table or Logic Statement Given a scenario, if you can create a truth table or a “logic statement”, it will help to create the program logic.Example: You want the DVD power on to work only before 11:00 at night so the kids don’t stay up late. You also want the DVD power button to be smart, meaning not to power off if you mean to leave it on.
12 AssumptionsYou have a signal from the built in clock that tells you it is after 11:00 (ELEVEN)You have a signal from i/o port 1 that tells you the DVD Power is On (DVD_ON)The touchpanel signal from press-join 10 is called DVDPOWERON
13 Start a statementYou need to send out the power signal to the DVD player when it is before 11:00 and someone pushes the DVD power on button and the DVD player is off.Make the statement more of an equationDVDPOWER = DVDPOWERON and NOT DVD_ON and NOT ELEVEN
14 Truth Table DVDPOWER = DVDPOWERON and NOT DVD_ON and NOT ELEVEN 1
15 Truth Table DVDPOWER = DVDPOWERON and NOT DVD_ON and NOT ELEVEN 1
16 Draw the LogicFrom statement or truth table or both, develop the logic diagramDVDPOWERONANDELEVENNOTDVDPOWERDVDONNOT