SlideShare una empresa de Scribd logo
1 de 15
•A decoder is a logic circuit that accepts a set of inputs that
represents a binary number and activates only the output
that corresponds to the input number.
•In other words, a decoder circuit looks at its inputs,
determines which binary number is present there, and
activates the one output that corresponds to that number ;
all other outputs remain inactive




  2
In its general form, a decoder has N input lines to handle N
bits and form one to 2 N output lines to indicate the presence
of one or more N-bit combinations.


The basic binary function
•An AND gate can be used as the basic decoding element
because it produces a HIGH output only when all inputs are
HIGH

Refer next slide for example
 3
   Binary decoder
   2-bit decoder
   3-bit decoder
   BCD-to-decimal decoder
   BCD-to-Seven-Segment Decoder
   Binary decoder
    The output is 1 only when:
      A0 = 1
      A2 = 0
      A3 = 0
      A4 = 1



                            This is only one of an infinite
                            number of examples
     Specification
         Digital readouts on many digital products often use
          LED seven-segment displays.
         Each digit is created by lighting the appropriate
          segments. The segments are labeled a,b,c,d,e,f,g
         The decoder takes a BCD input and outputs the
          correct code for the seven-segment display.




9/15/09 - L12 Combinational   Copyright 2009 - Joanne DeGroat,
Logic Design                             ECE, OSU                10
     Input: A 4-bit binary value that is a BCD coded
       input.
      Outputs: 7 bits, a through g for each of the
       segments of the display.
      Operation: Decode the input to activate the
       correct segments.




9/15/09 - L12 Combinational   Copyright 2009 - Joanne DeGroat,
Logic Design                             ECE, OSU                11
Step 2 (Formulation)
                  BCD Input                     7 Segment Decoder
  Decimal   A       B     C        D   a    b     c    d     e      f   g
     0      0       0     0        0   1    1     1     1    1      1   0
     1      0       0     0        1   0    1     1     0    0      0   0
     2      0       0     1        0   1    1     0     1    1      0   1
     3      0       0     1        1   1    1     1     1    0      0   1
                                                                            Invalid BCD
     4      0       1     0        0   0    1     1     0    0      1   1   codes
     5      0       1     0        1   1    0     1     1    0      1   1   =
                                                                            No Light
     6      0       1     1        0   1    0     1     1    1      1   1
     7      0       1     1        1   1    1     1     0    0      0   0
     8      1       0     0        0   1    1     1     1    1      1   1
     9      1       0     0        1   1    1     1     0    0      1   1
   10-15        All Other Inputs       0    0     0     0    0      0   0


                              Ahmad Almulhem, KFUPM 2010
Step 3 (Optimization)




        a                  b                         c   d




        e                  f                         g


                        Ahmad Almulhem, KFUPM 2010
Step 3 (Optimization) (cont.)



 a = A’C + A’BD + AB’C’ + B’C’D’
 b = A’B’ + A’C’D’ + A’CD + B’C’
 c = A’B + B’C’ + A’C’ + A’D
 d = A’CD’ + A’B’C + B’C’D’+AB’C’+A’BC’D
 e = A’CD’ + B’C’D’
 f = A’BC’ + A’C’D’ + A’BD’ + AB’C’
 g = A’CD’ + A’B’C + A’BC’ + AB’C’


                       Exercise: Draw the circuit

                            Ahmad Almulhem, KFUPM 2010
   BCD-to-decimal decoder

Más contenido relacionado

La actualidad más candente

Decoders
DecodersDecoders
DecodersRe Man
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
Binary multipliers
Binary multipliersBinary multipliers
Binary multipliersSyed Saeed
 
Demultiplexer
DemultiplexerDemultiplexer
DemultiplexerTech_MX
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip FlopNahian Ahmed
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey methodUnsa Shakir
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitYong Heui Cho
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE Tamim Tanvir
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithmknightnick
 

La actualidad más candente (20)

Decoders
DecodersDecoders
Decoders
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Booth Multiplier
Booth MultiplierBooth Multiplier
Booth Multiplier
 
Binary multipliers
Binary multipliersBinary multipliers
Binary multipliers
 
Demultiplexer
DemultiplexerDemultiplexer
Demultiplexer
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
 
Registers siso, sipo
Registers siso, sipoRegisters siso, sipo
Registers siso, sipo
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey method
 
Adder ppt
Adder pptAdder ppt
Adder ppt
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Counters
CountersCounters
Counters
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Registers
RegistersRegisters
Registers
 
Subtractor
SubtractorSubtractor
Subtractor
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 

Destacado

Central processing unit
Central processing unitCentral processing unit
Central processing unitKumar
 
central processing unit and pipeline
central processing unit and pipelinecentral processing unit and pipeline
central processing unit and pipelineRai University
 
The central processing unit by group 5 2015
The central processing unit by group 5 2015The central processing unit by group 5 2015
The central processing unit by group 5 2015Tendai Karuma
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitKamal Acharya
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing UnitMISY
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitjyoti_lakhani
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)Akhila Dakshina
 

Destacado (11)

Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
Cpu
CpuCpu
Cpu
 
Cpu
CpuCpu
Cpu
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
central processing unit and pipeline
central processing unit and pipelinecentral processing unit and pipeline
central processing unit and pipeline
 
The central processing unit by group 5 2015
The central processing unit by group 5 2015The central processing unit by group 5 2015
The central processing unit by group 5 2015
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing Unit
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 

Similar a Decoder for digital electronics

Chapter 4 combinational_logic
Chapter 4 combinational_logicChapter 4 combinational_logic
Chapter 4 combinational_logicCh Farhan
 
11-PLDs.pdf
11-PLDs.pdf11-PLDs.pdf
11-PLDs.pdfKoayFT
 
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...Hsien-Hsin Sean Lee, Ph.D.
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdfDamotTesfaye
 
Lecture 18 M - Copy.pptx
Lecture 18 M - Copy.pptxLecture 18 M - Copy.pptx
Lecture 18 M - Copy.pptxAzeenShahid
 
Chapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdfChapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdfGetinetGaroma1
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxSanjaiPrasad
 
Combinational logic 1
Combinational logic 1Combinational logic 1
Combinational logic 1Heman Pathak
 
343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011e11ie
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementationssuserca5764
 
Chapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIChapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIEr. Nawaraj Bhandari
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).pptThanmayiKumar
 
Combinational Logic Unit 2
Combinational Logic Unit 2Combinational Logic Unit 2
Combinational Logic Unit 2Asif Iqbal
 

Similar a Decoder for digital electronics (20)

Chapter 4 combinational_logic
Chapter 4 combinational_logicChapter 4 combinational_logic
Chapter 4 combinational_logic
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
11-PLDs.pdf
11-PLDs.pdf11-PLDs.pdf
11-PLDs.pdf
 
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
 
Lecture 18 M - Copy.pptx
Lecture 18 M - Copy.pptxLecture 18 M - Copy.pptx
Lecture 18 M - Copy.pptx
 
Bcd counter
Bcd counterBcd counter
Bcd counter
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Chapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdfChapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdf
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
 
Mcsl 17 ALP lab manual
Mcsl 17 ALP lab manualMcsl 17 ALP lab manual
Mcsl 17 ALP lab manual
 
Combinational logic 1
Combinational logic 1Combinational logic 1
Combinational logic 1
 
343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementation
 
The decoder
The decoderThe decoder
The decoder
 
Chapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIChapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSI
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Combinational Logic Unit 2
Combinational Logic Unit 2Combinational Logic Unit 2
Combinational Logic Unit 2
 

Decoder for digital electronics

  • 1.
  • 2. •A decoder is a logic circuit that accepts a set of inputs that represents a binary number and activates only the output that corresponds to the input number. •In other words, a decoder circuit looks at its inputs, determines which binary number is present there, and activates the one output that corresponds to that number ; all other outputs remain inactive 2
  • 3. In its general form, a decoder has N input lines to handle N bits and form one to 2 N output lines to indicate the presence of one or more N-bit combinations. The basic binary function •An AND gate can be used as the basic decoding element because it produces a HIGH output only when all inputs are HIGH Refer next slide for example 3
  • 4.
  • 5. Binary decoder  2-bit decoder  3-bit decoder  BCD-to-decimal decoder  BCD-to-Seven-Segment Decoder
  • 6. Binary decoder The output is 1 only when: A0 = 1 A2 = 0 A3 = 0 A4 = 1 This is only one of an infinite number of examples
  • 7.
  • 8.
  • 9.
  • 10. Specification  Digital readouts on many digital products often use LED seven-segment displays.  Each digit is created by lighting the appropriate segments. The segments are labeled a,b,c,d,e,f,g  The decoder takes a BCD input and outputs the correct code for the seven-segment display. 9/15/09 - L12 Combinational Copyright 2009 - Joanne DeGroat, Logic Design ECE, OSU 10
  • 11. Input: A 4-bit binary value that is a BCD coded input.  Outputs: 7 bits, a through g for each of the segments of the display.  Operation: Decode the input to activate the correct segments. 9/15/09 - L12 Combinational Copyright 2009 - Joanne DeGroat, Logic Design ECE, OSU 11
  • 12. Step 2 (Formulation) BCD Input 7 Segment Decoder Decimal A B C D a b c d e f g 0 0 0 0 0 1 1 1 1 1 1 0 1 0 0 0 1 0 1 1 0 0 0 0 2 0 0 1 0 1 1 0 1 1 0 1 3 0 0 1 1 1 1 1 1 0 0 1 Invalid BCD 4 0 1 0 0 0 1 1 0 0 1 1 codes 5 0 1 0 1 1 0 1 1 0 1 1 = No Light 6 0 1 1 0 1 0 1 1 1 1 1 7 0 1 1 1 1 1 1 0 0 0 0 8 1 0 0 0 1 1 1 1 1 1 1 9 1 0 0 1 1 1 1 0 0 1 1 10-15 All Other Inputs 0 0 0 0 0 0 0 Ahmad Almulhem, KFUPM 2010
  • 13. Step 3 (Optimization) a b c d e f g Ahmad Almulhem, KFUPM 2010
  • 14. Step 3 (Optimization) (cont.) a = A’C + A’BD + AB’C’ + B’C’D’ b = A’B’ + A’C’D’ + A’CD + B’C’ c = A’B + B’C’ + A’C’ + A’D d = A’CD’ + A’B’C + B’C’D’+AB’C’+A’BC’D e = A’CD’ + B’C’D’ f = A’BC’ + A’C’D’ + A’BD’ + AB’C’ g = A’CD’ + A’B’C + A’BC’ + AB’C’ Exercise: Draw the circuit Ahmad Almulhem, KFUPM 2010
  • 15. BCD-to-decimal decoder