Professional Documents
Culture Documents
Digital Logic Tutorial and Design
Digital Logic Tutorial and Design
http://www.electronicsteacher.com
Electrical Engineering
Some Definitions
Definition: Discrete System - a system with a finite number of sizes or measures
Shoes, Dresses, Pants, Bolts, Pencils
Definition: Digital System - a Discrete System with only two values of system variables: 1 and 0
True/False; Yes/No; Male/Female; On/Off
Electrical Engineering
Analog Waveform
Voltage (V)
Time 0
Digital Waveform
5
1
Voltage (V)
0
0 Electrical Engineering
Time 4
AND Operator
Lets look at the relationship between the semantic and logical operator known as the AND operator Consider: If the car is fueled AND the engine works, then the engine will start AND Operator Truth Table AND means that both conditions A B Output must be true in order for the 0 0 0 conclusion to be true 0 1 0 1 0 0 1 1 1
Electrical Engineering 5
Digital AND
We can build an electrical device that performs the logical AND operation on voltage equivalents of logic values An AND gate has the electrical schematic: A
Inputs Output
OR Operator
Another basic operator is the OR Consider: If I have cash OR a credit card, then I can pay the bill OR works such that the output is true, if either of the two inputs is true
Electrical Engineering
Electrical Engineering
Electrical Engineering
Digital XOR
We can build an electrical device that performs the logical XOR operation on voltage equivalents of logic values An XOR gate has the electrical schematic: A Inputs XOR Operator Truth Table A B Output 0 0 0 0 1 1 1 0 1 1 1 0
10
Output
Electrical Engineering
11
F is true only when all the inputs are true (1s) Using the Excel workbook EE-WISE-DigitalLab, open the Digital Locks worksheet, and test this circuit
Electrical Engineering 12
The number of inputs could be increased by using more and more AND gates
Electrical Engineering 13
Electrical Engineering
14
Electrical Engineering
16
17
Electrical Engineering
18
Electrical Engineering
19
0/1 AND
XOR
1/0
1 XOR 0 outputs 1 1 XOR 1 outputs 0
Electrical Engineering
20
Electrical Engineering
21