BENM 1143 LOGIC 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 commoncathode 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 Active matrix TFT LCDs
Liquid Crystal Displays (LCD)
Liquid-crystal display: Basic arrangement; Applying a voltage between the segment and the backplane turns ON the segment. Zero voltage turns the segment OFF.
Encoder a)
b)
Method for driving an LCD segment; Driving a 7segment display.
Encoder The
general encoder diagram.
Encoder
Logic circuit for an octal-to-binary (8-line-to-3-line) encoder. For proper operation, only one input should be active at one time.
Multiplexer Definition
• A multiplexer (MUX) selects one of multiple input signals and passes it to the output.
Multiplexer Functional
diagram:
Multiplexer
Acts like a digitally controlled multiposition switch. Digital code applied to the SELECT input controls. Data inputs will be switched to the output. A multiplexer selects 1 out of N input data sources and transmits the selected data to a single output channel. This is called MULTIPLEXING.
Multiplexers/Selectors I0
0
I1
1
2:1 mux
Y
Y = S' I0
+ S I1
S I0 I1 I2 I3
0
4:1 mux 3
S1
S0
S1 I0 I1 I2 I3
S0
0
8:1 mux
I4 I5 I6 I7
Y = S1' S0' I0 + S1' S0 I1 + S1 S0' I2 + S1 S0 I3
Y
7 S2
S2
S1
S1
Y
S0
S0
Y = S2' S1' S0' I0 + S2' S1' S0 I1 + S2' S1 S0' I2 + S2' S1 S0 I3 +S2 S1' S0' I4 + S2 S1' S0 I5 + S2 S1 S0' I6 + S2 S1 S0 I7
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 When
S = 1; Z = I0•0 + I1•1 = I1
Multiplexer The
four input multiplexer
Multiplexer Four
inputs are selectively transmitted to the output according to the four possible combinations of S1S0 select inputs. Example:
•I
is gated with so that I0 will pass through its AND gate to output Z only when S1=0 and S0=0. The table gives the outputs for the other three (3) outputs. 0
•
Multiplexer The
logic diagram:
Multiplexer Summary
of the operation:
Multiplexer/Select or: Expansion Control signals B and C simultaneously choose one of I0-I3 and I4-I7 Control signal A chooses which of the upper or lower MUX's output to gate to Y I0 I1 I2 I3 I4 I5 I6 I7
0 4:1 1 mux 2 3S S 1
0
0 4:1 1 mux 2 3 S1 S0
8:1 mux 0 2:1 mux 1 S
Y
I0
0
I1
1 S C
I2
0
I3
1 S
0
C
2
I4
0
I5
1 S C
B
C
A
Alternative 8:1 Mux Implementation
I6
0
I7
1 S C
1
Y
3 S0 S1 A
B
Multiplexer: Implementing logic functions
1 0 1 0 0 0 1 1
Example: F(A,B,C) = m0 + m2 + m6 + m7 = A' B' C' + A' B C' + A B C' + A B C = A' B' (C') + A' B (C') + A B' (0) + A B A B C F 0(1) 0 0 0 1 C 1 2 0 0 1 0 F 8:1 3 0 1 0 1 C MUX 4 0 1 1 0 5 1 0 0 0 6 0 1 0 1 0 7 S2 S1 S0 1 1 0 1 1 A B C 1 1 1 1 "Lookup Table"
C C 0 1
0 1 2 3
4:1 MUX S1
S0
A
B
F
Demultiplexer
Definition:
•
A demultiplexer (DEMUX) distributes a single input to multiple outputs.
General diagram:
Demultiplexer
Truth table:
Demultiplexer
1 line to 8 line demultiplexer logic diagram: