Digital Logic Circuits - Week5
Digital Logic Circuits - Week5
2
Chapter 3
➢ Describe the operation of and construct the truth tables for the AND, NAND, OR,
and NOR gates, and the NOT (INVERTER) circuit.
➢ Write the Boolean expression for the logic gates and combinations of logic gates.
➢ Implement logic circuits using basic AND, OR, and NOT gates.
3
3-1 Boolean Constants and Variables
Boolean algebra : a branch of mathematics that deals with operations on logical values
with binary variables.
4
3-2 Truth Tables
➢ A truth table describes the relationship between the input and output of a logic
circuit.
5
3-2 Truth Tables
6
3-2 Truth Tables
Exercise How many table entries are needed for a six-input circuit?
Ans> 64 lines
8
3-3 OR Operation With OR Gates
X = A + B — Read as “X equals A OR B”
1 + 1 = 1 not 1 + 1 = 2
9
3-3 OR Operation With OR Gates
Circuit Symbol?
10
3-3 OR Operation With OR Gates
Circuit Symbol?
11
Exercise
Example In many industrial control systems, it is required to activate an output function whenever
any one of several inputs is activated. i.e., in a chemical process it may be desired that an
alarm be activated whenever the process temperature exceeds a maximum value or
whenever the pressure goes above a certain limit. TH is normally a low voltage (logic 0),
but it switches to a high voltage (logic 1) when VT exceeds VTR. PH goes from LOW to
HIGH when the pressure is too high. Design the proper circuit.
12
3-3 OR Operation With OR Gates
Output = A+B
Output
Time
13
3-4 AND Operations with AND gates
Circuit Symbol?
Circuit Symbol?
15
3-4 AND Operations with AND gates
16
AND / OR
17
3-5 NOT Operation
“X equals NOT A”
“X equals the inverse of A”
X=A “X equals the complement of A”
The overbar represents
the NOT operation.
A' = A
Another indicator for
inversion is the
prime symbol (').
NOT Truth Table
18
3-5 NOT Operation
Circuit Symbol?
This circuit always has only a single input, and the out-put
logic level is always opposite to the logic level of this input.
19
3-5 NOT Operation
Timing Diagram?
20
3-5 NOT Operation
Exercise The push button is wired to produce a logic 1 (true) when it is pressed. Sometimes we
want to know if the push button is not being pressed. Design the circuit.
21
Boolean Operations
22
3-6 Describing Logic Circuits Algebraically
➢ If an expression contains both AND and OR gates, the AND operation will be
performed first.
23
3-6 Describing Logic Circuits Algebraically
24
3-6 Describing Logic Circuits Algebraically
Exercise
25
3-7 Evaluating Logic Circuit Outputs
26
3-7 Evaluating Logic Circuit Outputs
➢ The best way to analyze a circuit made up of multiple logic gates is to use
a truth table.
✓ It allows you to analyze one gate or logic combination at a time.
✓ It allows you to easily double-check your work.
27