14-Decoder Circuits-31-01-2023 PDF
14-Decoder Circuits-31-01-2023 PDF
14-Decoder Circuits-31-01-2023 PDF
• A decoder is a combinational circuit that converts binary information from n input lines
to a maximum of 2n unique output lines.
• The name decoder is also used in conjunction with other code converters such as BCD to
Seven segment decoder.
• Port-mapped I/O.
2 to 4 Decoder
• Let 2 to 4 Decoder has two inputs A1 & A0 and four outputs D3, D2, D1 & D0.
The block diagram of 2 to 4 decoder is shown in the following figure.
• One of these four outputs will be ‘1’ for each combination of inputs when enable,
E is ‘1’.
Truth table of 2 to 4 decoder :
From Truth table, we can write the Boolean functions for each output as
• Logic Circuit Diagram:
3 to 8 line decoder
• The three inputs are decoded into eight outputs, each representing one of the
minterms of the three input variables.
• A particular application of this decoder is binary to octal conversion.
Implementation of Higher order Decoders using lower order decoders
• Implementation of 3 to 8 decoder using 2 to 4 decoders:
• We know that 2 to 4 Decoder has two inputs, A1 & A0 and four outputs, D3 to D0.
Whereas, 3 to 8 Decoder has three inputs A2, A1 & A0 and eight outputs, D7 to D0.
• The number of lower order decoders required for implementing higher order decoder
can be found using the following formula.
• We know that 3 to 8 Decoder has three inputs A2, A1 & A0 and eight outputs,
D7 to D0, whereas, 4 to 16 Decoder has four inputs A3, A2, A1 & A0 and sixteen
outputs, D15 to D0.
• Here,
Application of Decoder
• A decoder provides the 2n minterms of n input variables. Each asserted output of
the decoder is associated with a unique pattern of input bits.
• Any Boolean function can be expressed in sum of minterms form, a decoder that
generates the minterms of the function, together with an external OR gate that
forms their logical sum, provides a hardware implementation of the function.
• In this way, any combinational circuit with n inputs and m outputs can be
implemented with an n – to - 2n line decoder and m OR gates.
Implementation of a Full adder with a Decoder