Escolar Documentos
Profissional Documentos
Cultura Documentos
CIRCUITS
CHAPTER 4
MSI LOGIC CIRCUITS
Decoder
Decoder is a logic circuit that activates
an output that corresponds to a binary
number on the input.
• ENABLE inputs
• The 74ALS138 decoder
• BCD to decimal decoders (the 7442)
• BCD to decimal decoder/driver (the 7445)
• Decoder applications
Decoder
General decoder diagram:
Decoders
General decoder structure
Typically n inputs, 2n outputs
• 2-to-4, 3-to-8, 4-to-16, etc
Control inputs (called select
S) represent Binary index of
output to which the input is
connected
Data input usually called
"enable" (G)
Decoder
Truth table:
Decoder
Figure 1:
3 to 8 decoder
Decoder
3 to 8
decoder
with enable
circuit.
Decoder
3 to 8 line
decoder
with
enable
circuit
truth table.
Decoder
3 to 8
line
decoder
with
enable
circuit
logic
symbol.
BCD-to-7segment decoder
The 7 segment display is a common way
to display decimal or hexadecimal
characters.
BCD to 7 segment decoder/driver
Common-anode versus common-
cathode LED displays
7446/47 activate specific segment
patterns in response to input codes
BCD-to-7segment decoder
(a) 7-segment arrangement; (b) active
segments for each digit.
BCD-to-7segment decoder
BCD-to-7
segment
decoder/driver
driving a
common-anode
7-segment LED
display;
Segment
patterns for all
possible input
codes.
Liquid Crystal Displays (LCD)
How LCD and LED displays differ.
LCD operation
Driving an LCD
Types of LCDs
I0 0
2:1
Y
I1 1
mux
Y = S' I0 + S I1
I0 0
I1
4:1
I2 mux
Y
Y = S1' S0' I0 + S1' S0 I1 + S1 S0' I2 + S1 S0 I3
I3 3
S1 S0
S1 S0
I0 0
I1 Y = S2' S1' S0' I0 + S2' S1' S0 I1 + S2' S1 S0' I2
I2 + S2' S1 S0 I3 +S2 S1' S0' I4 + S2 S1' S0 I5
I3
I4
8:1 + S2 S1 S0' I6 + S2 S1 S0 I7
mux Y
I5
I6
I7 7
S2 S1 S0
S2 S1 S0
Multiplexer
The basic two input multiplexer
Multiplexer
Figure in previous slide shows the logic
circuit for a two-input multiplexer with
data inputs I0 and I1 and SELECT input
S.
The Boolean expression:
When S = 0; Z = I •1 + I •0 = I
0 1 0
A B
C
I6 0
B C A I7 1 S