DECODER AND ENCODER
DECODER
• Is a Combinational logic circuit
• It has N inputs and M outputs.
• There are 2N possible input combinations, but only one
output will be HIGH (active) and all other output are
LOW.
• Some time Decoder can have one or more ENABLE (E)
inputs to control the operation of decoder.
BLOCK DIAGRAM
COMMON TYPES OF DECODER
i. 2 to 4 Decoder
ii. 3 to 8 Decoder
iii. 4 to 16 Decoder
iv. 5 to 32 Decoder and
v. 6 to 64 Decoder
2 to 4 Decoder
• A and B are inputs ( No of inputs =2)
• Possible input combination = 2 2
= 4 (D0, D1, D2,
and D3 )
i. Truth Table
ii. Boolean expression
iii. Logic diagram
3 to 8 Decoder
• A , B and C are inputs ( No of inputs =3)
• Possible input combination = 23 = 8 (D0, D1, D2, ….. D7 )
i. Truth Table
ii. Boolean expression
iii. Logic diagram
Expansion of DECODER
• A process of designing/construction a Larger Decoder by
using Small decoders, i.e 3 x 8 by using 2X 4 or 4X 16 by
using 2X 4
• The number of LOWER order Decoder for implementing
HIGH order Decoder can be find as
• m1 number of o/p for Lower order where m2 numbers of
o/p for Higher order
Decoder Implementation
• 1. Implement the following multiple output functions using
suitable Decoder
ENCODER
• Is a combinational circuit.
• It performs the inverse operation of Decoder.
• The opposite process of Decoding is Encoding
• It converts an active input signal into coded output signal.
• It has M inputs and N outputs.
• It has only one activated inputs at a given time and produces
output code, depending to which input is activated.
• Decoder has Binary code as an input while Encoder has
Binary code as an output.
• Encoder converts analogy signal to digital signal.
ENCODER AND DECORDER OPERATION
TYPES
i. Priority Encoder
ii. Decimal to BCD Encoder
iii. Octal to Binary and
iv. Hexadecimal to Binary Encoder
PRIORITY
DECIMAL TO BCD
Logical Diagram
OCTAL TO BINARY ENCODER
• It has eight inputs and three o/p
• Only one input has one value at any given time.
• Each input corresponds to each octal digit and output
generates corresponding Binary code.
• Truth table
• Boolean expression
• Logical Diagram
• Only one O/P is HIGH at any given time
• If 2 o/p are HIGH then it is undefined o/p