13 - Digital and Analog Systems, Logic Levels & Pulse Waveform
13 - Digital and Analog Systems, Logic Levels & Pulse Waveform
BE (22EC001) 1
Introduction to Digital Concepts
•Logic Gates:
– And Gate, OR Gate, Not gate, Universal Gates, Exclusive–OR gate,
Exclusive-NOR gate
•Number systems:
– Decimal number system, Binary number system, Representation of
signed numbers, Octal number system, Hexadecimal number system.
2
Analog and Digital Signals
4
Pulse Waveforms
5
Binary Signals
• It means two-states
– 1 and 0
– true and false
– on and off
• A single “on/off”, “true/false”, “1/0” is called a bit
• Example: Toggle switch
6
Logic Gates
7
Logic Gates
⮚ Logic gates are the building blocks used to create digital circuits.
8
Notational methods for describing the behaviour of gates
and circuits
There are four different, but equally powerful, notational methods for describing the behaviour
of gates and circuits
⮚ Definition
⮚ Symbol
⮚ Boolean expression
⮚ Logic diagrams
⮚ Truth tables
⮚ Timing Diagram
▪ Truth table: defines the function of a gate by listing all possible input combinations that
the gate could encounter, and the corresponding output.
▪ Timing diagram: A digital timing diagram is a representation of set of signals in the time
domain as waveforms.
9
AND Gate( Multiplication function)
⮚ It is a digital electronic circuit which has 2 or more inputs and a single output
where the output of AND gate is high when all inputs are high, otherwise the
output will be low.
Timing
Diagram
10
Review Questions:
▪ What is the only input combination that will produce a HIGH at the output of a
five-input AND gate?
– all 5 inputs = 1
▪ What logic level should be applied to the second input of a two-input AND
gate if the logic signal at the first input is to be inhibited(prevented) from
reaching the output?
– A LOW input will keep the output LOW
11
OR Gate (Logical Addition Function)
⮚ It is a digital electronic circuit which has 2 or more inputs and a
single output where the output of OR gate is Low when all inputs are
low, else output will be high.
⮚ The expression X=A+B is read as “X equals A OR B”
Timing Diagram
12
Review Questions:
▪ What is the only set of input conditions that will produce a LOW output for any
OR gate?
– all inputs LOW
▪ If the A input in previous example is permanently kept at the 1 level, what will
the resultant output waveform be?
– constant HIGH
13
Not Gate (Inverter)
Timing
Diagram
14
NAND Gate
⮚ NAND gate is of the popular logic circuit because it can be used as a universal
gate; that is NAND gate can be used in combination to perform the AND, OR,
and inverter operations.
⮚ It is constructed by attaching NOT Gate at the output of AND Gate, hence
NAND Gate is called NOT- AND Gate.
⮚ The output of NAND gate is low when all inputs are high, else output is high.
Timing
Diagram
15
NOR Gate
⮚ NOR gate is also useful logical element because it can also be used as a
universal gate.
⮚ It can be used in combination to perform the AND, OR and Inverter operations.
⮚ NOR Gate is the combination of NOT gate at the output of OR gate, hence
NOR gate is type of NOT-OR gate.
⮚ The Output of NOR gate is high when all inputs are low otherwise the output is
low.
Timing
Diagram
16
Exclusive- OR Gate
17
Exclusive-NOR Gate
18
Universal Gates
19
NAND Gate
as
Universal Gate
20
NAND Gate as a NOT Gate
A X = A. A = A
Truth Table
Input Output
A X
0 1
1 0
21
NAND Gate as an AND Gate
AB
A
B
X=AB=AB
Truth Table
Inputs Output
A B X
0 0 0
0 1 0
1 0 0
1 1 1
22
NAND Gate as an OR Gate
A B
X=AB=A+B=A+B
B
NAND
Inverters
Gate
Truth Table
Inputs Output
A B X
0 0 0
0 1 1
1 0 1
1 1 1 23
NOR Gate
As
Universal Gate
24
NOR Gate as a NOT Gate
A+A=A
(Before Bubble)
A X=A
Truth Table
Inputs Output
A X
0 1
1 0
25
NOR Gate as an AND Gate
A B
X=A+B=AB=AB
B
Truth Table
Inputs Output
A B X
0 0 0
0 1 0
1 0 0
1 1 1
26
NOR Gate as an OR Gate
A+B
A
B X=A+B=A+
B
NOR Gate “Inverter”
Truth Table
Inputs Output
A B X
0 0 0
0 1 1
1 0 1
1 1 1
27
Describing Logic Circuits
Algebraically
28
Example:
29
Activity 1:
30
Activity 2:
X = (A.B)+C
31
Applications of Logic Gates
⮚ They are also used in push button switches. E.g. Door Bell.
32
Laws of Boolean Algebra
33
Boolean Algebra
• Boolean algebra is the mathematics of digital logic. It is a
system for the manipulation of variables that can have one of
two values.
– In formal logic, these values are “true” and “false.”
– In digital systems, these values are “on” and “off,” 1 and 0,
or “high” and “low.”
34
Rules of Boolean Algebra
35
Contd…
36
Contd…
37
Contd…
38
De Morgan’s Theorems
39
Contd…
40
Logic Simplification Using Boolean
Algebra
41
Contd.
42
Example1
Example1: Using Boolean algebra techniques, simplify this
expression:
AB + A(B + C) + B(B + C)
Step 1: Apply the distributive law to the second and third terms in the
expression, as follows:
AB + AB + AC + BB + BC
Step 2: Apply rule 8 (BB = 0) to the second term within the parentheses.
(ABC + A . 0 . D + A B) C
44
Contd.
• Step 5: Apply the distributive law.
• ABCC + A B C
45
Example 3
46
Activity 1
Apply De Morgan’s theorem to reduce the following
expressions:
1. F = AB + A + AB
2. F = (A+B) (C+D)
3. F= (B+BC) (B+BC)(B+D)
4. Show that ABC+B+BD+ABD+AC = B+C
47
Any
Query ?
48
Thanks
49