chapter 3 basic logic gates 1. objectives you should be able to: you should be able to: –describe...

41
Chapter 3 Chapter 3 Basic Logic Gates Basic Logic Gates 1

Upload: thomas-buckridge

Post on 31-Mar-2015

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Chapter 3Chapter 3

Basic Logic GatesBasic Logic Gates

1

Page 2: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

ObjectivesObjectives

You should be able to:You should be able to:– Describe the operation and use of AND gates Describe the operation and use of AND gates

and OR gates.and OR gates.– Construct truth tables for AND and OR gates.Construct truth tables for AND and OR gates.– Draw timing diagrams for AND and OR gates.Draw timing diagrams for AND and OR gates.– Use timing analysis to describe operation of an Use timing analysis to describe operation of an

ENABLE function.ENABLE function.

2

Page 3: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

ObjectivesObjectives

You should be able to:You should be able to:– Sketch external connections to IC chips to Sketch external connections to IC chips to

implement AND and OR logic circuits.implement AND and OR logic circuits.– Explain how to use a logic pulser and a logic Explain how to use a logic pulser and a logic

probe to troubleshoot digital ICs.probe to troubleshoot digital ICs.– Describe the operation and use of NAND and Describe the operation and use of NAND and

NOR gates.NOR gates.– Construct truth tables for NAND and NOR Construct truth tables for NAND and NOR

gates.gates.

3

Page 4: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

ObjectivesObjectives

You should be able to:You should be able to:– Draw timing diagrams for NAND and NOR Draw timing diagrams for NAND and NOR

gates.gates.– Use the outputs of a Johnson shift counter to Use the outputs of a Johnson shift counter to

generate specialized waveforms using generate specialized waveforms using combinations of the five basic gates.combinations of the five basic gates.

– Develop a comparison of Boolean equations Develop a comparison of Boolean equations and truth tables for the five basic gates.and truth tables for the five basic gates.

4

Page 5: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The AND GateThe AND Gate

The output, X, is HIGH if input A AND input The output, X, is HIGH if input A AND input B are both HIGHB are both HIGH

Figure 3-1Figure 3-1

5

Page 6: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The AND GateThe AND Gate

Truth Table – Truth Table –

6

Page 7: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The AND GateThe AND Gate

Boolean Equation X = A AND B orBoolean Equation X = A AND B or X = AB X = AB

Can have more than two inputsCan have more than two inputs Number of combinations = 2Number of combinations = 2NN

7

Page 8: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The OR GateThe OR Gate

The output at X will be HIGH whenever input The output at X will be HIGH whenever input A OR input B is HIGH or both are HIGHA OR input B is HIGH or both are HIGH

Figure 3-5Figure 3-5

8

Page 9: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The OR GateThe OR Gate

Truth Table -Truth Table -

9

Page 10: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The OR GateThe OR Gate

Boolean Equation X = A OR B or Boolean Equation X = A OR B or X = A+BX = A+B

Can have more than two inputsCan have more than two inputs Number of combinations = 2Number of combinations = 2NN

10

Page 11: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Timing AnalysisTiming Analysis

Timing diagramTiming diagram OscilloscopeOscilloscope

– Voltage versus timeVoltage versus time– Up to twoUp to two

Logic analyzerLogic analyzer– State tableState table– Up to 16Up to 16

11

Page 12: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Timing AnalysisTiming Analysis

MultiSIM AND gate simulation.MultiSIM AND gate simulation.

12

Page 13: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Timing AnalysisTiming Analysis Example of timing analysis –Example of timing analysis –

– Determine the output.Determine the output.

13

Page 14: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Enable and Disable FunctionsEnable and Disable Functions Enable function using AND gateEnable function using AND gate

Figure 3-17

14

Page 15: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Enable and Disable FunctionsEnable and Disable Functions Disable function using OR gateDisable function using OR gate

Figure 3-18

15

Page 16: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Using Integrated Circuit Logic Using Integrated Circuit Logic GatesGates

Enable and DisableEnable and Disable Pin ConnectionsPin Connections VVCCCC and GND and GND Figure 3-20

16

Page 17: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Introduction to Introduction to Troubleshooting TechniquesTroubleshooting Techniques

The procedure used to find the fault or trouble The procedure used to find the fault or trouble in a circuit.in a circuit.

Logic ProbeLogic Probe– Metal tipMetal tip– Indicator lamp(s)Indicator lamp(s)

Floating - open circuit, neither HIGH nor LOWFloating - open circuit, neither HIGH nor LOW Logic Pulser - provide known digital signal to Logic Pulser - provide known digital signal to

a circuita circuit

17

Page 18: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointsDiscussion Points

Describe how a logic probe and pulser Describe how a logic probe and pulser could be used to troubleshoot an AND could be used to troubleshoot an AND gate.gate.

Describe how a logic probe and pulser Describe how a logic probe and pulser could be used to troubleshoot an OR could be used to troubleshoot an OR gate.gate.

18

Page 19: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The InverterThe Inverter

Used to complement or invert a digital signalUsed to complement or invert a digital signal Figure 3-27Figure 3-27

19

Page 20: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The InverterThe Inverter

Truth Table Truth Table Boolean Equation X = ABoolean Equation X = A Inversion barInversion bar NOT gateNOT gate

20

Page 21: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The NAND GateThe NAND Gate

Same as the AND gate except that its Same as the AND gate except that its output is invertedoutput is inverted

Figure 3-29Figure 3-29

21

Page 22: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The NAND GateThe NAND Gate Truth TableTruth Table Boolean Equation X = ABBoolean Equation X = AB Multiple inputs - the output is always Multiple inputs - the output is always

HIGH unless all inputs go HIGHHIGH unless all inputs go HIGH

22

Page 23: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The NOR GateThe NOR Gate

Same as the OR gate except that its Same as the OR gate except that its output is invertedoutput is inverted

Figure 3-36Figure 3-36

23

Page 24: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

The NOR GateThe NOR Gate

Truth TableTruth Table Boolean Equation X = A + BBoolean Equation X = A + B

See Table 3-8 in your textSee Table 3-8 in your text

24

Page 25: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Logic Gate Waveform GenerationLogic Gate Waveform Generation

Repetitive waveformRepetitive waveform Waveform generatorWaveform generator

– Johnson shift counterJohnson shift counter– Figure 3-43Figure 3-43

25

Page 26: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointDiscussion Point Which Johnson counter outputs must be Which Johnson counter outputs must be

connected to a 3 input AND gate to connected to a 3 input AND gate to enable only Cenable only CPP #4? #4?

26

Page 27: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointDiscussion Point Sketch the output waveform resulting Sketch the output waveform resulting

from inputting the Johnson counter from inputting the Johnson counter outputs shown:outputs shown:

27

Page 28: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Using IC Logic GatesUsing IC Logic Gates

Hex - six gatesHex - six gates Figure 3-60Figure 3-60

28

Page 29: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Using IC Logic GatesUsing IC Logic Gates Quad - four gatesQuad - four gates three-, four-, and eight-input three-, four-, and eight-input

configurationsconfigurations Figure 3-61Figure 3-61

29

Page 30: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Summary of Basic Logic Gates Summary of Basic Logic Gates and IEEE/IEC Standard Logic and IEEE/IEC Standard Logic

SymbolsSymbols

30

Page 31: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Summary of Basic Logic Gates Summary of Basic Logic Gates and IEEE/IEC Standard Logic and IEEE/IEC Standard Logic

SymbolsSymbolsFigure 3-65

31

Page 32: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointDiscussion Point

Briefly describe the operation of each of the Briefly describe the operation of each of the basic logic gates:basic logic gates:– ANDAND– OROR– NOT (inverter)NOT (inverter)– NANDNAND– NORNOR

32

Page 33: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointDiscussion Point

Create a truth table for a three input NAND Create a truth table for a three input NAND gate.gate.

Write the Boolean equation for a 3 input OR Write the Boolean equation for a 3 input OR gate.gate.

33

Page 34: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointDiscussion Point

Sketch the output waveform X for the 2 input Sketch the output waveform X for the 2 input AND gate shown.AND gate shown.

34

Page 35: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointDiscussion Point Sketch the output waveforms for the Johnson Sketch the output waveforms for the Johnson

shift counter outputs shown:shift counter outputs shown:

35

Page 36: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

Discussion PointDiscussion Point Determine the problem (if any) with the 7427 Determine the problem (if any) with the 7427

NOR IC using the logic probe results shown:NOR IC using the logic probe results shown:

36

Page 37: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

SummarySummary

The AND gate requires that all inputs are The AND gate requires that all inputs are HIGH in order to get a HIGH outputHIGH in order to get a HIGH output

The OR gate outputs a HIGH if any of its The OR gate outputs a HIGH if any of its inputs are HIGHinputs are HIGH

An effective way to measure the precise An effective way to measure the precise timing relationships of digital waveforms is timing relationships of digital waveforms is with an oscilloscope or a logic analyzerwith an oscilloscope or a logic analyzer

37

Page 38: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

SummarySummary

Beside providing the basic logic functions, Beside providing the basic logic functions, AND and OR gates can also be used to AND and OR gates can also be used to enable or disable a signal to pass from one enable or disable a signal to pass from one point to anotherpoint to another

There are several integrated circuits There are several integrated circuits available in both TTL and CMOS that available in both TTL and CMOS that provide the basic logic functionsprovide the basic logic functions

38

Page 39: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

SummarySummary

Two important troubleshooting tools are the Two important troubleshooting tools are the logic pulser and the logic probe. The pulser logic pulser and the logic probe. The pulser is used to inject pulses into a circuit under is used to inject pulses into a circuit under test. The probe reads the level at a point in test. The probe reads the level at a point in a circuit to determine is it is HIGH, LOW, or a circuit to determine is it is HIGH, LOW, or floatingfloating

An inverter provides an output that is the An inverter provides an output that is the complement of its inputcomplement of its input

39

Page 40: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

SummarySummary

A NAND gate outputs a LOW when all of its A NAND gate outputs a LOW when all of its inputs are HIGHinputs are HIGH

A NOR gate outputs a HIGH when all of its A NOR gate outputs a HIGH when all of its inputs are LOWinputs are LOW

Specialized waveforms can be created by Specialized waveforms can be created by using a repetitive waveform generator and using a repetitive waveform generator and the basic gatesthe basic gates

40

Page 41: Chapter 3 Basic Logic Gates 1. Objectives You should be able to: You should be able to: –Describe the operation and use of AND gates and OR gates. –Construct

SummarySummary

Manufacturers’ data manuals are used by Manufacturers’ data manuals are used by the technician to find the pin configuration the technician to find the pin configuration and operating characteristics for the ICs and operating characteristics for the ICs used in modern circuitry.used in modern circuitry.

41