0% found this document useful (0 votes)
8 views24 pages

Lecture 14 Decoders and Encoders

The document provides an overview of decoders and encoders in digital logic design, starting with decoders which convert input codes into output signals. It details various types of decoders, including line decoders and 4-bit decoders, and introduces encoders that perform the reverse function by converting active inputs into coded outputs. The document includes circuit diagrams, truth tables, and practical questions for understanding the concepts.

Uploaded by

Hadia hassan
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)
8 views24 pages

Lecture 14 Decoders and Encoders

The document provides an overview of decoders and encoders in digital logic design, starting with decoders which convert input codes into output signals. It details various types of decoders, including line decoders and 4-bit decoders, and introduces encoders that perform the reverse function by converting active inputs into coded outputs. The document includes circuit diagrams, truth tables, and practical questions for understanding the concepts.

Uploaded by

Hadia hassan
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/ 24

DIGITAL LOGIC Decoders and encoders

DESIGN
DECODER
A decoder is a circuit that changes a code into a set of signals
It is called a decoder because it does the reverse of encoding, but
we will begin our study of encoders and decoders with decoders
because they are simpler to design
INTRODUCTION
A decoder is a digital circuit that detects the presence of a
specified combination of bits (code) on its inputs and indicates the
presence of that code by a specified output level
In its general form, a decoder has n input lines to handle n bits and
from one to 2n output lines to indicate the presence of one or more
n-bit combinations. In this section, three fixed function IC decoders
are introduced
The basic principles can be extended to other types of decoders
LINE DECODER
A common type of decoder is the line decoder which takes an n-
digit binary number and decodes it into 2n data lines
The simplest is the 1-to-2 line decoder
CIRCUIT FOR 1-TO-2 LINE
DECODER
2-TO-4 LINE DECODER
TRUTH TABLE
2-TO-4 LINE DECODER
CIRCUIT
A DIFFERENT APPROACH TO
IMPLEMENT DECODERS
We can use a different approach and set the initial values to 1
instead of zeros
An AND gate can be used as the basic decoding element because it
produces a HIGH output only when all of its inputs are HIGH
Therefore we must make sure that all of the inputs to the AND gate
are HIGH when the binary number 1001 occurs
This can be done by inverting the two middle bits (the 0s)
DIAGRAM
4-BIT DECODER
In order to decode all possible combinations of four bits, sixteen
decoding gates are required (24 = 16)
This type of decoder is commonly called either a 4-line-to-16-line
decoder because there are four inputs and sixteen outputs or a 1-
of-16 decoder because for any given code on the inputs, one of the
sixteen outputs is activated
DECODER USING NAND
GATE
4-BIT DECODER
PRACTICE QUESTIONS
Draw diagram for following values and also write their decoding
expressions
1. 1001
2. 1110
3. 0011
LOGIC DIAGRAM OF 4-TO-16
INLINE DECODER
LOGIC DIAGRAM
The BIN/DEC label indicates that a binary input makes the
corresponding decimal output active
The input labels 8, 4, 2, and 1 represent the binary weights of the
input bits (23 22 21 20)
DECODERS WITH ENABLE
INPUT
A standard decoder normally has an additional enable input
The output will always be zero if the enable input is zero
DECODER WITH ENABLE
INPUT CIRCUIT DIAGRAM
TRUTH TABLE
DECODER WITH ENABLE
INPUT LOGIC DIAGRAM
ENCODERS
An encoder is a combinational logic circuit that essentially performs
a “reverse” decoder function
An encoder accepts an active level on one of its inputs representing
a digit, such as a decimal or octal digit, and converts it to a coded
output, such as BCD or binary
Encoders can also be devised to encode various symbols and
alphabetic characters
The process of converting from familiar symbols or numbers to a
coded format is called encoding
DECIMAL TO BCD ENCODER
This type of encoder has ten inputs—one for each decimal digit—
and four outputs corresponding to the BCD code
This is a basic 10-line-to-4-line encoder
TRUTH TABLE FOR DECIMAL
TO BCD ENCODER
BASIC LOGIC DIAGRAM OF A
DECIMAL-TO-BCD ENCODER
Q&A

You might also like