Professional Documents
Culture Documents
Presentation on
DECODER
----------------------GROUP-02--------------------------
COMPUTER SCIENCE AND ENGINEERING
1ST YEAR,2ND SEMESTER
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
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
Truth table of 2 to 4 decoder :
8
Y0=A̅B̅
Y1=A̅ B
Y2=AB̅
Y3 = AB
Y0=X̅Y̅
Y1=X̅ Y
Y2=XY̅
Y3 = XY
The logic gate draws according to the equation.
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
:
D1= A̅0A̅1A2
D2= A̅0A1A̅2
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