SlideShare a Scribd company logo
2
Most read
4
Most read
5
Most read
Digital Electronics
Topic: Decoders
Decoders
 A decoder is a combinational logic circuit that converts a N-bit binary code into M output lines such
that only one output line is activated for each one of the possible combinations of inputs.
 In other words, we can say that a decoder identifies or recognizes or detects a particular code.
 In its general form, a decoder has N input lines to handle N bits and form one to 2N output lines to
indicate the presence of one or more N-bit combinations. Since each of N inputs can be a 0 or a 1,
there are 2N possible input combinations or codes.
 For each of these input combinations, only one of the M outputs will be active (HIGH), all other
outputs will remain inactive (LOW). Some decoders are designed to produce active LOW output, while
all other outputs remain HIGH.
 Some decoders do not utilize all of the 2N possible input codes. For example, a BCD to decimal
decoder has a 4-bit input code and 10 output lines that correspond to the 10 BCD code groups 0000
through 1001. Decoders of this type are often designed so that if any of the unused codes are applied
to the input, none of the outputs will be activated.
 A binary decoder is usually implemented as either a stand-alone integrated circuit (IC) or as part of a
more complex IC. Widely used decoders are often available in the form of standardized ICs.
General Decoder Diagram
2-to-4 Line Decoder
 2-to-4 line decoder has 2 inputs & 4 outputs.
 It uses all AND gates & the outputs are active-HIGH as AND gates give output only when both
inputs are HIGH.
 It is also referred to as 1-of-4 decoder, because only one of the four outputs is activated at one
time.
No. of inputs=N=2
No. of outputs=2N=4
 A & B are the two inputs whereas D0 through
D3 are the four outputs.
Truth Table
 The Boolean expressions for the four outputs are:-
D0 = A’B’ , D1 = A’B , D2 = AB’ & D3 = AB.
3-to-8 Line Decoder No. of inputs=N=3
No. of outputs=2N=8
 The Boolean expressions for the eight outputs are:-
Y0 = X0’ X1’ X2’ , Y1 = X0’ X1’ X2 , Y2 = X0’ X1 X2’ , Y3 = X0’ X1 X2 , Y4 = X0 X1’ X2’ , Y5 = X0 X1’ X2 , Y6 = X0 X1 X2’ ,
& Y7 = X0 X1 X2.
 3-to-8 line decoder has 3 inputs & 8 outputs.
 It uses all AND gates, and therefore the outputs are
active-HIGH. For active-LOW outputs, NAND
gates are used.
 It is also called a binary-to-octal decoder because it
takes a 3-bit binary input code and activates one of
the eight (octal) outputs corresponding to that code.
 It is also referred to as 1-of-8 decoder because only
one of the eight outputs is activated at one time.
Truth Table
 Some decoders have one or more ENABLE inputs that are used to control the operation of the
decoder.For example, in a 3-to-8 line decoder, if a common enabled line is connected to the fourth
input of each gate , a particular output as determined by the X0, X1, X2 input code will go HIGH only
when ENABLE line is held HIGH. When the ENABLE is held LOW, however, all the outputs will be forced
to the LOW state regardless of the levels at the X0, X1 & X2 inputs. Thus, the decoder is enabled only
when the ENABLE is HIGH.
 IC-74138 is a 3-to-8 line decoder.
4-to-16 Line Decoder
 4-to-16 line decoder has 4 inputs
and 16 outputs.
 It is also referred to as 1-of-16
decoder as because only one of the
sixteen outputs is activated at one
time.
No. of inputs=N=4
No. of outputs=2N=16
Truth Table
 IC-74154 is a 4-to-16 line decoder.
BCD-to-Decimal Decoder/4-to-10 Line Decoder
 BCD-to-decimal decoders consist of eight inverters and ten four-input NAND gates. The
inverters are connected in pairs to make BCD input data available for decoding by the
NAND gates. Full decoding of valid input logic ensures that all outputs remain off for all
invalid input conditions.
 The BCD-to-decimal decoder is also called a 4-to-10 line decoder or 1-of-10 decoder. It has
4 inputs & 10 outputs. Only one output line is active at a time.
 6 of the 16 input combinations are invalid & for input combinations that are invalid for
BCD none of the outputs will be activated.
Truth Table
 IC 7442 is a BCD-to-decimal decoder with active LOW inputs & outputs.
BCD-to-
7-Segment
Decoder/
Driver
BCD input
0 0 0 0
Decimal output
LED
0 0 0 10 0 1 00 0 1 10 1 0 0
 Electronic decoders are available in IC form.
 This decoder translates from BCD to decimal.
 Decimals are shown on an 7-segment LED display.
 This IC also drives the 7-segment LED display.
BCD-to-Seven Segment Decoder
 This type of decoder accepts the BCD code & provides outputs to energize seven segment
display devices in order to produce a decimal read out. Sometimes the hex characters A
through F may be produced.
 Each segment is made of a material that emits light when current is passed through it. The
most commonly used materials include LEDs, incandescent filaments & LCDs. The LEDs
generally provide greater illumination levels but require more power than that by LCDs.
Truth Table
Decoder Applications
 Decoders are used whenever an output or group of outputs is to be activated only on the
occurrence of a specific combination of input levels. These input levels are often provided by the
outputs of a counter or register.
 Decoders can be used as timing or sequencing signals to turn devices on or off at specific times,
because when the decoder inputs come from a counter that is being continually pulsed, the
decoder outputs will be activated sequentially.
 Decoders are widely used in memory systems of computers where they respond to the address
code from the central processor to activate the memory storage location specified by the address
code.
 Decoder is designed to be used in high-performance memory-decoding or data-routing applications
requiring very short propagation delay times.
 In high-performance memory systems, this decoder can be used to minimize the effects of system
decoding.
 When used with high-speed memories using a fast enable circuit, the delay times of these decoders
and the enable time of the memory usually are less than the typical access time of the memory. This
means that the effective system delay introduced by the decoder is negligible.
Decoders-Digital Electronics

More Related Content

PPTX
Encoders and decoders
PPTX
Encoders and decoders
PPTX
Decoder Full Presentation
PDF
Decoders
PPT
encoder and decoder in digital electronics
PPT
Combinational circuits
PPT
multiplexers and demultiplexers
PPT
decoder and encoder
Encoders and decoders
Encoders and decoders
Decoder Full Presentation
Decoders
encoder and decoder in digital electronics
Combinational circuits
multiplexers and demultiplexers
decoder and encoder

What's hot (20)

PPT
Sequential Logic Circuit
PPTX
sequential circuits
PPT
Digital Logic circuit
PPT
Karnaugh map
PPTX
PPTX
decorder and encoder and its applications
PPTX
Combinational circuit
PPTX
Nand and nor as a universal gates
PDF
Encoder & Decoder
PPTX
ALGORITHMIC STATE MACHINES
PPT
basic logic gates
PPTX
Logic Gates
PPTX
K - Map
PPTX
Ripple Carry Adder
PPT
digital logic design number system
PDF
Ring counter
PPTX
Synchronous counters
PPTX
3.codes( binary code ,excess 3, gray code )
PPTX
8086 microprocessor-architecture
Sequential Logic Circuit
sequential circuits
Digital Logic circuit
Karnaugh map
decorder and encoder and its applications
Combinational circuit
Nand and nor as a universal gates
Encoder & Decoder
ALGORITHMIC STATE MACHINES
basic logic gates
Logic Gates
K - Map
Ripple Carry Adder
digital logic design number system
Ring counter
Synchronous counters
3.codes( binary code ,excess 3, gray code )
8086 microprocessor-architecture
Ad

Similar to Decoders-Digital Electronics (20)

PPTX
decoders121-170714184489769876987698749.pptx
PPTX
ATT SMK.pptx
PDF
Digital electronics digital coders decoder encoder adder
PDF
Encoders anaaaaaaaaaaaaaaad decoders.pdf
PPTX
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
PDF
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
PPTX
Decoders
PPT
Ceng232 Decoder Multiplexer Adder
PPT
217456070-Chapter-3_eletrical engineering
PPT
07Decoders121
PPT
SESSION 2.ppt
PPTX
B sc3 unit 4 combi..lckt
PPT
08 decoder
PPTX
multiplexer and d-multiplexer
DOCX
Types of encoders and decoders with truth tables
PPTX
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
PPTX
Encoders and decoders
PPTX
Encoder and decoder
PDF
ENCODERS & DECODERS - Digital Electronics - diu swe
PPTX
What is a decoder and 2 to 4 DECODER
decoders121-170714184489769876987698749.pptx
ATT SMK.pptx
Digital electronics digital coders decoder encoder adder
Encoders anaaaaaaaaaaaaaaad decoders.pdf
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
Decoders
Ceng232 Decoder Multiplexer Adder
217456070-Chapter-3_eletrical engineering
07Decoders121
SESSION 2.ppt
B sc3 unit 4 combi..lckt
08 decoder
multiplexer and d-multiplexer
Types of encoders and decoders with truth tables
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
Encoders and decoders
Encoder and decoder
ENCODERS & DECODERS - Digital Electronics - diu swe
What is a decoder and 2 to 4 DECODER
Ad

More from Paurav Shah (11)

PPTX
Scheduling algorithms
PPTX
Cost and Cost Concepts
PPTX
3 D (3-Dimensional) Glasses
PPTX
Queue-Data Structure
PPTX
Design issues with constraints of E-R model
PPTX
Android and iOS Mobile OS
PPTX
File Management in C
PPTX
Contributor Career Strategies
PPTX
Semiconductor and It's Importance
PPTX
Earthing
PPTX
Builiding A Good Personality
Scheduling algorithms
Cost and Cost Concepts
3 D (3-Dimensional) Glasses
Queue-Data Structure
Design issues with constraints of E-R model
Android and iOS Mobile OS
File Management in C
Contributor Career Strategies
Semiconductor and It's Importance
Earthing
Builiding A Good Personality

Recently uploaded (20)

PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
737-MAX_SRG.pdf student reference guides
PPT
Project quality management in manufacturing
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Well-logging-methods_new................
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Operating System & Kernel Study Guide-1 - converted.pdf
bas. eng. economics group 4 presentation 1.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
737-MAX_SRG.pdf student reference guides
Project quality management in manufacturing
OOP with Java - Java Introduction (Basics)
UNIT 4 Total Quality Management .pptx
CH1 Production IntroductoryConcepts.pptx
Well-logging-methods_new................
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
additive manufacturing of ss316l using mig welding
Foundation to blockchain - A guide to Blockchain Tech
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Internet of Things (IOT) - A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Model Code of Practice - Construction Work - 21102022 .pdf
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf

Decoders-Digital Electronics

  • 2. Decoders  A decoder is a combinational logic circuit that converts a N-bit binary code into M output lines such that only one output line is activated for each one of the possible combinations of inputs.  In other words, we can say that a decoder identifies or recognizes or detects a particular code.  In its general form, a decoder has N input lines to handle N bits and form one to 2N output lines to indicate the presence of one or more N-bit combinations. Since each of N inputs can be a 0 or a 1, there are 2N possible input combinations or codes.  For each of these input combinations, only one of the M outputs will be active (HIGH), all other outputs will remain inactive (LOW). Some decoders are designed to produce active LOW output, while all other outputs remain HIGH.  Some decoders do not utilize all of the 2N possible input codes. For example, a BCD to decimal decoder has a 4-bit input code and 10 output lines that correspond to the 10 BCD code groups 0000 through 1001. Decoders of this type are often designed so that if any of the unused codes are applied to the input, none of the outputs will be activated.  A binary decoder is usually implemented as either a stand-alone integrated circuit (IC) or as part of a more complex IC. Widely used decoders are often available in the form of standardized ICs.
  • 4. 2-to-4 Line Decoder  2-to-4 line decoder has 2 inputs & 4 outputs.  It uses all AND gates & the outputs are active-HIGH as AND gates give output only when both inputs are HIGH.  It is also referred to as 1-of-4 decoder, because only one of the four outputs is activated at one time. No. of inputs=N=2 No. of outputs=2N=4
  • 5.  A & B are the two inputs whereas D0 through D3 are the four outputs. Truth Table  The Boolean expressions for the four outputs are:- D0 = A’B’ , D1 = A’B , D2 = AB’ & D3 = AB.
  • 6. 3-to-8 Line Decoder No. of inputs=N=3 No. of outputs=2N=8  The Boolean expressions for the eight outputs are:- Y0 = X0’ X1’ X2’ , Y1 = X0’ X1’ X2 , Y2 = X0’ X1 X2’ , Y3 = X0’ X1 X2 , Y4 = X0 X1’ X2’ , Y5 = X0 X1’ X2 , Y6 = X0 X1 X2’ , & Y7 = X0 X1 X2.  3-to-8 line decoder has 3 inputs & 8 outputs.  It uses all AND gates, and therefore the outputs are active-HIGH. For active-LOW outputs, NAND gates are used.  It is also called a binary-to-octal decoder because it takes a 3-bit binary input code and activates one of the eight (octal) outputs corresponding to that code.  It is also referred to as 1-of-8 decoder because only one of the eight outputs is activated at one time.
  • 7. Truth Table  Some decoders have one or more ENABLE inputs that are used to control the operation of the decoder.For example, in a 3-to-8 line decoder, if a common enabled line is connected to the fourth input of each gate , a particular output as determined by the X0, X1, X2 input code will go HIGH only when ENABLE line is held HIGH. When the ENABLE is held LOW, however, all the outputs will be forced to the LOW state regardless of the levels at the X0, X1 & X2 inputs. Thus, the decoder is enabled only when the ENABLE is HIGH.
  • 8.  IC-74138 is a 3-to-8 line decoder.
  • 9. 4-to-16 Line Decoder  4-to-16 line decoder has 4 inputs and 16 outputs.  It is also referred to as 1-of-16 decoder as because only one of the sixteen outputs is activated at one time. No. of inputs=N=4 No. of outputs=2N=16
  • 10. Truth Table  IC-74154 is a 4-to-16 line decoder.
  • 11. BCD-to-Decimal Decoder/4-to-10 Line Decoder  BCD-to-decimal decoders consist of eight inverters and ten four-input NAND gates. The inverters are connected in pairs to make BCD input data available for decoding by the NAND gates. Full decoding of valid input logic ensures that all outputs remain off for all invalid input conditions.  The BCD-to-decimal decoder is also called a 4-to-10 line decoder or 1-of-10 decoder. It has 4 inputs & 10 outputs. Only one output line is active at a time.  6 of the 16 input combinations are invalid & for input combinations that are invalid for BCD none of the outputs will be activated.
  • 12. Truth Table  IC 7442 is a BCD-to-decimal decoder with active LOW inputs & outputs.
  • 13. BCD-to- 7-Segment Decoder/ Driver BCD input 0 0 0 0 Decimal output LED 0 0 0 10 0 1 00 0 1 10 1 0 0  Electronic decoders are available in IC form.  This decoder translates from BCD to decimal.  Decimals are shown on an 7-segment LED display.  This IC also drives the 7-segment LED display. BCD-to-Seven Segment Decoder
  • 14.  This type of decoder accepts the BCD code & provides outputs to energize seven segment display devices in order to produce a decimal read out. Sometimes the hex characters A through F may be produced.  Each segment is made of a material that emits light when current is passed through it. The most commonly used materials include LEDs, incandescent filaments & LCDs. The LEDs generally provide greater illumination levels but require more power than that by LCDs.
  • 16. Decoder Applications  Decoders are used whenever an output or group of outputs is to be activated only on the occurrence of a specific combination of input levels. These input levels are often provided by the outputs of a counter or register.  Decoders can be used as timing or sequencing signals to turn devices on or off at specific times, because when the decoder inputs come from a counter that is being continually pulsed, the decoder outputs will be activated sequentially.  Decoders are widely used in memory systems of computers where they respond to the address code from the central processor to activate the memory storage location specified by the address code.  Decoder is designed to be used in high-performance memory-decoding or data-routing applications requiring very short propagation delay times.  In high-performance memory systems, this decoder can be used to minimize the effects of system decoding.  When used with high-speed memories using a fast enable circuit, the delay times of these decoders and the enable time of the memory usually are less than the typical access time of the memory. This means that the effective system delay introduced by the decoder is negligible.