Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3....

24
Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

Transcript of Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3....

Page 1: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

Floyd, Digital Fundamentals, 10th ed

EET 1131 Unit 3Basic Logic Gates

Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next

week. Quiz next week.

Page 2: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The inverter performs the Boolean NOT operation. When the input is LOW (0), the output is HIGH (1); when the input is HIGH, the output is LOW.

The Inverter A X

InputA X

Output

0 1 1 0

The NOT operation (complement) is shown with an overbar. Thus, the Boolean expression for an inverter is X = A.

Page 3: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The Inverter

Example waveforms:

A

X

A X

Page 4: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The AND gate produces a HIGH output when all inputs are HIGH; otherwise, the output is LOW. For a 2-input gate, the truth table is

The AND Gate

The AND operation is usually shown with a dot between the variables but it may be implied (no dot). Thus, the AND operation is written as X = A .B or X = AB.

InputsA B X

Output

0 00 11 01 1

00 01

A

B

X &A

BX

Page 5: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Example waveforms:

A

X

The AND GateA

B

X

B

&A

BX

Page 6: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The AND Gate

A Multisim circuit is shown. XWG1 is a word generator set in the count down mode. XLA1 is a logic analyzer with the output of the AND gate connected to first (upper) line of the analyzer. What signal do you expect to on this line?

The output (line 1) will be HIGH only when all of the inputs are HIGH.

Page 7: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The OR gate produces a HIGH output if any input is HIGH; if all inputs are LOW, the output is LOW. For a 2-input gate, the truth table is

The OR Gate

The OR operation is shown with a plus sign (+) between the variables. Thus, the OR operation is written as X = A + B.

InputsA B X

Output

0 00 11 01 1

01 11

A

B

X AB

X≥ 1

Page 8: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Example waveforms:

A

X

The OR Gate

B

A

B

X AB

X≥ 1

Page 9: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The OR Gate

A Multisim circuit is shown. XWG1 is a word generator set to count down. XLA1 is a logic analyzer with the output

The output (line 1) will be HIGH if any input is HIGH; otherwise it will be LOW.

connected to first (top) line of the analyzer. The three 2-input OR gates act as a single 4-input gate. What signal do you expect on the output line?

Page 10: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The NAND gate produces a LOW output when all inputs are HIGH; otherwise, the output is HIGH. For a 2-input gate, the truth table is

The NAND Gate

InputsA B X

Output

0 00 11 01 1

11 10

A

B

X A

BX&

The NAND operation is shown with a dot between the variables and an overbar covering them. Thus, the NAND operation is written as X = A .B (Alternatively, X = AB.)

Page 11: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Example waveforms:

A

X

The NAND gate is particularly useful because it is a “universal” gate – all other basic gates can be constructed from NAND gates.

The NAND Gate

B

A

B

X A

BX&

Page 12: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The NAND Gate

A Multisim circuit is shown. XWG1 is a word generator set in the count up mode. A four-channel oscilloscope monitors the inputs and output. What output signal do you expect to see?

The output (channel D) will be LOW only when all of the inputs are HIGH.

Inputs

Page 13: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

The NOR gate produces a LOW output if any input is HIGH; if all inputs are LOW, the output is HIGH. For a 2-input gate, the truth table is

The NOR Gate

InputsA B X

Output

0 00 11 01 1

10 00

A

B

X AB

X≥1

The NOR operation is shown with a plus sign (+) between the variables and an overbar covering them. Thus, the NOR operation is written as X = A + B.

Page 14: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Example waveforms:

A

XThe NOR operation will produce a LOW if any input is HIGH.

The NOR Gate

B

A

B

X AB

X≥1

Page 15: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

Floyd, Digital Fundamentals, 10th ed

Enable/Disable Using AND Gate

14

Page 16: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

Floyd, Digital Fundamentals, 10th ed

Enable/Disable Using OR Gate

15

Page 17: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Integrated Circuits

Plasticcase

Pins

Chip

Cutaway view of DIP (Dual-In-line Package) chip:

The TTL series, available as DIPs are popular for laboratory experiments with logic.

Page 18: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Integrated Circuits

DIP chips and surface mount chips

Pin 1

Dual in-line package Small outline IC (SOIC)

Page 19: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Integrated Circuits

Chip Densities:

• Small scale integration (SSI): <=10 gates per chip.

• Medium-scale integration (MSI): 10 to 100 gates per chip.

• Large-scale integration (LSI): 100 to 10,000 gates per chip.

• Very large-scale integration (VLSI): 10,000 to 100,000 gates per chip.

Page 20: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

Programmable Logic

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 than fixed function devices.

Page 21: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

Copyright ©2009 by Pearson Higher Education, Inc.Upper Saddle River, New Jersey 07458

All rights reserved.

Digital Fundamentals, Tenth EditionThomas L. Floyd

Figure 3.50 Pin configuration diagrams for some common gate configurations.

Page 22: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

Floyd, Digital Fundamentals, 10th ed

Website for Datasheets

Many websites have datasheets for logic chips.

The best site is Texas Instruments: www.ti.com

Type the chip number (such as 7404) in the Search box. For some chips, the original part number is

obsolete and no longer available. In such cases, inserting LS often works. Example: 74LS10.

Page 23: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights ReservedFloyd, Digital Fundamentals, 10th ed

• Troubleshooting means finding and fixing faults in a circuit or system that’s not working correctly.

• Your first step in troubleshooting a digital circuit on the breadboard should always be to verify that the voltage at each chip’s power and ground pins are actually +5 V and 0V.

• After that, use your knowledge of truth tables to find the gates that are not producing the correct outputs.

Troubleshooting

Page 24: Floyd, Digital Fundamentals, 10 th ed EET 1131 Unit 3 Basic Logic Gates Read Kleitz, Chapter 3. Homework #3 and Lab #3 due next week. Quiz next week.

• Multisim lets you insert the following kinds of faults into digital components:

• An open pin

• Two pins shorted together

• A pin shorted to VCC (constant HIGH)

• A pin shorted to ground (constant LOW)

• Your book has Multisim troubleshooting problems that I’ll assign on some homeworks. You can download the files for these from the book’s website.

• To troubleshoot them, attach switches to input pins and probes to output pins.

Multisim Troubleshooting