MSI Logic Circuits

41
MSI Logic Circuits Wen-Hung Liao, P h.D.

description

MSI Logic Circuits. Wen-Hung Liao, Ph.D. Objectives. Analyze and use decoders and encoders in various types of circuit applications. Compare the advantages and disadvantages of LEDs and LCDs. - PowerPoint PPT Presentation

Transcript of MSI Logic Circuits

Page 1: MSI Logic Circuits

MSI Logic Circuits

Wen-Hung Liao, Ph.D.

Page 2: MSI Logic Circuits

Objectives

Analyze and use decoders and encoders in various types of circuit applications.

Compare the advantages and disadvantages of LEDs and LCDs.

Understand the operation of multiplexers and demultiplexers by analyzing several circuit applications.

Compare two binary numbers by using the magnitude comparator circuit.

Page 3: MSI Logic Circuits

Objectives (cont’d)

Understand the function and operation of code converters.

Cite the precautions that must be considered when connecting digital circuits using the data bus concept.

Page 4: MSI Logic Circuits

Common Operations

Decoding/encoding Multiplexing De-multiplexing Comparison Code conversion Data busing

Page 5: MSI Logic Circuits

Decoder

A decoder is a logic circuit that accepts a set of inputs that represents a binary number and activates only the output that corresponds to that input number.

Decoder

A0

A1

AN-1

O0

O1

OM-1

Only one output is high for each input code.

Page 6: MSI Logic Circuits

Decoders(cont’d)

Some decoders do not utilize all of the 2^N possible input codes, e.g., BCD-to-decimal decoder has a 4-bit input code and 10 output lines.

Figure 9-2: 3-line-to-8-line decoder, or binary-to-octal converter.

ENABLE inputs (Figure 9-3), 74LS138. Combine four 74LS138s to function as a 1-of-32

decoder (Figure 9-4). 7442 BCD-to-decimal decoder (Figure 9-5).

Page 7: MSI Logic Circuits

Figure 9-2: 3-line-to-8-line Decoder

Page 8: MSI Logic Circuits

Figure 9-4: 1-of-32 Decoder

A3

(MSB) A4

A2

A1

A0

+5V

A2

A1

A0

E3

E2

E1

Q7

Q6

Q5

Q4

Q3

Q2

Q1

Q0

74ALS138A2

A1

A0

E3

E2

E1

Q7

Q6

Q5

Q4

Q3

Q2

Q1

Q0

74ALS138

A2

A1

A0

E3

E2

E1

Q7

Q6

Q5

Q4

Q3

Q2

Q1

Q0

74ALS138

A2

A1

A0

E3

E2

E1

Q7

Q6

Q5

Q4

Q3

Q2

Q1

Q0

74ALS138

Page 9: MSI Logic Circuits

Figure 9-5: BCD-to-Decimal Decoder

Page 10: MSI Logic Circuits

Decoder Applications

Figure 9-6: counter/decoder combination used to provide timing and sequencing operations.

1kHz

0/5V

7445

A3A2A1A0 Q0

Q1Q2Q3Q4Q5Q6Q7Q8Q9

74LS293MR1MR2CP0CP1

Q3Q2Q1Q0

+24V

+24V

Page 11: MSI Logic Circuits

BCD-to-7-Segment Decoder

Take a 4-bit BCD input and provide the outputs that will pass current thru the appropriate segments to display the decimal digit.

Figure 9-7 and 9-8* (TTL 7446, 7447).

Page 12: MSI Logic Circuits

7-Segment Display

Page 13: MSI Logic Circuits

LED vs. LCD Displays

A Light-Emitting-Diode (LED) display generates light energy as current is passed thru the individual segments.

A liquid-crystal display (LCD) controls the reflection of available light (such as ambient light or backlit.)

LED is generally much brighter, LCD uses very low power.

OLED: How it works.

Page 14: MSI Logic Circuits

Encoders

The opposite of the decoding process. An encoder has a number of input lines, only one of

which is activated at a given time. Octal-to-binary encoder (Figure 9-13). Priority encoder: ensures that when two or more inputs

are activated, the output code will correspond to the highest numbered input. (Figure 9-14, 74147 decimal to BCD priority encoder.)

Page 15: MSI Logic Circuits

Fig 9-14: Decimal-to-BCD Priority Encoder

74147I9I8I7I6I5I4I3I2I1

A0A1A2A3

87654321

CP1CP2

DataSeq

87654321

CP1CP2

DataSeq

A1nA2n

A3nA4n

A5nA6n

A7nA8n

A9n

O0nO1n

O2nO3n

Page 16: MSI Logic Circuits

Switch Encoder

Figure 9-15*, 74LS147. Switches corresponds to keyboards on a calculator

representing digits 0 through 9. Switches are normally open, so the encoder inputs are

normally HIGH and BCD output is 0000. When a digit key is pressed, the circuit will produce the

BCD code for that digit. Figure 9-16*: circuit for keyboard entry of three-digit

number into storage registers.

Page 17: MSI Logic Circuits
Page 18: MSI Logic Circuits

Multiplexers (Data Selectors)

A multiplexer (MUX) selects one of several input signals and passes it on to the output.

Routing of desired data input to the output is controlled by SELECT inputs.

MUX

SELECT

Page 19: MSI Logic Circuits

Basic Multiplexers

Two-input multiplexer (Figure 9.19):Z =I0S’+I1S

Four-input multiplexer (Figure 9-20) Eight-input multiplexer: 74151 (Figure 9-21). 16-input multiplexer: Figure 9-22. 74ALS157 multiplexer : Figure 9-23.

Page 20: MSI Logic Circuits

Multiplexer Applications

Data routing (Figure 9-24) Parallel-to-serial conversion (Figure 9-25). Operation sequencing (Figure 9-26). Logic function generation (Figure 9-27).

Page 21: MSI Logic Circuits

Demultiplexer (Data Distributors)

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

Page 22: MSI Logic Circuits

1-line-to-8-line Demultiplexer

Page 23: MSI Logic Circuits

Clock Demultiplexer

Route clock signal to desired destination by controlling SELECT. (Fig. 9-31*)

Page 24: MSI Logic Circuits

Security Monitoring System

Page 25: MSI Logic Circuits

Synchronous Data Transmission

Figure 9.33: Serially transmit four 4-bit data words from a transmitter to a remote receiver.

Page 26: MSI Logic Circuits

The Transmitter

A,B,C,D: re-circulating shift registers. The two MOD-4 counters control the transmissi

on of the data register contents to the multiplexer output Z.

Word counter: selects register data Bit counter: select which bit to be sent. The data are said to be time-division-multiplexed.

Page 27: MSI Logic Circuits

The Receiver

1-to-4 demultiplexer MOD-4 counters have the same function as the

ir counterparts in the transmitter.

Page 28: MSI Logic Circuits

Magnitude Comparator

Figure 9-36: 74HC85.

Page 29: MSI Logic Circuits

Truth Table

Page 30: MSI Logic Circuits

Cascading Inputs

Page 31: MSI Logic Circuits

Applications: digital thermostat

Page 32: MSI Logic Circuits

Code Converter

A code converter is a logic circuit that changes data represented in one type of binary code to another type of binary code.

BCD-to-7-segment code converter. BCD-to-binary converter.

Page 33: MSI Logic Circuits

Binary equivalents of decimal weights

Page 34: MSI Logic Circuits

Conversion Process

Compute the binary sum of the binary equivalents of all bits in the BCD representation that are 1s.

Example: Convert 01010010 (BCD) to binary.

Page 35: MSI Logic Circuits

Circuit Implementation

Page 36: MSI Logic Circuits

Data Busing

In most modern computers the transfer of data takes place over a common set of connecting lines called a data bus.

Tri-state outputs or tri-state buffers are required.

Page 37: MSI Logic Circuits
Page 38: MSI Logic Circuits

74ALS173/HC173 Tristate Register

load hold

Page 39: MSI Logic Circuits

Data Bus Operation

Register-to-register

data transfer (Figure 9-44).

Page 40: MSI Logic Circuits

Bus Signals and Signal Activities

Page 41: MSI Logic Circuits

More on Bus

Simplified timing diagram Expanding the bus Simplified representation

of bus arrangement Bidirectional Busing