SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Decoders
DecodersDecoders
Decoders
Re Man
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
WanNurdiana
 

Tendances (20)

Decoders
DecodersDecoders
Decoders
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
encoder and decoder in digital electronics
encoder and decoder in digital electronicsencoder and decoder in digital electronics
encoder and decoder in digital electronics
 
decorder and encoder and its applications
decorder and encoder and its applicationsdecorder and encoder and its applications
decorder and encoder and its applications
 
Decoder
DecoderDecoder
Decoder
 
Encoders
EncodersEncoders
Encoders
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Adder
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Octal to binary encoder
Octal to binary encoderOctal to binary encoder
Octal to binary encoder
 
Decoders
DecodersDecoders
Decoders
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Encoders
EncodersEncoders
Encoders
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Digital electronics- BCD & Decoder
Digital electronics- BCD & DecoderDigital electronics- BCD & Decoder
Digital electronics- BCD & Decoder
 
Decoder Full Presentation
Decoder Full Presentation Decoder Full Presentation
Decoder Full Presentation
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Types of encoders and decoders with truth tables
Types of encoders and decoders with truth tablesTypes of encoders and decoders with truth tables
Types of encoders and decoders with truth tables
 
Encoders
EncodersEncoders
Encoders
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 

En vedette (6)

B sc cs i bo-de u-iii counters & registers
B sc cs i bo-de u-iii counters & registersB sc cs i bo-de u-iii counters & registers
B sc cs i bo-de u-iii counters & registers
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Real-time Implementation of Sphere Decoder-based MIMO Wireless System (EUSIPC...
Real-time Implementation of Sphere Decoder-based MIMO Wireless System (EUSIPC...Real-time Implementation of Sphere Decoder-based MIMO Wireless System (EUSIPC...
Real-time Implementation of Sphere Decoder-based MIMO Wireless System (EUSIPC...
 
RSA NetWitness Log Decoder
RSA NetWitness Log DecoderRSA NetWitness Log Decoder
RSA NetWitness Log Decoder
 
Encoders and Decoders
Encoders and DecodersEncoders and Decoders
Encoders and Decoders
 
Encoder-decoder 翻訳 (TISハンズオン資料)
Encoder-decoder 翻訳 (TISハンズオン資料)Encoder-decoder 翻訳 (TISハンズオン資料)
Encoder-decoder 翻訳 (TISハンズオン資料)
 

Similaire à Decoder for digital electronics

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.
 
Chapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdfChapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdf
GetinetGaroma1
 
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
e11ie
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
ThanmayiKumar
 

Similaire à 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...
 
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
 
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
 
COMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITSCOMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITS
 

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