You are on page 1of 18

Digital Electronics

Electronics Technology

Landon Johnson

Encoding, Decoding, and


Seven-Segment Displays
Encoder/Decoder Competencies

52. Given four different input combinations to a 10 line to 4 line


encoder, the student will state the output combinations with
100% accuracy.

53. Given four different input combinations for a 4 line to 10


line decoder, the student will state the output combinations
with 100% accuracy.
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.
ENCODERS AND DECODERS
A 0 O 0 A 0 O 0
A 1 O 1 A 1 O 1
A 2 O 2 A 2 O 2
A 3 ENCODER DECODER O 3
A 4 O 4
A 5
O 5
A 6 O 6
A 7 O 7

ONLY ONE INPUT BINARY CODE INPUT


ACTIVATED AT A TIME ONLY ONE OUTPUT
BINARY CODE OUTPUT ACTIVATED AT A TIME
THE 8421 BCD CODE
• BCD stands for Binary-Coded Decimal.

• A BCD number is a four-bit binary group that


represents one of the ten decimal digits 0 through 9.

Example:
Decimal number 4926 4 9 2 6

8421 BCD coded number 0100 1001 0010 0110


ELECTRONIC ENCODER -
DECIMAL TO BCD
BCD output
Decimal input
00
1011
0
7
Decimal
5 to
BCD
3 Encoder
0

• Encoders are available in IC form.


• This encoder translates from decimal
input to BCD output.
10 line to 4 line Encoder
10 line to 4 line Encoder
DECIMAL BINARY (BCD)
8 4 2 1
ENCODER
9 5V
8 5V 74147
I9
7 5V I8
6 5V I7 A3
I6 A2
5 5V I5 A1
I4 A0
4 5V I3
I2
3 5V I1
2 5V
1 5V
4 line to 10 line Decoder
DECIMAL
9
8
DECODER 7
74LS42
BINARY (BCD) 9 6
8
7 5
6
5
8 0V 4 4
A3 3
4 0V A2 2
2 0V
A1
A0
1
0
3
1 0V 2
1
0
DECODERS: BCD TO
7-SEGMENT DECODER/DRIVER
BCD input Decimal output
LED
01
0010
1
BCD-to-
7-Segment
Decoder/
Driver

• Electronic decoders are available in IC form.


• This decoder translates from BCD to decimal.
• Decimals are shown on an 7-segment LED display.
• This IC also drives the 7-segment LED display.
TEST
Q #5-
#1- What is the decimal output from the decoder that
#2-
#3-
#4-
appears on the 7-segment display?
Answer: 6
3
0
9
7

BCD input
Decimal output
010 100 010 011
0
BCD-to-
7-Segment
Decoder/
Driver ?
BCD-TO-SEVEN SEGMENT DECODER DRIVER
V+

abcdef g .
74LS47
A3 g
A2 f
A1 e
A0 d
c
b
a
5V
test
RBI RBO
TEST

A 0 O 0
A 1 O 1
A 2 O 2
A 3 ENCODER O 3
A 4
A 5
A 6
A 7
A 8
A 9
TEST

A 0 O 0
A 1 O 1
A 2 O 2
A 3 DECODER O 3
O 4
O 5
O 6
O 7
O 8
O 9
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.

You might also like