Digital Fundamentals Tenth Edition Floyd Chapter 1 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved
Objectives After completing this unit, you should be able to: 1. Explain, and provide examples of, the basic differences between digital and analog quantities. 2. Demonstrate how voltage levels are used to represent digital quantities. Describe the various parameters of a pulse (digital) waveform, including rise time, fall time, pulse width, frequency, period, and duty cycle. 4. Explain the basic logic operations of NOT, AND, and OR. 5. Describe the basic functions of the comparator, adder, code converter, encoder, decoder, multiplexer, demultiplexer, counter, and register. 6. Identify digital integrated circuits (ICs) according to their complexity and type.
Agenda Lecture: Chapter 1, pp. 1-39 Lab 1, Experiment 3: Number Systems Steps 1, 2, 3 & 4 (pg 23) in Buchla Section of Supplemental Text to Digital Fundamentals. Assignment: Complete questions 2, 4, 6, 8, 10, 12, 14, 16, 18, 22, & 24 from the Problems section of Electric Circuits Fundamentals on pp. 34-37. Prepare for a Quiz on Unit 1.
Analog Quantities Summary Most natural quantities that we see are analog and vary continuously. Analog systems can generally handle higher power than digital systems. Temperature ( F) 100 95 90 85 80 75 70 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 Time of day A.M. P.M. Digital systems can process, store, and transmit data more efficiently but can only assign discrete values to each point.
Analog and Digital Systems 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. CD drive Summary 10110011101 Digital data Digital-to-analog converter Analog reproduction of music audio signal Linear amplifier Speaker Sound waves
Summary Binary Digits and Logic Levels Digital electronics uses circuits that have two states, which are represented by two different voltage levels called HIGH and LOW. The voltages represent numbers in the binary system. 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. V H(max) V H(min) V L(max) V L(min) HIGH Invalid LOW
Digital Waveforms Summary Digital waveforms change between the LOW and HIGH levels. A positive going pulse is one that goes from a normally LOW logic level to a HIGH level and then back again. Digital waveforms are made up of a series of pulses. HIGH HIGH Rising or leading edge Falling or trailing edge Falling or leading edge Rising or trailing edge LOW LOW t 0 t 1 t 0 t 1 (a) Positive going pulse (b) Negative going pulse
Summary Pulse Definitions Actual pulses are not ideal but are described by the rise time, fall time, amplitude, and other characteristics. 90% Overshoot Ringing Droop Amplitude 50% t W Pulse width 10% Ringing Base line t r t f Undershoot Rise time Fall time
Periodic Pulse Waveforms Summary Periodic pulse waveforms are composed of pulses that repeats in a fixed interval called the period. The frequency is the rate it repeats and is measured in hertz. 1 1 f T T f The clock is a basic timing signal that is an example of a periodic wave. What is the period of a repetitive wave if f = 3.2 GHz? 1 1 T 313 ps f 3.2 GHz
Pulse Definitions Summary In addition to frequency and period, repetitive pulse waveforms are described by the amplitude (A), pulse width (t W ) and duty cycle. Duty cycle is the ratio of t W to T. Volts Amplitude (A) Pulse width (t W ) Period, T Time
Timing Diagrams Summary A timing diagram is used to show the relationship between two or more digital waveforms, Clock A B C A diagram like this can be observed directly on a logic analyzer.
Summary Serial and Parallel Data Data can be transmitted by either serial transfer or parallel transfer. 1 0 1 1 0 0 1 0 Computer t 0 t 1 t 2 t 3 t 4 t 5 t 6 t 7 Modem 1 Computer 0 Printer 1 1 0 0 1 0 t 0 t 1
Basic Logic Functions Summary True only if all input conditions are true. True only if one or more input conditions are true. Indicates the opposite condition.
Basic System Functions Summary And, or, and not elements can be combined to form various logic functions. A few examples are: The comparison function Two binary numbers A B Comparator A > B A = B A < B Outputs Basic arithmetic functions Adder Two binary numbers Carry in A B C in Σ C out Sum Carry out
Basic System Functions Summary HIGH 9 Encoder The encoding function 7 8 9 4 5 6 1 2 3 0. +/ Calculator keypad 8 76 5 43 2 10 Binary code for 9 used for storage and/or computation The decoding function Decoder Binary input 7-segment display
Basic System Functions Summary The data selection function A B Multiplexer t 1 Data from A to D Data from B to E Data from C to F Data from A to D t 1 t 2 t 3 t 1 Demultiplexer t 1 D E t 2 t 2 C t 3 t 3 F Switching sequence control input Switching sequence control input
Basic System Functions The counting function Summary 1 2 3 4 5 Counter Parallel output lines Binary code for 1 Binary code for 2 Binary code for 3 Binary code for 4 Binary code for 5 Input pulses Sequence of binary codes that represent the number of input pulses counted. and other functions such as code conversion and storage.
Basic System Functions Summary One type of storage function is the shift register, that moves and stores data each time it is clocked. Serial bits on input line 0101 0 0 0 0 Initially, the register contains only invalid data or all zeros as shown here. 010 01 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 0 1 First bit (1) is shifted serially into the register. Second bit (0) is shifted serially into register and first bit is shifted right. Third bit (1) is shifted into register and the first and second bits are shifted right. Fourth bit (0) is shifted into register and the first, second, and third bits are shifted right. The register now stores all four bits and is full.
Summary Integrated Circuits Cutaway view of DIP (Dual-In-line Pins) chip: Chip Plastic case Pins The TTL series, available as DIPs are popular for laboratory experiments with logic.
Integrated Circuits Summary An example of laboratory prototyping is shown. The circuit is wired using DIP chips and tested. In this case, testing can be done by a computer connected to the system. DIP chips
Summary Integrated Circuits DIP chips and surface mount chips Pin 1 Dual in-line package Small outline IC (SOIC)
Summary Integrated Circuits Other surface mount packages: End view End view End view SOIC PLCC LCCC
Summary Assignment: Read Section (1-6) Programmable Logic Devices
Summary Test and Measurement Instruments The front panel controls for a general-purpose oscilloscope can be divided into four major groups. VERTICAL CH 1 CH 2 BOTH HORIZONTAL TRIGGER SLOPE Ð + POSITION POSITION POSITION LEVEL VOLTS/DIV VOLTS/DIV SEC/DIV SOURCE CH 1 CH 2 5 V 2 mv COUPLING AC-DC-GND 5 V 2 mv COUPLING AC-DC-GND 5 s 5 ns EXT LINE TRIG COUP DC AC DISPLAY PROBE COMP 5 V CH 1 CH 2 EXT TRIG INTENSITY
Ch 1 Ch 2 Vertical section Signal coupling AC DC GND Amp Summary Conversion/storage (Digital scopes only) Test and Measurement Instruments AC DC GND Volts/Di v Vertical position Amp For measuring digital signals, use DC coupling Conversion/storage (Digital scopes only) Digital only Analog only Display section Intensity Trigger section Horizontal section External trigger External trigger coupling Power supply AC DC Trigger source Ch 1 Ext Line AC Ch 2 DC to all sec tions Trigger level and slope Trigger circuits Sec /Div Time base Horizontal position Control and process (Digital scopes only) Normally, trigger on the slower of two waveforms when comparing signals.
Summary Test and Measurement Instruments The logic analyzer can display multiple channels of digital information or show data in tabular form.
Summary Test and Measurement Instruments OFF 0.01 V V Hz The DMM can make three basic electrical measurements. Voltage Resistance Current 10 A A 40 m A Fused V mv Range Autorange Touch/Hold 1 s 1 s V COM In digital work, DMMs are useful for checking power supply voltages, verifying resistors, testing continuity, and occasionally making other measurements.
Programmable Logic Summary Programmable logic devices (PLDs) are an alternative to fixed function devices. The logic can be programmed for a specific purpose. In general, they cost less and use less board space that fixed function devices. A PAL device is a form of PLD that uses a combination of a programmable AND array and a fixed OR array: Programmable AND array Fixed OR array and output logic
Selected Key Terms Analog Digital Binary Bit Pulse Being continuous or having continuous values. Related to digits or discrete quantities; having a set of discrete values. Having two values or states; describes a number system that has a base of two and utilizes 1 and 0 as its digits. A binary digit, which can be a 1 or a 0. A sudden change from one level to another, followed after a time, called the pulse width, by a sudden change back to the original level.
Selected Key Terms Clock Gate NOT AND A basic timing signal in a digital system; a periodic waveform used to synchronize actions. A logic circuit that performs a basic logic operations such as AND or OR. A basic logic function that performs inversion. A basic logic operation in which a true (HIGH) output occurs only when all input conditions are true (HIGH). OR A basic logic operation in which a true (HIGH) output occurs when when one or more of the input conditions are true (HIGH).
Selected Key Terms Fixed-function logic Programmable logic A category of digital integrated circuits having functions that cannot be altered. A category of digital integrated circuits capable of being programmed to perform specified functions.
Agenda Lecture: Chapter 1, pp. 1-39 Lab 1, Experiment 3: Number Systems Steps 1, 2, 3 & 4 (pg 23) in Buchla Section of Supplemental Text to Digital Fundamentals. Assignment: Complete questions 2, 4, 6, 8, 10, 12, 14, 16, 18, 22, & 24 from the Problems section of Electric Circuits Fundamentals on pp. 34-37. Prepare for a Quiz on Unit 1.