SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Adder substracter
Adder substracterAdder substracter
Adder substracterWanNurdiana
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to CountersISMT College
 
"BCD TO 7 SEGMENT DISPLAY DECODER"
"BCD TO 7 SEGMENT DISPLAY DECODER""BCD TO 7 SEGMENT DISPLAY DECODER"
"BCD TO 7 SEGMENT DISPLAY DECODER"FAIZAN SHAFI
 
DIgital clock using verilog
DIgital clock using verilog DIgital clock using verilog
DIgital clock using verilog Abhishek Sainkar
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuitsAmrutaMehata
 
Universal Gates - Aneesa N Ali
Universal Gates - Aneesa N AliUniversal Gates - Aneesa N Ali
Universal Gates - Aneesa N AliDipayan Sarkar
 
A review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationA review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationDebraj Maji
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparatorSyed Saeed
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decodersGaditek
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractorUnsa Shakir
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for MultiplicationVikas Yadav
 
What is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODERWhat is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODERsafia safreen
 
Digital electronics- BCD & Decoder
Digital electronics- BCD & DecoderDigital electronics- BCD & Decoder
Digital electronics- BCD & DecoderPritam Shil
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and SubtractorJaimin@prt.ltd.
 

Was ist angesagt? (20)

Adder substracter
Adder substracterAdder substracter
Adder substracter
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
"BCD TO 7 SEGMENT DISPLAY DECODER"
"BCD TO 7 SEGMENT DISPLAY DECODER""BCD TO 7 SEGMENT DISPLAY DECODER"
"BCD TO 7 SEGMENT DISPLAY DECODER"
 
DIgital clock using verilog
DIgital clock using verilog DIgital clock using verilog
DIgital clock using verilog
 
Array multiplier
Array multiplierArray multiplier
Array multiplier
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuits
 
Universal Gates - Aneesa N Ali
Universal Gates - Aneesa N AliUniversal Gates - Aneesa N Ali
Universal Gates - Aneesa N Ali
 
BCD ADDER
BCD ADDER BCD ADDER
BCD ADDER
 
A review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationA review on reversible logic gates and their implementation
A review on reversible logic gates and their implementation
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for Multiplication
 
What is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODERWhat is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODER
 
Binary Arithmetic Operations
Binary Arithmetic OperationsBinary Arithmetic Operations
Binary Arithmetic Operations
 
Shift register
Shift registerShift register
Shift register
 
Digital electronics- BCD & Decoder
Digital electronics- BCD & DecoderDigital electronics- BCD & Decoder
Digital electronics- BCD & Decoder
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 
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
 
COMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITSCOMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITSGopinathD17
 

Ähnlich wie 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
 
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
 
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