SlideShare uma empresa 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

Mais conteúdo relacionado

Mais procurados

Degital 1
Degital 1Degital 1
Degital 1hnaita
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoderAbid Ali
 
Decoders
DecodersDecoders
DecodersRe Man
 
Nand and nor as a universal gates
Nand and nor as a universal gatesNand and nor as a universal gates
Nand and nor as a universal gatesKaushal Shah
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...Arti Parab Academics
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic CircuitsDilum Bandara
 
Decoder Full Presentation
Decoder Full Presentation Decoder Full Presentation
Decoder Full Presentation Adeel Rasheed
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devicesISMT College
 
Flip flop conversions
Flip flop conversionsFlip flop conversions
Flip flop conversionsuma jangaman
 
flip flop coverison
flip flop coverisonflip flop coverison
flip flop coverisonSmith Rana
 
Design options for digital systems
Design options for digital systemsDesign options for digital systems
Design options for digital systemsdennis gookyi
 

Mais procurados (20)

Encoder.pptx
Encoder.pptxEncoder.pptx
Encoder.pptx
 
Degital 1
Degital 1Degital 1
Degital 1
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Decoders
DecodersDecoders
Decoders
 
Nand and nor as a universal gates
Nand and nor as a universal gatesNand and nor as a universal gates
Nand and nor as a universal gates
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic Circuits
 
Decoder Full Presentation
Decoder Full Presentation Decoder Full Presentation
Decoder Full Presentation
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devices
 
Combinational Logic Circuits
Combinational Logic CircuitsCombinational Logic Circuits
Combinational Logic Circuits
 
Flip flop conversions
Flip flop conversionsFlip flop conversions
Flip flop conversions
 
flip flop coverison
flip flop coverisonflip flop coverison
flip flop coverison
 
All flipflop
All flipflopAll flipflop
All flipflop
 
Subtractor
SubtractorSubtractor
Subtractor
 
multiplexer and d-multiplexer
multiplexer and d-multiplexermultiplexer and d-multiplexer
multiplexer and d-multiplexer
 
Design options for digital systems
Design options for digital systemsDesign options for digital systems
Design options for digital systems
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 

Destaque

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
 

Destaque (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
 

Semelhante 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
 

Semelhante a Decoder for digital electronics (20)

08 decoder
08 decoder08 decoder
08 decoder
 
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...
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
 
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
 
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
 

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