0% found this document useful (0 votes)
2 views18 pages

Encoders Decoders

The document explains the functions of encoders and decoders in digital circuits, highlighting that encoders convert activated inputs into a binary output code, while decoders convert binary input codes into a single active output. It also covers the 8421 BCD code, which represents decimal digits in binary form, and provides examples of encoder and decoder implementations, including their applications in computer operations and memory addressing. Additionally, it discusses the use of decoders for driving 7-segment displays.

Uploaded by

chopraryan2522
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views18 pages

Encoders Decoders

The document explains the functions of encoders and decoders in digital circuits, highlighting that encoders convert activated inputs into a binary output code, while decoders convert binary input codes into a single active output. It also covers the 8421 BCD code, which represents decimal digits in binary form, and provides examples of encoder and decoder implementations, including their applications in computer operations and memory addressing. Additionally, it discusses the use of decoders for driving 7-segment displays.

Uploaded by

chopraryan2522
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 18

Encoder and Decoder

Introduction
• ENCODER- a digital circuit that produces a binary
output code depending on which of its inputs are
activated.
• An encoder is a multiplexer without its single
output line.

• It is a combinational logic function that has 2n (or


fewer) input lines and n output lines, which
correspond to n selection lines in a multiplexer.

• The n output lines generate the binary code for the


possible 2n input lines

DECODER-
converts an input binary code into a single numeric
output.
DECODER
•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 the input number.
•In other words, a 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

3
ENCODERS AND DECODERS
A0 O0 A0 O0
A1 O1 A1 O1
A2 O2 A2 O2
A3 ENCODER DECODER O3
A4 O4
A5 O5
A6 O6
A7 O7

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
Uses for Decoders
• Binary number might serve to select some
operation
– Computer operation codes are encoded
• Decoder lines might select add operation, or subtract
operation, or multiply operation, etc.
• Memory address lines

9
Decoders
• Typically n inputs and 2n outputs
• The output line corresponding to the input code
is high

1-to-2 Line
Decoder

10
Decoder Examples
• 2-to-4-Line Decoder

A0
A1 A0 D0 D1 D2 D3
A1
0 0 1 0 0 0 D0 = A 1 A0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1 D1 = A 1 A0

(a)
D2 = A 1 A0
 Note that the 2-4-line
made up of 2 1-to-2- D3 = A 1 A0
line decoders and 4 AND gates.
11 (b)
2-to-4 Decoder with Enable

1-to-4-Line Demultiplexer

12
Truth Table, 3-to-8 Decoder

• Notice the outputs are minterms

13
3-to-8 Decoder
address

data
PJF - 14
Jun 18,
Implementation of Boolean
function using decoder

15
16
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.

You might also like