This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
Chapter Objectives■ Explain the basic differences between digital and analog quantities.■ Show how voltage levels are used to represent digital quantities.■ Describe various parameters of a pulse waveform. ■ Explain the basic logic functions of NOT, AND, and OR.■ Describe several types of logic operations and explain their application in an example system.■ Describe programmable logic, discuss the various types, and describe how PLDs are programmed.■ Identify fixed-function digital integrated circuits.■ Identify pin numbers on integrated circuit packages.■ Recognize various of Test and Measurement Instruments.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
Most natural quantities that we see are analog and vary continuously. Analog systems can generally handle higher power than digital systems. An analog quantity has continuous values.
Analog -Digital Quantities
A digital quantity has a discrete set of values.
The Digital AdvantageoDigital systems can process, store, and transmit data more efficiently and reliably- than analog. oReproduced with greater accuracy and clarity.oNoise does not affect digital data.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-2 Sampled-value representation (quantization) of the analog quantity in Figure 1–1. Each value represented by a dot can be digitized by representing it as a digital code that consists of a series of 1s and 0s.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
Many systems use a mix of analog and digital electronics to take advantage of each technology. A typical CD player accepts digital data from the CD drive and converts it to an analog signal for amplification.
Analog and Digital Systems
FIGURE 1-4 Basic block diagram of a CD player. Only one channel is shown.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-5a Example of a mechatronic system and application.
Mechatronics
Both digital and analog electronics are used in the control of various mechanical systems.The interdisciplinary field that comprises both mechanical and electronic components isknown as mechatronics.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
o Digital electronics uses circuits that have two states, which are represented by two different voltage levels called HIGH and LOW.
o The voltages represent numbers in the binary system.
Binary Digits and Logic Levels
In binary, a single number is called a bit (for binary digit). A bit can have the value of either a 0 or a 1, depending on if the voltage is HIGH or LOW.
HIGH
LOW
VH(max)
VH(min)
VL(max)
VL(min)
Unacceptable
FIGURE 1-6 Logic level ranges of voltage for a digital circuit..
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
Periodic pulse waveforms are composed of pulses that repeats in a fixed interval called a period (T).The frequency is the rate it repeats and is measured in hertz (Hz).
Periodic Pulse Waveforms
Tf 1
f
T 1
What is the period of a repetitive wave if f = 3.2 GHz?
GHz 2.311
fT 313 ps
FIGURE 1-9 Examples of digital waveforms.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
The clock waveformIn digital systems, all waveforms are synchronized with a basic timing waveform called the clock. The clock is a periodic waveform in which each interval between pulses (the period) equals the time for one bit. group of several bits can contain binary information.The clock waveform itself does not carry information.
FIGURE 1-11 Example of a clock waveform synchronized with a waveform representation of a sequence of bits.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
A timing diagram is a graph of digital waveforms showing the actual time relationship of two or more waveforms and how each waveform changes in relation to the others.By looking at a timing diagram, you can determine the states (HIGH or LOW) of all the waveforms at any specified point in time and the exact time that a waveform changes state relative to the other waveforms.
FIGURE 1-12 Example of a timing diagram.
Timing Diagrams
Clock
A
B
C
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-13 Illustration of serial and parallel transfer of binary data. Only the data lines are shown.
Data TransferData refers to groups of bits that convey some type of information.As illustrated in Figure 1–13, binary data are transferred in two ways:serial the bits are sent one bit at a time along a single line.parallel all the bits in a group are sent out on separate lines at the same time. There is one line for each bit.
Computer Modem
1 0 1 1 0 0 1 0
t0 t1 t2 t3 t4 t5 t6 t7
Computer Printer
0
t0 t1
1
0
0
1
1
0
1
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
The term logic is applied to digital circuits used to implement logic functions. Several kinds of digital logic circuits are the basic elements that form the building blocks for such complex digital systems as the computer. Three basic logic functions (NOT, AND, and OR) are indicated by standard distinctive shape symbols in Figure 1–16.
FIGURE 1-16 The basic logic functions and symbols.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
True only if one or more input conditions are true.
Indicates the opposite condition.
A circuit that performs a specified logic function (AND, OR) is called a logic gate. AND and OR gates can have any number of inputs, as indicated by the dashes in the figure.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
The decoding function is performed by a logic circuit called a decoder converts coded information, such as a binary number, into a noncoded form.
Decoder
Binary input
7-segment display
For Example a decoder that is used to activate a 7-segment display.Each of the seven segments of the display is connected to an output line from the decoder.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
Storage is a function that is required in most digital systems, and its purpose is to retain binary data for a period of time.One type of them is the shift register, that moves and stores data each time it is clocked.
A flip-flop is a bistable (2 stable states) logic circuit that can store only one bit at a time, either a 1 or a 0. The output of a flip-flop indicates which bit it is storing.A register is formed by combining several flip-flops so that groups of bits can be stored.
The two basic types of shift registers are serial parallel
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
o The counting function is important in digital systems.o They use to count events represented by changing levels or pulses. o To count, the counter must “remember” the present number so that
it can go to the next proper number in sequence. o storage capability is an important characteristic of all counters.o Flip-flops are used to implement them.
1
Counter Parallel output lines Binary
code for 1
Binary code for 2
Binary code for 3
Binary code for 4
Binary code for 5
Sequence of binary codes that represent the number of input pulses counted.
2 3 4 5
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-30 Block diagrams of simple programmable logic devices (SPLDs).
SPLD can replace up to ten fixed-function ICs and their interconnections
FIGURE 1-31 A typical SPLD package.
A PAL (programmable array logic) can be programmed one time. It consists of a programmable array of AND gates and a fixed array of OR gates. A GAL (generic array logic) can be reprogrammed many times. It consists of a reprogrammable array of AND gates and a fixed array of OR gates with programmable outputs.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
CPLDs can be used to implement any of the logic functions. They areavailable in a variety of configurations, typically ranging from 44 to 160 pin packages.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
Field-Programmable Gate Array (FPGA)o When the logic blocks are relatively simple, the FPGA architecture
is called fine-grained. o When the logic blocks are larger and more complex, the architecture
is called coarse-grained.
The I/O blocks are on the outer edges of the structure and provide individually selectable input, output, or bidirectional access to the outside world.
FIGURE 1-35 A typical ball-grid array (BGA) package. These types of packages can have over 1000 input and output pins.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
The Programming Processo a software development package installed on a computer to
implement a circuit design in the programmable chip. o The computer must be interfaced with a development board or programming fixture containing the device.FIGURE 1-36 Basic setup for programming a PLD or FPGA. Graphic entry of a logic circuit is shown for illustration. Text entry such as VHDL can also be used.(Photo courtesy of Digilent, Inc.)
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
The TTL series, available as DIPs are popular for laboratory experiments with logic.
FIGURE 1-38 Cutaway view of one type of fixed-function IC package (dual in-line package) showing the chip mounted inside, with connections to input and output pins.
Cutaway view of DIP (Dual-In-line Pins) chip:
integrated circuit (IC) is an electronic circuit that is constructed entirely on a single small chip of silicon. All the components that make up the circuit—transistors, diodes, resistors, and capacitors.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-39 Examples of through-hole and surface-mounted devices. The DIP is larger than the SOIC with the same number of leads. This particular DIP is approximately 0.785 in. long, and the SOIC is approximately 0.385 in. long.
(IC) packages are classified according to the way they are mounted onprinted circuit boards (PCBs) are:The through-hole type packages have pins (leads) that are inserted through holes in the PCB and can be soldered to conductors on the opposite side. Figure 1–39(a).
(b)
Surface mounting uses surface-mount technology (SMT). It is a space-saving alternative to through-hole mounting. An example shown in Figure 1–39(b).
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-41 Pin numbering for two examples of standard types of IC packages. Top views are shown.
Pin NumberingAll IC packages have a standard format for numbering the pins (leads). The dual inline packages (DIPs) and the shrink small-outline packages (SSOP) have the numbering arrangement illustrated in Figure 1–41(a)
The PLCC and LCC packages have leads arranged on all four sides. Pin 1 is indicated by a dot or other index mark and is located at the center of one set of . Figure 1–41(b)
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
The OscilloscopeoThe v-axis represents voltage,o h-axis represents time. Amplitude, period, and frequency of a signal can be measured using the oscilloscope.Also, the pulse width, duty cycle, rise time, and fall time of a pulse waveform can be determined.
FIGURE 1-42 Typical digital oscilloscope with voltage probe.Used with permission from Tektronix, Inc.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-43 Block diagram of a digital oscilloscope.(Photo courtesy of Digilent, Inc.)
A digital scope converts the measured waveform to D-information by a sampling process in (ADC) converter. The D-information is then used to reconstruct the waveform on the screen.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
FIGURE 1-44 A typical digital oscilloscope front panel. 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. Used with permission from Tektronix, Inc.
The Oscilloscope
A front panel view of a typical four-channel digital oscilloscope is shown in Figure 1–44.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd
The DC Power Supplyo It converts ac power into regulated dc voltage. o All digital circuits require dc voltage from 1.2 V to 5 V to operate.o It is used to power circuits during design, development, and
troubleshooting when system power is not available.
FIGURE 1-56 Typical bench-type dc power supply. Used with permission from Tektronix, Inc.
Digital Fundamentals, Eleventh Edition, Global EditionThomas L. Floyd