Chapter 1

advertisement
Digital Fundamentals
CHAPTER 1
Digital Concepts
Digital and Analog Quantities
Analog quantities have
continuous values
Digital quantities have
discrete sets of values
2
Binary Digits, Logic Levels, and Digital
Waveforms
• The two binary digits are designated 0
and 1
• They can also be called LOW and HIGH,
where LOW = 0 and HIGH = 1
3
Figure 1–3
A basic audio public address system.
Thomas L. Floyd
Digital Fundamentals, 9e
4
Figure 1–5
Logic level ranges of voltage for a digital circuit.
2.0 V
0.8 V
0V
Thomas L. Floyd
Digital Fundamentals, 9e
5
Figure 1–6
Ideal pulses.
Binary values are also represented by voltage levels.
Thomas L. Floyd
Digital Fundamentals, 9e
6
Figure 1–7
Nonideal pulse characteristics.
Thomas L. Floyd
Digital Fundamentals, 9e
7
Binary Digits, Logic Levels, and Digital Waveforms
• tw = pulse width
• T = period of the waveform
• f = frequency of the waveform
1
f
T
8
Binary Digits, Logic Levels, and Digital Waveforms
The duty cycle of a binary waveform is
defined as:
 tw 
Duty cycle  
100%
 T 
9
Figure 1–9
Thomas L. Floyd
Digital Fundamentals, 9e
10
Figure 1–10
Example of a clock waveform synchronized with a waveform representation of a sequence of bits.
Thomas L. Floyd
Digital Fundamentals, 9e
11
Figure 1–11
Example of a timing diagram.
Thomas L. Floyd
Digital Fundamentals, 9e
12
Figure 1–12
Illustration of serial and parallel transfer of binary data. Only the data lines are shown.
Thomas L. Floyd
Digital Fundamentals, 9e
13
Figure 1–13
Thomas L. Floyd
Digital Fundamentals, 9e
14
Figure 1–14
Thomas L. Floyd
Digital Fundamentals, 9e
15
Basic Logic Operations
There are only three basic logic operations:
16
Basic Logic Operations
The NOT operation
• When the input is LOW, the output is HIGH
• When the input is HIGH, the output is LOW
The output logic level is
always opposite the input
logic level.
17
Basic Logic Operations
• The AND operation
– When any input is LOW,
the output is LOW
– When both inputs are
HIGH, the output is
HIGH
18
Basic Logic Operations
• The OR operation
– When any input is
HIGH, the output is
HIGH
– When both inputs are
LOW, the output is LOW
19
Overview of Basic Logic Functions
•
•
•
•
•
•
•
•
Comparison function
Arithmetic functions
Code conversion function
Encoding function
Decoding function
Data selection function
Data storage function
Counting function
20
Figure 1–19
The comparison function.
Comparison function
• Compares two binary values and determines
whether or not they are equal
Thomas L. Floyd
Digital Fundamentals, 9e
21
Overview of Basic Logic Functions
Arithmetic functions
• Perform the basic arithmetic
operations on two binary values:
– Addition
– Subtraction of two values
– Multiplication
– Division
22
Figure 1–20
The addition function.
Thomas L. Floyd
Digital Fundamentals, 9e
23
Code conversion function
• Converts, or translates, information
from one code format to another
Encoding function
• Converts non-binary information
into a binary code
Decoding function
• Converts binary-coded information
into a non-binary form
24
Figure 1–21
An encoder used to encode a calculator keystroke into a binary code for storage or for calculation.
25
Figure 1–22
A decoder used to convert a special binary code into a 7-segment decimal readout.
Thomas L. Floyd
Digital Fundamentals, 9e
26
Overview of Basic Logic Functions
Data selection function
• Multiplexer (mux)
– Switches digital data from any
number of input sources to a single
output line
• Demultiplexer (demux)
– switches digital data from a single
input to any number of output lines
27
Figure 1–23
Illustration of a basic multiplexing/demultiplexing application.
Thomas L. Floyd
Digital Fundamentals, 9e
28
Overview of Basic Logic Functions
Data storage function
• Retains binary data for a period of
time
– Flip-flops (bistable multvibrators)
– Registers
– Semiconductor memories
– Magnetic-media memories
– Optical-media memories
29
Figure 1–24
Example of the operation of a 4-bit serial shift register. Each block represents one storage “cell” or flip-flop.
Thomas L. Floyd
Digital Fundamentals, 9e
30
Figure 1–25
Example of the operation of a 4-bit parallel shift register.
Thomas L. Floyd
Digital Fundamentals, 9e
31
Figure 1–26
Illustration of basic counter operation.
Counting function
• Generates sequences of digital
pulse that represent numbers
Thomas L. Floyd
Digital Fundamentals, 9e
32
Fixed-Function Integrated Circuits
IC package styles
• Dual in-line package (DIP)
• Small-outline IC (SOIC)
• Flat pack (FP)
• Plastic-leaded chip carrier (PLCC)
• Leadless-ceramic chip carrier (LCCC)
33
Figure 1–27
Cutaway view of one type of fixed-function IC package showing the chip mounted inside, with connections to
input and output pins.
Thomas L. Floyd
Digital Fundamentals, 9e
34
Fixed-Function Integrated Circuits
• Dual in-line package (DIP)
35
Fixed-Function Integrated Circuits
• Small-outline IC (SOIC)
36
Figure 1–29
Examples of SMT package configurations.
Thomas L. Floyd
Digital Fundamentals, 9e
37
Figure 1–30
Pin numbering for two standard types of IC packages. Top views are shown.
Thomas L. Floyd
Digital Fundamentals, 9e
38
Introduction to Programmable Logic
• SPLD—Simple programmable logic
devices
• CPLD—Complex programmable logic
devices
• FPGA—Field-programmable gate arrays
39
Figure 1–31
Programmable logic.
Thomas L. Floyd
Digital Fundamentals, 9e
40
Introduction to Programmable Logic
• SPLD
– PAL (programmable array logic)
– GAL (generic array logic)
– PLA (programmable logic array)
– PROM (programmable read-only memory)
41
Figure 1–32
Block diagrams of simple programmable logic devices (SPLDs).
Thomas L. Floyd
Digital Fundamentals, 9e
42
Figure 1–34
General block diagram of a CPLD.
Thomas L. Floyd
Digital Fundamentals, 9e
43
Figure 1–36
Basic structure of an FPGA.
Thomas L. Floyd
Digital Fundamentals, 9e
44
Figure 1–38
Basic configuration for programming a PLD or FPGA.
Thomas L. Floyd
Digital Fundamentals, 9e
45
Test and Measurement Instruments
•
•
•
•
Analog Oscilloscope
Digital Oscilloscope
Logic Analyzer
Logic Probe, Pulser, and Current
Probe
• DC Power Supply
• Function Generator
• Digital Multimeter
46
Figure 1–40
A typical dual-channel oscilloscope. Used with permission from Tektronix, Inc.
Thomas L. Floyd
Digital Fundamentals, 9e
47
Figure 1–41
Comparison of analog and digital oscilloscopes.
Thomas L. Floyd
Digital Fundamentals, 9e
48
Figure 1–42
Block diagram of an analog oscilloscope.
Thomas L. Floyd
Digital Fundamentals, 9e
49
Figure 1–43
Block diagram of a digital oscilloscope.
Thomas L. Floyd
Digital Fundamentals, 9e
50
Figure 1–44
A typical dual-channel oscilloscope. Numbers below screen indicate the values for each division on the vertical
(voltage) and horizontal (time) scales and can be varied using the vertical and horizontal controls on the scope.
Thomas L. Floyd
Digital Fundamentals, 9e
51
Figure 1–45
Comparison of an untriggered and a triggered waveform on an oscilloscope.
Thomas L. Floyd
Digital Fundamentals, 9e
52
Figure 1–46
Displays of the same waveform having a dc component.
Thomas L. Floyd
Digital Fundamentals, 9e
53
Figure 1–47
An oscilloscope voltage probe. Used with permission from Tektronix, Inc.
Thomas L. Floyd
Digital Fundamentals, 9e
54
Figure 1–48
Probe compensation conditions.
Thomas L. Floyd
Digital Fundamentals, 9e
55
Figure 1–49
Thomas L. Floyd
Digital Fundamentals, 9e
56
Figure 1–50
Typical logic analyzer. Used with permission from Tektronix, Inc.
Thomas L. Floyd
Digital Fundamentals, 9e
57
Figure 1–51
Simplified block diagram of a logic analyzer.
Thomas L. Floyd
Digital Fundamentals, 9e
58
Figure 1–52
Two logic analyzer display modes.
Thomas L. Floyd
Digital Fundamentals, 9e
59
Figure 1–53
A typical multichannel logic analyzer probe. Used with permission from Tektronix, Inc.
Thomas L. Floyd
Digital Fundamentals, 9e
60
Figure 1–54
Typical signal generators. Used with permission from Tektronix, Inc.
Thomas L. Floyd
Digital Fundamentals, 9e
61
Figure 1–55
Illustration of how a logic pulser and a logic probe can be used to apply a pulse to a given point and check for
resulting pulse activity at another part of the circuit.
Thomas L. Floyd
Digital Fundamentals, 9e
62
Figure 1–56
Typical dc power supplies. Courtesy of B+K Precision.®
Thomas L. Floyd
Digital Fundamentals, 9e
63
Figure 1–57
Typical DMMs. Courtesy of B+K Precision.®
Thomas L. Floyd
Digital Fundamentals, 9e
64
Figure 1–60
Thomas L. Floyd
Digital Fundamentals, 9e
65
Figure 1–61
Thomas L. Floyd
Digital Fundamentals, 9e
66
Figure 1–62
Thomas L. Floyd
Digital Fundamentals, 9e
67
Figure 1–63
68
Figure 1–64
69
Download