chapter 20 digital circuits © goodheart-willcox co., inc.permission granted to reproduce for...
TRANSCRIPT
Chapter 20
Digital Circuits
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Objectives
• Explain the difference between analog and digital systems.
• Convert decimal numbers to their binary equivalents and binary numbers to their decimal equivalents.
• Name seven types of logic gates.
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Objectives
• Explain the operation of various types of logic gates.
• Use truth tables to determine the output of a logic gate.
• Discuss two types of logic families.
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Objectives
• Explain the digital encoders and decoders.
• Explain analog-to-digital and digital-to-analog devices.
• List three types of flip-flops and explain their truth tables.
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
ICs
• Include transistors, diodes, resistors, and capacitors
• Major advantage is size• Linear circuits
– Used as amplifiers and have variable outputs
• Digital circuits– Used as switches and work in the on or off
state
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Digital Fundamentals
• Binary numbering system
• Voltage logic levels
• Bits, nibbles, and bytes
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Digital Advantages
• Inexpensive, compared to analog systems
• Easier information storage
• Speed is greater than in analog systems
• Compatibility with computers
• Less effect from temperature changes
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Digital Characteristics
• Capable of replacing analog systems
• Cannot be distinguished from analog systems in most cases
• Information is handled using switching circuits
• Combination of logic gate and flip-flop circuits
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Binary Numbering System
• Digital circuits act in on or off states
• Comparable to a single-pole single-throw (SPST) switch– Switch in “on” position
represents a 1
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Basic Counting Rules
• Digits must be recorded one after the other for each counting unit
• When count exceeds total number of available digits, a second column begins
• Decimal system’s first column ends at 9, and second column begins at 10
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Binary System
• 2 is comparable to decimal system’s 10
• 2 moves to second column, becomes a 0 or 1
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Decimal to Binary Conversion Table
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Binary Numbers
• Count binary numbers on your fingers
• Number the fingers on your left hand as shown
• Fingers pointing up are 1s, fingers folded down are 0s
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Large Binary Numbers and Addition
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Voltage Logic Levels in Digital Circuits
• Type of logic circuitry or family affects operating voltages needed in a circuit
• Valid logic high range
• Valid logic low range
• Invalid value range, or intermediate range
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Bits, Nibbles, and Bytes
• Bit comes from joining binary and digit
• Bit is smallest unit of information
• Computer memory– Kilobytes– Megabytes– Gigabytes
• Computer storage abilities are growing
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
What is the primary difference between the decimal numbering system and the binary numbering system?
The decimal system has numbers 0–9, and the binary system has 0 and 1
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
What is the smallest unit of information in binary code?
A bit
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Logic Gates
• AND gates
• OR gates
• NOT gates
• NAND gates
• NOR gates
• XOR gates
• XNOR gates
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
AND Gates
• Accepts high and low inputs (1 and 0)
• High and low outputs• Output of 1 if all
inputs are 1• If only one gate is on,
circuit will not work• Truth tables
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
AND Gates (Cont.)
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
AND Gates (Cont.)
• Valid logic highs and lows
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
OR Gates
• Output signal of 1 if either or both inputs is 1
• When all inputs are 0, output is 0
• Acts similar to two switches in parallel
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
OR Gates (Cont.)
• Valid logic highs and lows
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
NOT Gates
• Used to invert polarity of input signal– Also called inverters
• If input is 1, output is 0• If input is 0, output is 1
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
NOT Gates (Cont.)
• Valid logic highs and lows
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
NAND Gates
• Made of an AND gate and a NOT gate
• Reverse of AND application
• Also called NOT AND gates
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
NAND Gates (Cont.)
• Valid logic highs and lows
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
NOR Gates
• Opposite of OR gate• Made of OR and NOT
gates• Used to test for any
kind of input• No input will have
output of 1
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
NOR Gates (Cont.)
• Valid logic highs and lows
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
XOR Gates
• Also called exclusive OR gates
• Provide high output if any, but not all, inputs are logic high
• Provide low output if all inputs are logic high
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
XOR Gates (Cont.)
• Valid logic highs and lows
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
XNOR Gates
• Also called exclusive NOR gates
• XOR gate with inverted output
• High output only when all inputs are logic high or logic low
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
Which gate has an output signal of 1 if either or both inputs is 1?
OR gate
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
Which gate provides high output if any, but not all, inputs are logic high, but provides a low output if all inputs are logic high?
XOR gate
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
Which gate is made of an AND and a NOT gate?
NAND gate
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
Which gate has an inverted output so it has a high output only when all inputs are logic high or logic low?
XNOR
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Logic Families
• Traits of one logic family must match traits of another family when many digital ICs are used in one device
• Complementary metal-oxide semiconductor logic (CMOS)
• Transistor-transistor logic (TTL)
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
CMOS Logic
• Circuits have good resistance to noise
• Use FETs
• Require small amounts of power
• Can be damaged by static electricity
• Worker and work surface must be grounded through high-resistance resistor
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
TTL
• Circuits work quickly
• Function from 20 megahertz to 60 megahertz
• Faster than CMOS ICs
• Require high power dissipation and high current
• Many gates can be placed in one TTL IC
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
If many digital circuits are used in one device, how should logic families be treated?
Traits of one logic family must match traits of another family
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
Which of the two types of logic families can be easily damaged by static electricity?
CMOS
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Digital Applications
• Logic probes
• Digital encoders and decoders
• Digitized analog signals
• Flip-flops
• Counters
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Logic Probes
• Indicate a high or low signal using LEDs
• Connect to power supply of circuit being tested
• Equipped with a slide switch to select the logic family
• If both LEDs light, there is an invalid logic level voltage
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Digital Encoders and Decoders
• Electronic systems translate binary system into decimal system
• Analog-to-digital converters can change analog numbers to a digital number equivalent– Digital multimeter as example
• Can convert electrical pulses into binary numbers
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Digitized Analog Signals
• Digital signals representing sound waves or linear voltage
• Analog-to-digital encoders are used
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Flip-Flops
• Set-reset (R-S) flip-flops
• J-K flip-flops
• D flip-flops
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
R-S Flip-Flops
• When S is high, Q is high• Output represents last input setting if both inputs are low• Outputs are complementary• Clocked R-S flip-flops
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
J-K Flip-Flops
• Clock driven• Retain output status
when two inputs are low
• When both inputs are high, outputs toggle on and off
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
D Flip-Flops
• Do not require two inputs
• Q outputs toggle when input signal is received if clock signal is applied
• Output state of Q will not change without clock signal
• Output Qs are always complementary
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Counters
• Can carry and borrow• Fabricated from individual flip-flops• Available as integrated chips
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Decade Counters
• Can count based on ten• Can be used to divide by ten• Used as frequency dividers for oscilloscopes or
in digital clocks
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Computerized Tomography (CT)
• Uses photomultiplier tubes, computer scans, and X-rays to produce digitized images of the body
• Photocathodes
• Dynodes
• Anode grid
• Gantry
• Contrast agent
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
How can binary numbers be translated into the decimal system?
Digital decoders
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
What is a flip-flop?
A semiconductor device that can assume one of two stable states
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
What kind of flip-flop does not require two inputs?
D flip-flop
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
Review
What does it mean if two outputs are complementary?
When one output is high, the other is low
© Goodheart-Willcox Co., Inc. Permission granted to reproduce for educational use only.
For Discussion
• Give examples of advantages integrated circuits have over transistors.
• What are the differences among the logic gates?
• Give examples of possible advances that will be made in the computer field in the next 25 years, based on what you have learned in this chapter.