0% found this document useful (0 votes)
85 views17 pages

Decoders

This document discusses decoders in digital electronics. It defines decoders as circuits that convert binary codes into sets of outputs, with different types of decoders mapping varying numbers of inputs to outputs. The basic principles are described as assigning a unique output to each binary input and having only one active low input at a time. Common decoder types are 1-to-2, 2-to-4, and 3-to-8 decoders, with the document explaining how to build larger decoders from combinations of smaller decoder blocks.

Uploaded by

Tu Nguyen
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)
85 views17 pages

Decoders

This document discusses decoders in digital electronics. It defines decoders as circuits that convert binary codes into sets of outputs, with different types of decoders mapping varying numbers of inputs to outputs. The basic principles are described as assigning a unique output to each binary input and having only one active low input at a time. Common decoder types are 1-to-2, 2-to-4, and 3-to-8 decoders, with the document explaining how to build larger decoders from combinations of smaller decoder blocks.

Uploaded by

Tu Nguyen
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/ 17

DECODERS

Digital Electronic
• Definitions
• Basic Principles
• Types of Decoder
• 1-to-2
• 2-to-4
• 3-to-8
• Build m-to-n decoder

2
Definition

- A binary decoder is a digital circuit that converts a binary code


into a set of outputs. The binary code represents the position of
the desired output and is used to select the specific output that is
active.

- Binary decoders are the inverse of encoders and are commonly


used in digital systems to convert a serial code into a parallel set
of outputs.

3
Basic Principles

1. The basic principle of a binary decoder is to assign a unique output to


each possible binary code
Example: a binary decoder with 4 inputs and 2^4 = 16 outputs can assign a
unique output to each of the 16 possible 4-bit binary codes
2. The inputs of a binary decoder are usually active low, meaning that
only one input is active (low) at any given time, and the remaining inputs
are inactive (high). The active low input is used to select the specific
output that is active.
3. There are different types of binary decoders, including priority
decoders, which assign a priority to each output, and error-detecting
decoders, which can detect errors in the binary code and generate an
error signal.

4
Basic Principles

In summary, a binary decoder is a digital circuit that converts a binary code


into a set of outputs.
In Digital Electronics, discrete quantities of information are represented by
binary codes. A binary code of N bits is capable of representing up to 2^N
distinct elements of coded information. The name “Decoder” means to
translate or decode coded information from one format into another, so a
digital decoder transforms a set of digital input signals into an equivalent
decimal code at its output. A decoder is a combinational circuit that
converts binary information from n input lines to a maximum of 2^N
unique output lines.

5
Types of Decoder

C0 = A’0 E
C1 = A 0 E

6
Types of Decoder

E
A0

C1 C0

A0

E
Decoder

C1 C0

7
Types of Decoder

A1
A0
C0
00 01 10 11
0 0 0 0 0
E
1 1 0 0 0

8
Types of Decoder

E
A1
A0

C3 C2 C1 C0

A1..0

E
Decoder

C3..0

9
Types of Decoder

3-to-8 decoder

10
Types of Decoder

3-to-8 decoder
E
A2
A1
A0

C7 C6 C5 C4 C2 C1 C0

11
Types of Decoder

Build 3-to-8 using 1-to-2 decoders


Principle:
- If we use 1-to-2 decoders in the construction, the m-to-n decoder will have
log2n levels of 1-to-2 decoders, each of which will decode one address bit.
- Each output of each decoder on a particular level will enable one of the
decoders on the next level  the number of decoders on each successive
level will double with its distance from the top decoder.

12
Types of Decoder

Build 3-to-8 using 1-to-2 decoders

Principle:
- If we use 1-to-2 decoders in the
construction, the m-to-n decoder
will have log2n levels of 1-to-2
decoders, each of which will
decode one address bit.
- Each output of each decoder on a
particular level will enable one of
the decoders on the next level 
the number of decoders on each
successive level will double with
its distance from the top decoder.

13
Types of Decoder

Build 3-to-8 using 2-to-4 decoders


Principle:
The same principle 1-to-2, except that a 2-to-4 decoder can decode 2 bits at a
time, so an m-to-n decoder constructed from 2-to-4 decoders needs only half
as many levels and half as many decoders as one constructed from 1-to-2

14
Types of Decoder

Build 3-to-8 using 2-to-4 decoders

Principle:
The same principle 1-to-2, except that a 2-
to-4 decoder can decode 2 bits at a time, so
an m-to-n decoder constructed from 2-to-4
decoders needs only half as many levels
and half as many decoders as one
constructed from 1-to-2

15
Types of Decoder

E
Decoder

A1..0 A1..0 A1..0 A1..0

E E E E
Decoder Decoder Decoder Decoder

C15..12 C11..8 C7..4 C3..0

16
THANK YOU !

17

You might also like