Laboratory 6 Digital Logic Circuits Overview Objectives Background
Laboratory 6: Digital Logic Circuits
Overview Ø Objectives Ø Background Ø Materials Ø Procedure Ø Report / Presentation Ø Closing
Objectives Ø Understand logic gates and digital logic circuits Ø Design combinational logic circuit ØActivate under specific conditions ØTest with Lab. VIEW ØTest using digital trainer
Logic Functions Ø AND - “All or nothing operator” ØOutput high (1) only when ALL inputs are high (1) Ø OR gate - “Any or all operator” ØOutput high (1) when at least ONE input is high (1) Ø NOT operator – “Inverter” ØOutput always opposite of input ØOnly one input and one output
Logic Functions Logic Function Logic Symbol Boolean Expression AND A B Y A • B=Y OR A B Y A+B=Y NOT A Ā A=Ā Truth Table Input(s) A 0 0 1 1 B 0 1 0 1 Outputs Y 0 0 0 1 1 1 0
Sample Problem Ø ATM machine has three options: Ø Print statement Ø Withdraw money Ø Deposit money Ø ATM machine will charge $1. 00 to: Ø Withdraw Ø Print out statement with no transactions Ø No charge for: Ø Deposits without withdrawal
Truth Table INPUTS OUTPUT C P W D 0 0 0 1 1 0 1 1 0 0 1 0 1 1 1 1 1 A truth table displays all possible input / output combinations. INPUT OUTPUT P = Print C = Charge W = Withdraw D = Deposit 0 = “do not” 1 = “do” 0 = $0. 00 1 = $1. 00
Boolean Equation INPUTS OUTPUT C P W D 0 0 0 1 1 0 1 1 0 0 1 0 1 1 1 1 1 Outputs with a value of “ONE” are kept C = PWD + PWD
Karnaugh Maps (K-maps) C = PWD+ PWD 0 0 0 1 1 0 PW PW P W PW 0 D 1 D 0 0 1 1 1 0 NOTE: Circle neighboring ONES in powers of 2. Try to find the greatest amount of “neighbors. ” Only overlap circles as a last resort!
Simplified Boolean Equation D D PW 0 0 PW PW PW 1 1 1 0 Opposite values in circles cancel out Step 1 _ _ PWD 3 2 _ PWD =W 4 Step 1 _ PWD _ = PD C = W + PD
Combinational Logic Circuit W P D _ PD C =W + PD
Integrated Circuits (ICs) Ø Used for implementation of combinational logic circuits ØUse TTL family (transistor logic)
IC Identification
Materials for Lab • Computer equipped with Lab. VIEW • Digital/Analog Trainer – 7432 2 -Input OR gate IC – 7408 2 -Input AND gate IC – 7404 Hex Inverter (NOT gate) IC • Hook-up Wire
Problem Statement Ø A farmer has 2 barns Ø 3 items: fox, hen, corn ØItems can be in any barn, in any combination ØConcerns: ØProtect hen from fox ØProtect corn from hen Ø Design alarm system using digital electronics. Alarm sounds when: ØFox and hen are in same barn ØHen and corn are in same barn
Problem Statement Ø Design combination logic circuit for alarm system: Ø Use least amount of gates and input variables (cost effectiveness) Ø Logical circuit output connected to LED Ø LED “on” indicates alarm activation Ø LED “off” indicates no problem (alarm off) Ø Fox, hen and corn must be in barn 1 or barn 2 ØPresence in barn 1 = 1 ØPresence in barn 2 = 0
Procedure • Truth Table • Boolean Expression • K-Map • Simplified Boolean Expression • Logic Circuit • Lab. VIEW Simulation • Digital Trainer Ø Truth Table Ø Determine input and output variable (s) Ø How many combinations are there? Ø Complete truth table on a sheet of paper
Procedure • Truth Table • Boolean Expression • K-Map • Simplified Boolean Expression • Logic Circuit • Lab. VIEW Simulation • Digital Trainer Ø Boolean Expression Ø Gather all combinations that produce a 1 for output Ø Create a Boolean expression from these smaller expressions (independent conditions)
Procedure • Truth Table • Boolean Expression Ø K-Map Ø Create a K-Map table • K-Map • Simplified Boolean Expression • Logic Circuit • Lab. VIEW Simulation • Digital Trainer Ø Only have one variable change state at a time between adjacent boxes Ø Use the Boolean expression to fill in the 1’s
Procedure • Truth Table • Boolean Expression Ø Simplified Boolean Expression Ø Use K-Map to circle groups of 1’s • K-Map • Simplified Boolean Expression • Logic Circuit • Lab. VIEW Simulation Ø 1’s may only be circled in powers of 2, starting from largest possible combination and working downward • Digital Trainer Ø Write new simplified expression
Procedure • Truth Table • Boolean Expression • K-Map • Simplified Boolean Expression • Logic Circuit • Lab. VIEW Simulation • Digital Trainer Ø Logic Circuit Diagram Ø Use new simplified Boolean expression to design a logic circuit Ø Have TA check/initial work
Procedure • Truth Table • Boolean Expression • K-Map • Simplified Boolean Expression • Logic Circuit • Lab. VIEW Simulation • Digital Trainer Ø Lab. VIEW Simulation Ø Create logic circuit in Lab. VIEW based on theoretical work Ø Front panel Ø 3 control switches represent input variables Ø 1 Boolean indicator shows output HINT: some Lab. VIEW comparison functions are: NOT AND OR
Procedure • Truth Table • Boolean Expression • K-Map • Simplified Boolean Expression • Logic Circuit • Lab. VIEW Simulation • Digital Trainer Ø Do NOT electrically connect anything until TA has reviewed your work Ø Use created logic circuit and IC chip diagram to wire actual circuit on digital trainer breadboard Ø Be sure to connect each of the ICs to “Ground” and “VCC-5 V” (circuit power) Ø VCC is an acronym: Ø Voltage at the Common Collector Ø (positive [+] electrical connection)
Assignment: Report Ø Individual Report Ø Title page Ø Discussion topics in the manual Ø Include original data with instructor’s initials Ø Scan in data and lab notes Ø (ask TA for assistance) Ø Original tables and work should be legible Ø Include screenshots of Lab. VIEW front and back panels
Assignment: Presentation Ø Team presentation Ø Professional-looking tables Ø Include screen shots of your programs Ø Photo of functioning LED assembly Ø Explain steps taken to complete lab Ø Be prepared to provide walk-through Ø Include lab data Ø Refer to “Creating Power. Point Presentations” found in Online Manual
Closing Ø Have all original data signed by TA Ø Each team member should have turn using software Ø Perform prelab exercise for Sensors Lab Ø Submit all work electronically Ø Return all unused materials to TA
- Slides: 26