DLD lecture 1st week
DLD lecture 1st week
Technology, Karachi
Analog Signal
100
95
90
85
80
75
70
Time of day
1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12
A .M . P.M .
1.Accuracy of results
2.More reliable than analog systems due to better immunity to
noise.
3.Ease of design: No special math skills needed to visualize the
behavior of small digital (logic) circuits.
4.Flexibility and functionality.
5.Programmability.
6.Speed: A digital logic element can produce an output in less than
10 nanoseconds (10-8 seconds).
7.Economy: Due to the integration of millions of digital logic
elements on a single miniature chip forming low cost integrated
circuit (ICs).
VH(max)
In binary, a single number is HIGH
called a bit (for binary digit). A VH(min)
HIGH HIGH
Rising or Falling or Falling or Rising or
leading edge trailing edge leading edge trailing edge
LOW LOW
t0 t1 t0 t1
Actual pulses are not ideal but are described by the rise time,
fall time, amplitude, and other characteristics.
Pulse
width
Amplitude (tW)
(A)
Time
Period, T
Clock
C
Floyd, Digital Fundamentals, 10th ed 14
Data and Data Transfer
14 13 12 11 10 9 8 Truth table
1 2 3 4 5 6 7
Ground
Top View of a TTL 74LS family 74LS08 Quad 2-input AND Gate IC Package
Top View of a TTL 74LS family 74LS08 Quad 2-input OR Gate IC Package
Floyd, Digital Fundamentals, 10th ed 21
Logic Gates: The NAND Gate
• The NAND Gate
A
A (A.B)'
(A.B)' B
B
• NAND gate is self-sufficient (can build any logic circuit with it).
• Can be used to implement AND/OR/NOT.
• Implementing an inverter using NAND gate:
x x'
A B (A.B)'
0 0 1
0 1 1
1 0 1
1 1 0
Truth table
Floyd,Top View
Digital of a TTL
Fundamentals, 10th74LS
ed family 74LS00 Quad 2-input NAND Gate IC Package 22
Logic Gates: The NOR Gate
• The NOR Gate
A A
B
(A+B)' (A+B)'
B
• NOR gate is also self-sufficient (can build any logic circuit with it).
• Can be used to implement AND/OR/NOT.
• Implementing an inverter using NOR gate:
x x'
A B (A+B)'
0 0 1
0 1 0
1 0 0
1 1 0
Truth table
Top View of a TTL 74LS family 74LS02 Quad 2-input NOR Gate IC Package
1 2 3 4 5 6 7
Ground
Top View of a TTL 74LS family 74LS86 Quad 2-input XOR Gate IC Package