Vous êtes sur la page 1sur 56

Digital Fundamentals

CHAPTER 1 Digital Concepts

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 1

Digital and Analog Quantities

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 2

Digital and Analog Quantities

Analog quantities have continuous values Digital quantities have discrete sets of values

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 3

Digital and Analog Quantities

Analog quantities have continuous values

Digital quantities have discrete sets of values

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 4

Digital and Analog Quantities

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 5

Digital and Analog Quantities

Types of electronic devices or instruments: Analog Digital

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 6

Digital and Analog Quantities

Combination analog and digital

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 7

Binary Digits, Logic Levels, and Digital Waveforms

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 8

Binary Digits, Logic Levels, and Digital Waveforms

The conventional numbering system uses ten digits: 0,1,2,3,4,5,6,7,8, and 9. The binary numbering system uses just two digits: 0 and 1.

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 9

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

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 10

Binary Digits, Logic Levels, and Digital Waveforms

Binary values are also represented by voltage levels

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 11

Binary Digits, Logic Levels, and Digital Waveforms

Major parts of a digital pulse Base line Amplitude Rise time (tr) Pulse width (tw) Fall time (tf)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 12

Binary Digits, Logic Levels, and Digital Waveforms

tw = pulse width T = period of the waveform f = frequency of the waveform


1 f T

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 13

Binary Digits, Logic Levels, and Digital Waveforms

The duty cycle of a binary waveform is defined as:


tw Duty cycle 100% T
Floyd Digital Fundamentals, 9/e Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 14

Digital Waveform Carriers Binary Information

clock

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 15

Digital Waveform Carriers Binary Information


Timing Diagram

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 16

Digital Waveform Carriers Binary Information

Data Transfer

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 17

Basic Logic Operations

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 18

Basic Logic Operations There are only three basic logic operations:

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 19

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.
Floyd Digital Fundamentals, 9/e Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 20

Basic Logic Operations

The AND operation


When any input is LOW, the output is LOW When both inputs are HIGH, the output is HIGH

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 21

Basic Logic Operations

The OR operation
When any input is HIGH, the output is HIGH When both inputs are LOW, the output is LOW

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 22

Overview of Basic Logic Functions

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 23

Overview of Basic Logic Functions


Floyd Digital Fundamentals, 9/e

Comparison function Arithmetic functions Code conversion function Encoding function Decoding function Data selection function Data storage function Counting function
Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 24

Overview of Basic Logic Functions

Comparison function
Compares two binary values and determines whether or not they are equal

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 25

Overview of Basic Logic Functions

Arithmetic functions Perform the basic arithmetic operations on two binary values:
Addition Subtraction of two values Multiplication Division

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 26

Overview of Basic Logic Functions

Code conversion function Converts, or translates, information from one code format to another

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 27

Overview of Basic Logic Functions

Encoding function Converts non-binary information into a binary code

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 28

Overview of Basic Logic Functions

Decoding function Converts binarycoded information into a non-binary form

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 29

Decoder
y0 = abc y1 = abc y2 = abc y3 = abc y4 = abc y5 = abc y6 = abc y7 = abc
a 0 0 0 0 1 1 1 1 b 0 0 1 1 0 0 1 1 c 0 1 0 1 0 1 0 1 y0 1 0 0 0 0 0 0 0 y1 0 1 0 0 0 0 0 0 y2 0 0 1 0 0 0 0 0 y3 0 0 0 1 0 0 0 0 y4 0 0 0 0 1 0 0 0 y5 0 0 0 0 0 1 0 0 y6 0 0 0 0 0 0 1 0 y7 0 0 0 0 0 0 0 1

a b c

3-to-8 Line Decoder

True table of the logic of this decoder

a b c d e f g
Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Floyd Digital Fundamentals, 9/e

Slide 30

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

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 31

Multiplexer

I0 I1 I2 I3 A
A 0 0 1 1
+

4-to-1 MUX

A B I0 A B I1 A B I2 A B I3
Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

B
B 0 1 0 1 Z I0 I1 I2 I3

Floyd Digital Fundamentals, 9/e

Slide 32

Multiplexer

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 33

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
Floyd Digital Fundamentals, 9/e Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 34

4-bit Serial Shift Register

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 35

Parallel Shift Register

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 36

Overview of Basic Logic Functions

Counting function Generates sequences of digital pulse that represent numbers

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 37

Storage Function

Flip-flops
S-R Type D Type

Q Clock Q D
Floyd Digital Fundamentals, 9/e Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 38

Storage Function Registers

Semiconductor Memories Magnetic Memories


Floyd Digital Fundamentals, 9/e Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 39

Example

N0 Need

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 40

Fixed-Function Integrated Circuits

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 41

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)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 42

Fixed-Function Integrated Circuits

Dual in-line package (DIP)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 43

Fixed-Function Integrated Circuits

Small-outline IC (SOIC)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 44

Fixed-Function Integrated Circuits

Flat pack (FP)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 45

Fixed-Function Integrated Circuits

Plastic-leaded chip carrier (PLCC)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 46

Fixed-Function Integrated Circuits

Leadless-ceramic chip carrier (LCCC)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 47

Homework 2 (due after one weeks)

Two as a team, one alone is allowed. Draw a conceptual block diagram by means of basic gates and logic function units introduced (please refer to the example of Slide 40) No correct answer at all. Please develop your design with full freedom
Floyd Digital Fundamentals, 9/e Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 48

Introduction to Programmable Logic (Skip: This class will skip all the contents related to programmable logic)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 49

Introduction to Programmable Logic

SPLDSimple programmable logic devices CPLDComplex programmable logic devices FPGAField-programmable gate arrays

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 50

Introduction to Programmable Logic

SPLD
PAL (programmable array logic) GAL (generic array logic) PLA (programmable logic array) PROM (programmable read-only memory)

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 51

CPLD

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 52

FPGA

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 53

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 54

Test and Measurement Instruments

Floyd Digital Fundamentals, 9/e

Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 55

Test and Measurement Instruments

Analog Oscilloscope Digital Oscilloscope Logic Analyzer Logic Probe, Pulser, and Current Probe DC Power Supply Function Generator Digital Multimeter
Floyd Digital Fundamentals, 9/e Copyright 2006 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

Slide 56

Vous aimerez peut-être aussi