You are on page 1of 14

1

Presentation on
DECODER
----------------------GROUP-02--------------------------
COMPUTER SCIENCE AND ENGINEERING
1ST YEAR,2ND SEMESTER

JASHORE UNIVERSITY OF SCIENCE AND TECHNOLOGY


2
What is Decoder ?
The decoder is an electronic device that is used to convert a digital signal to an analog signal. It allows a single input
line and produces multiple output lines.

Example :

Diagram : 2 to 4 decoder
Introduction of decoder : 3

The decoder is a circuit used to change the code into a set of signals. The name its
self tells the decoder because it has the reverse of encoding. The decoders are very
simple to design.
The decoders are used in many communication projects that are used to
communicate between two devices. The decoder allows N- inputs and generates 2
power N-numbers of outputs.
Example of 2^N output decoder : 4

Input : N
Output : 2 power of N

if we give N inputs that will produce 2 power of N outputs 2


decoders.

So that if we give 2 as input that will produce 4 output by


using 2 decoder .

if we give 3 inputs that will produce 8 outputs by using 8


by 2 decoders.
5
Types of Decoders :

A 3-to-8 line decoder activates one of eight output bits for each input value from 0 to 7 — the
range of integer values that can be expressed in three bits. Similarly, a 4-to-16 line decoder
activates one of 16 outputs for each 4-bit input in the integer range [0,15].

A BCD to decimal decoder has ten output bits. It accepts an input value consisting of
a binary-coded decimal integer value and activates one specific, unique output for
every input value in the range [0,9]. All outputs are held inactive when a non-
decimal value is applied to the inputs.

A demultiplexer is a 1-of-n binary decoder that is used to route a data bit to one of its
n outputs while all other outputs remain inactive.
6
Some decoders and its diagram :

The decoders are designed with logic gates such as AND gates. There are different types of decoders like 4, 8, and 16
decoders and the truth table of decoder depends upon a particular decoder chosen by the user. The binary decoder is a
combinational logic circuit that converts the binary integer to the associated pattern of output bits.

Fig-1 : 2 to 4 decoder Fig-2 : 3 to 8 decoder Fig-3 : 4 to 16 decoder


2 to 4 decoder : 7

In the two to four decoders, the two input lines


are decoded into four output lines. Therefore,
this decoder consists of two input lines and
four output lines. From the four output lines
with only one output line will be active and
the other three output lines are maintained at
logic zero. The following diagram shows the
two input lines to four output line decoders

Fig-1 : 2 to 4 decoder
Truth table of 2 to 4 decoder :
8

From the truth table the Boolean expressions of each output :

Y0=A̅B̅

Y1=A̅ B

Y2=AB̅

Y3 = AB

Fig-1:Truth table of 2 to 4 decoder


Logic gate of 2 to 4 decoder :
9
We get Equations of 2 to 4 decoder :

Y0=X̅Y̅
Y1=X̅ Y
Y2=XY̅
Y3 = XY
The logic gate draws according to the equation.

Fig-1:Logic gate of 2 to 4 decoder


10
3 to 8 Decoder :
This type of decoder is called the 3 lines to 8 line decoder because they have 3 inputs and 8 outputs. To decode the
combination of the three and eight, we required eight logical gates, and to design this type of decoder we have to consider
that we required active high output.

The table shows the decoding of the 3 lines to 8 line


decoder. To design this type of decoder we need active
high output and for the given input combination the
decoder output is one.
truth Table of 3 to 8 decoder :
11
From the truth table of three-line inputs to eight-line outputs, we can show the logic circuit. The logic circuit
From the truth table the Boolean
consists of
expressions of each
threeoutput
NOT: gates and eight NAND gates. Enable pin of NAND gates are connected together. The
NOT gates can generate the complement
A of inputC and the
B D0NAND
D1 gates
D2can produce
D3 the max
D4 D5in terms
D6 of each
D7
output.
D0=A’B’C’ 0 0 0 1 0 0 0 0 0 0 0

D1=A’B’C 0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
D2=A’BC’
0 1 1 0 0 0 1 0 0 0 0
D3=A’BC 1 0 0 0 0 0 0 1 0 0 0

D4=AB’C’ 1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
D5=AB’C
1 1 1 0 0 0 0 0 0 0 1
D6=ABC’

D7=ABC
Logic gate 3 to 8 decoder :
12
From the truth table , the Boolean expressions of each output
:

D0= A̅0 A̅1 A̅2

D1= A̅0A̅1A2

D2= A̅0A1A̅2

D3= A̅0A1A2 According to the equation, the logic


gate of 3 to 8 decoder is drawn
D4= A0A̅1A̅2 beside.

D5= A0A̅1A2

D6= A0A1A̅2

D7= A0A1A2
Application of decoder : 13

The decoder is used as address decoders in CPU memory location identification. It is also be used in
electronic circuits to convert instruction into CPU control signals. They are mainly used in logical
circuits, data transfer.

It is used in code conversion.  i.e analog to digital conversion in the analog decoder.
It may also be used for data distribution.

They can also be used to create simple other digital logics like half adders and full adders and some
other digital design also.

The decoder is used whenever an output or a group of output is to be activated only on the occurrence of
a specific combination of input signals.

It decoding to binary input to activate the LED segments so that the decimal number can be
displayed.
14

Thank Everybody

You might also like