Vous êtes sur la page 1sur 52

Chapter 9 MSI Logic Circuits

Some of digital system operations: decoding/encoding; multiplexing; demultiplexing; comparison; code converting; data busing. We will study some ICs in MSI(mediumscale-integration) category which can provide such operations.

U of S

EE 232

Ch9-1

9-1 Decoders
A decoder accepts a set of inputs that represents a binary number and activates only the output that corresponds to that input number.

Fig 9-1 General decoder diagram

U of S

EE 232

Ch9-2

Fig 9-2 3-line-to-8-line (or 1-of-8) decoder


U of S EE 232 Ch9-3

9-1 Decoders cont.


Some decoders have one or more ENABLE inputs used to control the operation of the decoder.
Fig 9-3 (a) Logic diagram for the 74ALS138 decoder; (b) truth table; (c) logic symbol

U of S

EE 232

Ch9-4

FIG 9-4 Four 74AS138s forming a 1-of-32 decoder


U of S EE 232 Ch9-5

9-1 Decoders cont.

Fig 9-5 Logic diagram for the 7442 BCD-to-decimal decoder;


U of S EE 232 Ch9-6

9-1 Decoders cont.

Fig 9-6 Ex. 9-3: counter/decoder combination used to provide timing and sequencing operations.
U of S EE 232 Ch9-7

9-2 BCD-TO-7-Segment Decoder/Drivers

Fig 9-7 (a) 7- segment arrangement; (b) active segments for each digit

U of S

EE 232

Ch9-8

Fig 9-8 (a) BCD-to-7-segment decoder/driver driving a commonanode 7-segment LED display; (b) segment patterns for all possible input codes.
U of S EE 232 Ch9-9

9-3 Liquid-Crystal Displays

Fig 9-9 Liquid-crystal display: (a) basic arrangement; (b) applying a voltage between the segment and the backplane turns ON the segment. Zero voltage turns the segment OFF.

U of S

EE 232

Ch9-10

Fig 9-10 (a) Method for driving an LCD segment; (b) driving a 7-segment display.
U of S EE 232 Ch9-11

9-4 Encoder
Fig 9-12 General encoder diagram.

U of S

EE 232

Ch9-12

Fig 9-13 Logic circuit for an octal-to-binary (8-line-to-3line) encoder. For proper operation, only one input should be active at one time.

U of S

EE 232

Ch9-13

9-4 Encoder cont.


A priority encoder includes the necessary logic to ensure that when two or more inputs are activated, the output code will correspond to the highest-numbered input.

Fig 9-14 74147 decimal-to-BCD priority encoder.

U of S

EE 232

Ch9-14

9-4 Encoder cont.Switch Encoder

Fig 9-15 Decimal-to-BCD switch encoder.


U of S EE 232 Ch9-15

FIG 9-16 Circuit for keyboard entry of three-digit number into storage registers.
U of S EE 232 Ch9-16

9-5 Troubleshooting
Observation/analysis is used to narrow the location of the fault to a small area of the circuits. Divide-and-conquer is used to identify the location of the problem after observation/analysis has generated a number of possibilities.
Example 9-7 A technician tests the circuit of Figure 9-4 by using a set of switches to apply the input code at A4 through A0. She observes that all of the odd-numbered outputs respond correctly, but all of the even-numbered outputs fail to respond when their code is applied.
U of S EE 232 Ch9-17

Fig 9-4 Four 74AS138s forming a 1-of32 decoder.

9-5 Troubleshooting cont.


Solution: The most probable faults would be those that prevent A0 from going LOW. These include: 1. 2. A fault switch connected to A0 A break in the path between the switch and the A0 line An external short from the A0 line to VCC An internal short to VCC at the A0 inputs of any one of the decoder chips

Fig 9-17 Troubleshooting circuitry in Example 9-7.

3. 4.

The left hand circuit is used to identify the cause.


U of S EE 232 Ch9-18

9-6 Multiplexers (Data Selectors)

Fig 9-18 Functional diagram of a digital multiplexer (MUX).

U of S

EE 232

Ch9-19

FIG 9-19 Two-input multiplexer.

U of S

EE 232

Ch9-20

9-6 Multiplexers cont.

Fig 9-20 Four-input multiplexer


U of S EE 232 Ch9-21

Fig 9-21 (a) Logic diagram for the 74ALS151 multiplexer; (b) truth table; (c) logic symbol
U of S EE 232 Ch9-22

9-6 Multiplexers cont.


Fig 9-22 Ex. 9-9; two 74HC151s combined to form a 16input multiplexer.

U of S

EE 232

Ch9-23

FIG 9-23 (a) Logic diagram for the 74ALS157 multiplexer; (b) logic symbol; (c) truth table
U of S EE 232 Ch9-24

9-7 Multiplexer Applications

Fig 9-24 System for displaying two multidigit BCD counters one at a time.

U of S

EE 232

Ch9-25

9-7 Multiplexer Applications cont.


Parallel-to-Serial Conversion:

Fig 9-25 (a) Parallel-toserial converter; (b) waveforms for X7X6X5X4X3X2X1X0 = 10110101.

U of S

EE 232

Ch9-26

9-7 Multiplexer Applications cont.


Operation Sequencing:
Fig 9-26 Seven-step control sequencer.

U of S

EE 232

Ch9-27

9-7 Multiplexer Applications cont.


Logical Function Generation:
Fig 9-27 Multiplexer used to implement a logic function described by the truth table.

U of S

EE 232

Ch9-28

9-8 Demultiplexers (Data Distributors)


A DEMUX takes a single input and distributes it over several outputs.

U of S

EE 232

Ch9-29

9-8 Demultiplexers (Data Distributors) cont.

Fig 9-29 1-line-to-8line demultiplexer.

U of S

EE 232

Ch9-30

9-8 Demultiplexers (Data Distributors) cont.


Fig 9-30 (a) The 74ALS138 decoder can function as a demultiplexer with E1 used as the data input. (b) Typical waveforms for a select code of A2 A 1 A 0 = 000 show that O0 is identical to the data input I on E1.

U of S

EE 232

Ch9-31

FIG 9-31 A clock demultiplexer transmits the clock signal to a destination determined by the select code inputs.
U of S EE 232 Ch9-32

9-8 Demultiplexers (Data Distributors) cont.


Fig 9-32 Security monitoring system.

U of S

EE 232

Ch9-33

9-8 Demultiplexers (Data Distributors) cont.


Fig 9-33 Synchronous data transmission system that is used to serially transmit four four-bit data words from a transmitter to a remote receiver.

U of S

EE 232

Ch9-34

9-8 Demultiplexers (Data Distributors) cont.

Fig 9-34 Waveforms during one complete transmission cycle.

U of S

EE 232

Ch9-35

9-9 More Troubleshooting


Example 9-14 Suppose that the synchronous data transmission system of Figure 9-33 is malfunctioning as follows: the Z waveform is correct, but the O0 waveform is identical to the Z waveform at all times while the other outputs are constantly LOW. Assume that the receiver circuit is soldered on a PC board with no IC sockets. Solution: Observation/analysis should be used to determine the possible causes. Divide-and-conquer should be used to isolate the problem. The most obvious cause appears to be that S and S of the DEMUX are always LOW as data are transmitted. Assuming that this is true, there are many possible causes for this symptom. Lets list them: 1. 2. 3. 4. 5. 6. 7. S0 of the MUX or Q0 of the word counter could be shorted to ground, preventing the counter from incrementing. The word counter could be defective(shorted or open CLK line, MR shorted to ground, or internal faults). The bit counter could be defective(shorted or open CLK line or Q1, MR shorted to ground, or internal faults). The INVERTER or the AND gate could be defective (shorted or open outputs or inputs, or internal faults). FF Y could be defective (D, CLR, or Y shorted to ground, or internal faults). The one-short could be defective . The transmitted clock line may be open between the transmitter and the receiver. U of S EE 232 Ch9-36

9-9 More Troubleshooting cont.


Fig 9-35 Example 9-14: a troubleshooting tree diagram.

U of S

EE 232

Ch9-37

9-10 Magnitude Comparators


Fig 9-36 Logic symbol and truth table for a 74HC85 (7485, 74LS85) four-bit magnitude comparator.

U of S

EE 232

Ch9-38

9-10 Magnitude Comparators cont.


Fig 9-37 (a) 74HC85 wired as a four-bit comparator; (b) two 74HC85s cascaded to perform an eightbit comparison.

U of S

EE 232

Ch9-39

9-10 Magnitude Comparators cont.


Fig 9-38 Magnitude comparator used in a digital thermostat.

U of S

EE 232

Ch9-40

9-11 Code Converters


A code converter is a logic circuit that changes data presented in one type of binary code to another type of binary code.
Fig 9-39 Basic idea of a two-digit BCD-to-binary converter.

U of S

EE 232

Ch9-41

9-11 Code Converters

Fig 9-40 BCD-tobinary converter implemented with 74HC83 four-bit parallel adders.

U of S

EE 232

Ch9-42

9-12 Data Busing


Fig 9-41 Three different devices can transmit eight-bit data over an eight-line data bus to a microprocessor; only one device at a time is enabled so that bus contention is avoided.

U of S

EE 232

Ch9-43

9-13 The 74LS173/HC173 Tristate Register


Fig 9-42 Truth table and logic diagram for the 74ALS173 tristate register.

U of S

EE 232

Ch9-44

9-13 The 74LS173/HC173 Tristate Register


Fig 9-43 Logic symbol for the 74ALS173/HC173 IC.

U of S

EE 232

Ch9-45

9-14 Data Bus Operation


Fig 9-44 Tristate registers connected to a data bus.

U of S

EE 232

Ch9-46

9-14 Data Bus Operation cont.


Fig 9-45 Signal activity during the transfer of the data 1011 from register A to register C.

U of S

EE 232

Ch9-47

9-14 Data Bus Operation cont.


Fig 9-46 Simplified way to show signal activity on data bus lines.

U of S

EE 232

Ch9-48

9-14 Data Bus Operation cont.


Simplified Bus Representation Fig 9-47 A 74HC541 octal bus driver connects the outputs of an analog-to-digital converter (ADC) to an eight-line data bus. The D0 output connects directly to the bus showing the capacitive effects.

U of S

EE 232

Ch9-49

9-14 Data Bus Operation cont.

Fig 9-48 Simplified representation of bus arrangement.

U of S

EE 232

Ch9-50

9-14 Data Bus Operation cont.


Fig 9-49 Bundle method for simplified representation of data bus connections. The /8 denotes an eight-line data bus.

U of S

EE 232

Ch9-51

9-14 Data Bus Operation cont.


Fig 9-50 Bidirectional register connected to data bus.

U of S

EE 232

Ch9-52

Vous aimerez peut-être aussi