Professional Documents
Culture Documents
2017
Digital Sytems
MSI Circuits
BK
TP.HCM
dce
Introduction
2017
Decoders
• Define:
- 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 circuit looks at its inputs, determines which
binary number is present there, and activates the one
output that corresponds to that number; all other
outputs remain inactive.
dce
2017
Those figures
below shows the
logic diagram for a
7442 BCD-to-
decimal decoder. It
is also available as a
74LS42 and a
74HC42.
Decoder Applications
Decoders are used whenever outputs are to be
activated with specific input levels provided by
the outputs of a counter or a register.
dce
2017
7-Segment LED
• A BCD-to-7-segment
decoder/driver is used to take a
four-bit BCD input and provide the
outputs that will pass current
through the appropriate segments
to display the decimal digit
• The logic for this decoder is more
complicated than the logic of
decoders that we have looked at
previously because each output is
activated for more than one
combination of inputs.
Common-Cathode LED
Displays
BK
TP.HCM
dce
2017
- The alphanumeric LCD module is a more complicated but readily available LCD
display.
These modules are available in numerous formats like 1-line-by-16-characters up to 4-
lines-by-40-characters.
- Other LCD modules allow the user to create a graphical display by controlling
individual dots on the screen called pixels. In these displays, the control lines are
arranged in a grid of rows and columns.
- Each pixel on a color display is actually made up of three subpixels which control the
light that passes through a red, green, or blue filter to produce the color of each pixel.
On a 640-by-480 LCD screen there would be connections for columns and 480
connections for rows, for a total of 2400 connections to the LCD
Types of LCDs
We can separate LCDs into 2 types:
Passive Matrix LCD Active Matrix LCD
Producing the
INVERTED BCD code
corresponding to the
highest order activated
inputs.
dce
2017
For example ,when input X3, X5, X7 are LOW and all
the input are HIGH, based on the truth table that when
X7 is low the level at X3, X5 dose not matter the output
will be 1000 (inverse of 0111).
dce
2017
Switch encoder
Switch Encoder is Priority Encoder.
Quad Two-Input
Basic Two-Input MUX
Multiplexer (74ALS157/HC157
)
Four-Input Eight-Input
Multiplexer Multiplexer
dce2017
Four-Input Multiplexer
• Four inputs are selectively
transmitted to the output
according to the four
possible combinations of
the S1S0 select inputs.
• Each data input is gated
with a different
combination of select
input levels.
• I0 is gated with S1S0 so
that I0 will pass through its
AND gate to output Z only
when S1 = 0 and S0 = 0.
dce
2017
Four-Input Multiplexer
Eight-Input Multiplexer
• This multiplexer has an enable input and
provides both the normal and the inverted
outputs.
• When E’= 0, the select inputs S2S1S0 will
select one data input (from I0 through I7 )
for passage to output Z.
• When E’= 1, the multiplexer is disabled so
that Z = 0 regardless of the select input
code.
dce
2017
Eight-Input Multiplexer
Eight-Input Multiplexer
Two 74HC151s
combined to form
a 16-input multiplexer.
dce
2017
Eight-Input Multiplexer
• This circuit has a total of 16 data inputs, eight applied to
each multiplexer.
• The two multiplexer outputs are combined in the OR
gate to produce a single output X.
• The four select inputs S3S2S1S0 will select one of the 16
inputs to pass through to X.
• When S3 = 0, the top multiplexer is enabled, and the
inputs S2S1S0 determine which of its data inputs will
appear at its output and pass through the OR gate to X.
• When S3 = 1, the bottom multiplexer is enabled, and the
S2S1S0 inputs select one of its data inputs for passage to
output X.
dce
2017
Quad Two-Input MUX (74ALS157/HC157)
IC
74ALS138
dce
2017
For example:
When S0S1S2=000
+ only AND gate 0 is
enabled.
+ data input I will appear
at output O0.
dce
2017
In An industrial plant:
BK
TP.HCM
dce
2017
dce
2017
dce
2017
dce
2017
dce
2017
MAGNITUDE COMPARATOR
BK
TP.HCM
dce
2017
DEFINITION
• A combination logic circuit that indicates
which of 2 binary quantity inputs is greater.
dce
2017
CASCADING INPUT
• Expand the comparison operation to
more than 4 bits
• The inputs are labeled the same as the
outputs.
• When 2 comparators are to be cascaded,
the output of the lower-order one is
connected to the input of higher-order one.
dce
2017
CASCADING INPUT
dce
2017
APPLICATION
• Useful in control applications where a
binary number represent the physical
variable.
dce
2017
_ Is 4-bit register
In this arrangement:
•Corresponding outputs of each
register are connected to the same
data bus line (e.g., O3A, O3B, and
O3C are connected to DB3).
•The three registers have their
outputs connected together.
•Only one register have its outputs
enabled and that the other two
register outputs re-main in the Hi-
Z state.
•Corresponding register inputs are
also tied to the same bus line. the
levels on the bus will always be
ready to be transferred to one or
more of the registers depending on
the IE inputs.
dce
2017 Data transfer operation:
Use only a single timing waveform to represent the complete set of bus lines.
dce
Simplified Bus Representation:
2017
Figure 9-48
Simplified representation of bus arrangement.
dce
2017
Simplified Bus Representation:
Bundle method:
Figure 9-49
Bundle method for simplified representation of data bus connections. The “/8” denotes an eight-line data bus.
dce
2017
Bidirectional Busing:
• Some devices have both inputs and outputs connected to the data bus.
Inputs and outputs are connected together internal to the chip