0% found this document useful (0 votes)
7 views13 pages

Decoder and Encoder

The document explains the functions of encoders and decoders in digital electronics, highlighting that encoders convert 2^N input lines into N-bit code and decoders perform the reverse operation. It details the structure and limitations of encoders, such as the requirement for only one active input at a time, and presents examples like the octal-to-binary encoder. Additionally, it describes the operation of decoders, including a specific example of a 2 to 4 decoder with its truth table and output behavior.

Uploaded by

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

Decoder and Encoder

The document explains the functions of encoders and decoders in digital electronics, highlighting that encoders convert 2^N input lines into N-bit code and decoders perform the reverse operation. It details the structure and limitations of encoders, such as the requirement for only one active input at a time, and presents examples like the octal-to-binary encoder. Additionally, it describes the operation of decoders, including a specific example of a 2 to 4 decoder with its truth table and output behavior.

Uploaded by

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

DECODER AND

ENCODER
MALINI SOMAN

ASSISTANT PROFESSOR

SGTU
• Binary code of N digits can be used to store 2N distinct elements of coded information.
This is what encoders and decoders are used for.

• Encoders convert 2N lines of input into a code of N bits and Decoders decode the N
bits into 2N lines.

• Encoders – An encoder is a combinational circuit that converts binary information in


the form of a 2N input lines into N output lines, which represent N bit code for the input.
• For simple encoders, it is assumed that only one input line is active at a time.
• As an example, let’s consider Octal to Binary encoder. As shown in the following
figure, an octal-to-binary encoder takes 8 input lines and generates 3 output lines.
TRUTH TABLE
X = D4 + D5 + D6 + D7
Y X= =D2D4+D3
+ D5 + D6
+ D6 + D7+ D7
Z Y= =D1D2+ +D3
D3 ++ D5
D6 ++ D7
D7
Z = D1 + D3 + D5 + D7

• As seen from the truth table, the output is 000 when D0 is active; 001
when D1 is active; 010 when D2 is active and so on.
• Implementation
• From the truth table, the output line Z is active when the input octal
digit is 1, 3, 5 or 7. Similarly, Y is 1 when input octal digit is 2, 3, 6 or 7
and X is 1 for input octal digits 4, 5, 6 or 7. Hence, the Boolean
functions would be:
HENCE, THE ENCODER CAN BE REALISED
WITH OR GATES AS FOLLOWS:

One limitation of this encoder is that only one input can be active at
any given time
DECODERS

• A decoder does the opposite job of an encoder. It is a combinational


circuit that converts n lines of input into 2 n lines of output

• A #decoder in digital electronics is a combinational circuit that has n


inputs and 2 to the power of n outputs.
• The output of the decoder is a maximum of 2^n unique output lines.
• The binary information from n input lines is converted to a maximum of
2^n unique output lines in the decoder.
• The operation of decoder is reverse to that of encoder.
TYPES OF DECODERS:
• 2 to 4 decoder
• The 2 to 4 decoder has 2 input and 4 output lines.
• Let the inputs be A1 and A0 and the outputs be Y3, Y2, Y1, Y0. The
following is the block diagram of 2 to 4 decoder
• When the enable pin is set i.e., when E=1, for each input combination
given at input lines one of the outputs will be high.
• The following is the truth table of 2 to 4 decoder
• D0 is high when X = 0, Y = 0 and Z = 0. Hence

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy