40 likes | 182 Vues
In Lab 03, we explore designing a vending machine logic system that dispenses a surprise gift package for a specific set of conditions. The system accepts quarters and a dollar bill while calculating outputs like package dispensation and change return. We'll use Boolean equations to represent logic gate operations, defining inputs (quarters and dollar) and outputs (package and change). By analyzing the interactions and complexities of older-generation IC technology, this lab integrates fundamental concepts of digital systems and logic gate function.
E N D
Lab 03 :Vending Machine System : Logic Gate Equations: Slide #2 Vending Machine System: Slide #3 Older Generation IC Technology: Slide #4
NOT Boolean Equation: Boolean Equation: Boolean Equation: OR Input A Input A Input A Output X Output X Output X Input B Boolean Equation: AND Input A Output X Input B Lab 03 : Logic Gate Equations: Each logic gate has a Boolean equation to represent its operation. Slide #2
1 Q3 1 1 1 1 Q2 P 0 1 0 Q1 C 0 L 1 1 C2 1 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 0 1 0 1 1 0 1 1 1 Lab 03 : Vending Machine System: Design a logic system for a vending machine that will dispense a 75 cent surprise gift package if any of the following conditions occur… Three quarters are inserted. A dollar is inserted. The machine can only accept quarters and a dollar coin / note. Step 1: Declare Inputs and Outputs: Inputs : Quarters (Q1, Q2, Q3). Dollar (L). Logic 1 = currency present. Outputs : Package (P). Quarter Change (C). Logic 1 = dispense item. Q1 • Q2• Q3 = + L L Step 2: Generate Equation for the system: Dispense Package if Quarter1 and Quarter2 and Quarter3 OR Dollar is inserted. Dispense change if dollar is inserted. P = Q1 • Q2• Q3 + L C = L Once the system diagram is complete it can be used to test the operation of the system. Here is what happens when someone inserts 3 quarters. Here is what happens when someone inserts a dollar. P-Term : thus : P = + L Here is what happens when someone searches their pocket finds a quarter and inserts it into the machine. Then they realize that they do not have 2 more quarters! If they insert a dollar what would be the result? Step 3: Draw the Digital System Diagram : Group variables that are ANDed together into a single block. This block is called product term (P-Term). The result: The package and the change would be dispensed. The un-happy user of the machine would have paid $1 ($1.25 - $0.25 change). To resolve this problem an extra change output could be added. Work from output towards input. P must be connected to an OR gate. Slide #3 Re-insert the P-Term (Q1 • Q2• Q3). A 3 input AND gate is required. Connect L to OR gate and connect C to L (C=L).
NOT gate OR gate AND gate Lab 03 : Older Generation IC Technology : Older generation IC technology such as TTL IC’s (transistor, transistor, logic) could often require students to interconnect 5 to 15 IC’s. The wiring would often be very complex and messy. Complex designs looked so messy that the term spaghetti factory was used to describe the appearance of the wiring. Slide #4