Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report...
-
Upload
kathryn-fitzgerald -
Category
Documents
-
view
219 -
download
3
Transcript of Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report...
![Page 1: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/1.jpg)
Laboratory 6: Laboratory 6: Digital Logic CircuitsDigital Logic Circuits
![Page 2: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/2.jpg)
OverviewOverview
ObjectivesBackgroundMaterialsProcedureReport / PresentationClosing
![Page 3: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/3.jpg)
ObjectivesObjectives
Understand logic gates and digital logic circuits
Design combinational logic circuit Activate under specific conditionsTest with LabVIEW Test using digital trainer
![Page 4: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/4.jpg)
Logic FunctionsLogic FunctionsAND - “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 inputOnly one input and one output
![Page 5: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/5.jpg)
Logic FunctionsLogic Functions
AA ĀĀ
AABB
YY
BBAA
YY
A • B = YA • B = Y
A + B = YA + B = Y
A = ĀA = Ā
ANDAND
OROR
NOTNOT
Logic Logic FunctionFunction
Logic Logic SymbolSymbol
BooleanBooleanExpressionExpression
Truth TableTruth TableInput(s) OutputsInput(s) Outputs
AA BB YY000011
11 11001100 00
000011
000000
00
0011 11
11111111
11
11
00
0
1
![Page 6: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/6.jpg)
Sample ProblemSample ProblemATM machine has three options:
Print statementWithdraw moneyDeposit money
ATM machine will charge $1.00 to: WithdrawPrint out statement with no transactions
No charge for:Deposits without withdrawal
![Page 7: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/7.jpg)
Truth TableTruth Table
A truth table displays all possible input / output combinations.
INPUT OUTPUT
P = Print C = Charge
W = WithdrawD = Deposit
0 = “do not” 0 = $0.001 = “do” 1 = $1.00
INPUTS OUTPUTP W D C
10 0 0 00 0
000
0 00
01
011101
111
1111
11 1
1
![Page 8: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/8.jpg)
INPUTS OUTPUTP W D C
10 0 0 00 0
000
0 00
01
011101
111
1111
11 1
1
C = PWD
Boolean EquationBoolean Equation
+ PWD + PWD
+ PWD+ PWD
Outputs with a value Outputs with a value of “ONE” are keptof “ONE” are kept
![Page 9: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/9.jpg)
Karnaugh Maps (K-maps)Karnaugh Maps (K-maps)
C = PWD+ PWD+ PWD + PWD + PWD
WWPP PP PPPPWW WW WW
DD
DD 1111
111111
00 00 00 11 11 11 11 00
00
11NOTE:NOTE:Circle neighboring ONES in powers of 2. Try Circle neighboring ONES in powers of 2. Try to find the greatest amount of “neighbors.” to find the greatest amount of “neighbors.” Only Only overlap circles as a last resort! overlap circles as a last resort!
00
00 00
![Page 10: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/10.jpg)
1 111
1
Simplified Boolean EquationSimplified Boolean Equation
C = W + PD
PP
PP
PP
PP
WW
WW
WW
WW
DD DDOpposite values in circles cancel outOpposite values in circles cancel out
_ __ _PWDPWD
PWDPWD __PWDPWD
_ _ PWDPWD
= W
3
Step 1 2
4
__PWDPWD _ __ _PWDPWD
_= PD
Step 1
00 00
00
![Page 11: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/11.jpg)
Combinational Logic CircuitCombinational Logic Circuit
WW
PD _
D
__PDPD
C = WW
PD++
WWPDPD++
WW
PD++
WW
PD++
![Page 12: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/12.jpg)
Integrated Circuits (ICs)Integrated Circuits (ICs)
Used for implementation of combinational logic circuits Use TTL family (transistor transistor
logic)
![Page 13: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/13.jpg)
IC Identification IC Identification
![Page 14: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/14.jpg)
Materials for LabMaterials for Lab
• Computer equipped with LabVIEW
• Digital/Analog Trainer– 7432 2-Input OR gate IC– 7408 2-Input AND gate IC– 7404 Hex Inverter (NOT gate) IC
• Hook-up Wire
![Page 15: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/15.jpg)
Problem StatementProblem StatementA farmer has 2 barns
3 items: fox, hen, cornItems can be in any barn, in any
combination
Concerns:Protect hen from foxProtect corn from hen
Design alarm system using digital electronics. Alarm sounds when:Fox and hen are in same barnHen and corn are in same barn
![Page 16: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/16.jpg)
Problem StatementProblem Statement
Design combination logic circuit for alarm system:Use least amount of gates and input variables
(cost effectiveness)
Logical circuit output connected to LEDLED “on” indicates alarm activationLED “off” indicates no problem (alarm off)
Fox, hen and corn must be in barn 1 or barn 2Presence in barn 1 = 1 Presence in barn 2 = 0
![Page 17: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/17.jpg)
ProcedureProcedure
Truth TableDetermine input and output
variable (s)
How many combinations are there?
Complete truth table on a sheet of paper
•Truth Table
•Boolean Expression
•K-Map
•Simplified Boolean Expression
•Logic Circuit
•LabVIEW Simulation
•Digital Trainer
![Page 18: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/18.jpg)
ProcedureProcedure
Boolean ExpressionGather all combinations that
produce a 1 for output
Create a Boolean expression from these smaller expressions (independent conditions)
•Truth Table
•Boolean Expression
•K-Map
•Simplified Boolean Expression
•Logic Circuit
•LabVIEW Simulation
•Digital Trainer
![Page 19: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/19.jpg)
ProcedureProcedure
K-MapCreate a K-Map table
Only have one variable change state at a time between adjacent boxes
Use the Boolean expression to fill in the 1’s
•Truth Table
•Boolean Expression
•K-Map
•Simplified Boolean Expression
•Logic Circuit
•LabVIEW Simulation
•Digital Trainer
![Page 20: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/20.jpg)
ProcedureProcedure
Simplified Boolean ExpressionUse K-Map to circle groups of
1’s
1’s may only be circled in powers of 2, starting from largest possible combination and working downward
Write new simplified expression
•Truth Table
•Boolean Expression
•K-Map
•Simplified Boolean Expression
•Logic Circuit
•LabVIEW Simulation
•Digital Trainer
![Page 21: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/21.jpg)
ProcedureProcedure
Logic Circuit DiagramUse new simplified Boolean
expression to design a logic circuit
Have TA check/initial work
•Truth Table
•Boolean Expression
•K-Map
•Simplified Boolean Expression
•Logic Circuit
•LabVIEW Simulation
•Digital Trainer
![Page 22: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/22.jpg)
ProcedureProcedure
LabVIEW Simulation Create logic circuit in LabVIEW
based on theoretical work Front panel
3 control switches represent input variables
1 Boolean indicator shows output
HINT: some LabVIEW comparison functions are:
•Truth Table
•Boolean Expression
•K-Map
•Simplified Boolean Expression
•Logic Circuit
•LabVIEW Simulation
•Digital Trainer
NOTNOT ANDAND OROR
![Page 23: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/23.jpg)
ProcedureProcedure
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-5V” (circuit power)
VCC is an acronym: Voltage at the Common Collector (positive [+] electrical connection)
•Truth Table
•Boolean Expression
•K-Map
•Simplified Boolean Expression
•Logic Circuit
•LabVIEW Simulation
•Digital Trainer
![Page 24: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/24.jpg)
Assignment: ReportAssignment: Report
Individual ReportTitle pageDiscussion topics in the manual Include original data with instructor’s
initialsScan in data and lab notes (ask TA for assistance)
Original tables and work should be legible
Include screenshots of LabVIEW front and back panels
![Page 25: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/25.jpg)
Assignment: PresentationAssignment: 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 PowerPoint Presentations” found in Online Manual
![Page 26: Laboratory 6: Digital Logic Circuits. Overview Objectives Background Materials Procedure Report / Presentation Closing.](https://reader035.fdocuments.in/reader035/viewer/2022062714/56649d0f5503460f949e56c8/html5/thumbnails/26.jpg)
ClosingClosing
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