You are on page 1of 51

Digital Fundamentals

Page 1
The Inverter
• Inverter (NOT circuit) performs the operation called
inversion or complementation.
• Changes 1 to 0 and 0 to 1.
• Standard logic symbols.

Distinctive shape Rectangular outline


symbol with negation symbol with polarity
indicators. indicator.

Page 2
The Inverter – Truth Table

Input Output

Low (0) High (1)

High (1) Low(0)

Page 3
The Inverter – Operation

• When the input is LOW, the output is HIGH.


• When the input is HIGH, the output is LOW.

Page 4
The Inverter – Logic Expression

• X=A
• If A = 0, X = 1
• If A = 1, X = 0

Page 5
The Inverter –
Application Example
• Producing 1’s complement of an 8 – bit binary
number.

Page 6
AND Gate
• Gate is used to describe a circuit that performs a
basic logic operation.
• AND gate is composed of two or more inputs and a
single output.

Page 7
AND Gate - Operation
• For a 2 – input AND gate, output X is HIGH if
input A and input B is HIGH, X is LOW if either
A or B is LOW, or if both A and B are LOW.

Page 8
AND Gate – Truth Table
Inputs
Output
A B X

0 0 0
0 1 0
1 0 0
1
Total number 1 combinations
of possible 1 of binary
inputs to gate: N = 2n

Page 9
AND Gate – Pulsed Operation

Page 10
AND Gate – Logic Expression
X = AB

A B AB = X
0 0 0.0=0
0 1 0.1=0
1 0 1.0=0
1 1 1.1=1

Page 11
AND Gate – Application Example
Seat Belt Alarm System

Page 12
Exercise
• If the binary number 10100011 is
ANDed with the mask 00001111, what
is the result?

Page 13
OR Gate
• Can have two or more inputs

Page 14
OR Gate - Operation
• For a 2 – input OR gate, output X is HIGH if
either input A or input B is HIGH, or if both A
and B are HIGH; X is LOW if both A and B are
LOW.

Page 15
OR Gate – Truth Table

Inputs
Output
A B X

0 0 0
0 1 1
1 0 1
1 1 1
Page 16
OR Gate – Pulsed Operation

Page 17
OR Gate – Logic Expression

A B A+B=X
0 0 0+0=0
0 1 0+1=1
1 0 1+0=1
1 1 1+1=1

Page 18
OR Gate – Application Example
Intrusion detection system

Page 19
NAND Gate
• Can be used as a universal gate; NAND gates can be
used in combination to perform the AND, OR, and
inverter operations.
• NAND – contraction of NOT – AND and implies an
AND function with a inverted (complement) output.

Page 20
Exercise
1. Draw the logic circuit for the following
expressions:
V  AB C
X  ABC
Y  A  BC
X  AB  A B
X  A B (C  D )
K  AB  A B  A BC
Page 21
Exercise

Page 22
Exercise : give Boolean
expression

Page 23
Exercise

Page 24
NAND Gate - Operation
• For a 2 – input NAND gate, output X is LOW if
inputs A and B are HIGH; X is HIGH if either A
or B is LOW, or if both A and B are LOW.

Page 25
NAND Gate – Truth Table
Inputs
Output
A B X

0 0 1

0 1 1
1 0 1

1 1 0
Page 26
NAND Gate – Pulsed Operation

Page 27
NAND Gate –
Equivalent Operation
Negative – OR
• For a 2 – input NAND gate, performing a negative –
OR operation, output X is HIGH if either input A or
input B is LOW, or if both A and B are LOW.

Page 28
NAND Gate – Logic Expression
A B AB = X
0 0 0.0=0=1

0 1 0.1=0=1
1 0 1.0=0=1
1 1 1.1=1=0

Page 29
NOR Gate
• Can be used as universal gate; can be used in
combination to perform the AND, OR, and inverter
operations.
• Term NOR is a contraction of NOT – OR and implies
an OR function with an inverted (complement)
output.

Page 30
NOR Gate - Operation
• For a 2 – input NOR gate, output X is LOW if
either input A or input B is HIGH, or if both A
and B are HIGH; X is HIGH if both A and B are
LOW.

Page 31
NOR Gate – Truth Table
Inputs
Output
A B X

0 0 1

0 1 0
1 0 0

1 1 0
Page 32
NOR Gate – Pulsed Operation

Page 33
NOR Gate –
Equivalent Operation
Negative – AND
• For a 2 – input NOR gate, performing a negative –
AND operation, output X is HIGH if both input A and
B is LOW.

Page 34
NOR Gate – Logic Expression

A B x AB

0 0 0+0=0=1

0 1 0+1=1=0

1 0 1+0=1=0

1 1 1+1=1=0

Page 35
Exercise
When will the LED ON
for the circuit +5.0 V

shown? 330 W

A
B X
C
D

Page 36
NAND as universal gate

Combinations of NANDs are used to create the three logic functions.


Page 37
NOR as universal gate

combinations of NORs are used to create the three logic functions.


Page 38
Exclusive - OR
• XOR for short

X  A B

Page 39
Exclusive – OR - Operation
• For an exclusive – OR gate, output X is HIGH if
input A is LOW and input B is HIGH, or if input
A is HIGH and input B is LOW; X is LOW if A
and B are both HIGH or both LOW.

Page 40
Exclusive – OR – Truth Table
Inputs
Output
A B X

0 0 0

0 1 1
1 0 1

1 1 0
Page 41
Exclusive – OR –
Pulsed Operation

Page 42
Exclusive - NOR
• XNOR for short.

X  AB  AB

Page 43
Exclusive – NOR - Operation
• For an exclusive – NOR gate, output X is LOW
and input B is HIGH, or if A is HIGH and B is
LOW; X is LOW if A and B are both HIGH or
both LOW.

Page 44
Exclusive – NOR – Truth Table
Inputs
Output
A B X

0 0 1

0 1 0
1 0 0

1 1 1
Page 45
Application

Page 46
Exercise

Output

Boolean expressions ???


Truth Table???

Page 47
Exercise
V1
0V U5A L1

U4A U6A
V2
0V U1A

Boolean expressions ???


V3 Truth Table???
0V U4B L2

U3A U6B
V4
0V U2A

Page 48
Exercise
A 2-input gate produces the output shown. (X
represents the output.) This is

Page 49
Exercise
Sensors are used to monitor pressure and
temperature of a chemical solution
stored in a vat, the circuitry for each
sensor produces a HIGH voltage when a
specified maximum value is exceeded.
An alarm requiring a LOW voltage input
must be activated when either the
pressure or temperature is excessive.
Design a circuit for this application.
Page 50
Exercise
In a certain automated manufacturing process,
electrical components are automatically
inserted in a PCB. Before the insertion tool is
activated, PCB must be properly positioned
and the component to be inserted must be in
the chamber. Each of the required conditions
is indicated by a HIGH voltage. The insertion
tool requires a LOW voltage to activate it.
Design a circuit for this process.

Page 51

You might also like