Encoder and Decoder
Encoder and Decoder
Zulhelman
Encoding, Decoding, and
Seven-Segment Displays
Encoder/Decoder Vocabulary
ENCODER- a digital circuit that
produces a binary output code
depending on which of its inputs are
activated.
DECODER- a digital circuit that converts
an input binary code into a single
numeric output.
A
A
ENCODER
DECODER
O
O
4
5
7
5
3
00
10
0
11
Decimal
to
BCD
Encoder
DECIMAL
8
ENCODER
9 5V
8 5V
7 5V
6 5V
5 5V
4 5V
3 5V
2 5V
1 5V
I9
I8
I7
I6
I5
I4
I3
I2
I1
74147
A3
A2
A1
A0
8 0V
4 0V
2 0V
1 0V
74LS42
A3
A2
A1
A0
7
9
8
7
6
5
4
3
2
1
0
6
5
4
3
2
1
0
DECODERS: BCD TO
7-SEGMENT DECODER/DRIVER
Decimal output
LED
BCD input
0 10 01 01
BCD-to7-Segment
Decoder/
Driver
TEST
Q #4#5- What is the decimal output from the decoder that
#1#2#3appears on the 7-segment display?
Answer: 6
3
0
9
7
BCD input
Decimal output
abcdef g .
5V
74LS47
A3
g
A2
f
A1
e
A0
d
c
b
a
test
RBI RBO
TEST
A
ENCODER
INPUT O3 O2 O1 O0
A1=1
A4=1
A6=1
A8=1
TEST
A
A
A
A
DECODER
O
O
O
O
O
O
O
O
O
O
A3
0
0
0
1
A2
0
1
1
0
A1
0
0
1
0
A0 OUTPUT
0
1
1
1
TEST
ANSWER THE FOLLOWING QUESTIONS WITH ONE OR MORE
OF THESE WORDS: MUX, DEMUX, ENCODER, DECODER.
A. Has more inputs than outputs. ENCODER, MUX
B. Uses select inputs. MUX, DEMUX
C. Can be used in parallel-to-serial conversion. MUX
D. Produces a binary code at its output. ENCODER
E. Only one of its outputs is activated at one time. DEMUX, DECODER
F. Used to route input signals to one of several outputs. MUX
G. Used to generate arbitrary logic functions. MUX, DEMUX
H. 3 line-to-8 line or binary to octal. DECODER
I. Data Selectors are also MUX.