0% found this document useful (0 votes)
84 views16 pages

13applications of Decoder

This document describes decoders and encoders. Decoders convert digital information from binary form to an alternate binary form. A decoder has n input lines and 2^n output lines, where only one output line is high based on the input combination. Decoders can be used to drive displays or generate Boolean functions. Encoders are the inverse, taking one of n inputs and encoding it onto m output lines. Priority encoders assign priority to inputs so the highest priority asserted input determines the output.
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)
84 views16 pages

13applications of Decoder

This document describes decoders and encoders. Decoders convert digital information from binary form to an alternate binary form. A decoder has n input lines and 2^n output lines, where only one output line is high based on the input combination. Decoders can be used to drive displays or generate Boolean functions. Encoders are the inverse, taking one of n inputs and encoding it onto m output lines. Priority encoders assign priority to inputs so the highest priority asserted input determines the output.
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/ 16

Decoder

• Digital information represented in some binary form must be


converted into some alternate binary form.
• to -line decoder.
• Only one of the output lines responds, with a logic-1, to a
given input combination of values on its -input lines.
Realization

Symbol

Logic Diagram

Truth Table
Decoder
• Input combinations can be regarded as binary numbers with
the consequences that the j-th output line is at logic-1 for j =
0, 1, . . , 7 only when input combination j is applied.
Other types of Decoders
• Function-specific decoders with less than outputs exist.
• Example: Decoder with 4 inputs and 10 outputs in which a
single responding output line corresponds to a combination of
the 8421 code.
• Example: Four input, seven output decoder that accepts the 4
bits of the 8421 code and is used to drive a seven-segment
display.
Logic Design Using Decoders
• An -to- line decoder is a minterm generator.
• By using or-gates in conjunction with an -to- line decoder,
realizations of Boolean functions are possible.
• Do not correspond to minimal sum-of-products.
• Are simple to produce. Particularly convenient when several
functions of the same variable have to be realized.
Minterms using OR Gates
Minterms using NOR Gates
Implementing a Decoder using NAND

Symbol

Logic Diagram

Truth Table
Minterms using AND gates

𝑓 1=∑ 𝑚 ( 0,2,6,7 ) , 𝑓 2=∑ 𝑚( 3,5,6,7)


Decoders with an Enable Input

Symbol
Logic Diagram

Truth Table
Decoders with enable inputs
• When disabled, all outputs of the decoder can either be at logic-0
or logic-1.
• Enable input provides the decoder with additional flexibility. Idea:
data is applied to the enable input.
• Process is known as demultiplexing.

𝑥0 𝑥1 𝐸

If then data appears on


line .
Data

• Enable inputs are useful when constructing larger decoders from


smaller decoders.
Constructing Larger Decoders
Encoders
• Encoders provide for the conversion of binary information from one
form to another.
• Encoders are essentially the inverse of decoders.
• -to--line encoder in which an assertive logic value on one of its -
input lines causes the corresponding binary code to appear at the
output lines.
Encoders
• Equations for 8-to-3-line encoder:

• In general, the Boolean expression for the output is the sum of each input
in which the binary representation of has a 1 in the -bit position.
Priority Encoder
• The assumption that at most a single input to the encoder is
asserted at any time is significant in its operation.
• Example: Both and are asserted. What is the output?

• Priority Encoder:
• A priority scheme is assigned to the input lines so that whenever
more than one input line is asserted at any time, the output is
determined by the input line having the highest priority.
Priority Encoder

The output is determined by the asserted input having the highest index.
has higher priority than if
“Valid” indicates that at least one input line is asserted.
This distinguishes the situation that no input line is asserted from when the
input line is asserted, since in both cases

You might also like