SlideShare a Scribd company logo
IT2001PA
Engineering Essentials (2/2)


Chapter 3 - Basic Logic Gates

 Lecturer Name
lecturer_email@ite.edu.sg
                                Nov 20, 2012
Contact Number
Chapter 3 - Basic Logic Gates


Lesson Objectives
Upon completion of this topic, you should be able to:
   Relate the operation of basic logic gates such as AND,
    OR, NOT, NAND, NOR, EX-OR and EX-NOR, and
    construct its truth table.




    IT2001PA Engineering Essentials (2/2)            2
Chapter 3 - Basic Logic Gates


Specific Objectives
  Students should be able to :
      Explain the use of logic gate.
      Describe the function of the basic logic gates (i.e. NOT, AND,
       NAND, OR, NOR, EX-OR and EX-NOR) with the help of symbol,
       truth table and its equivalent switching circuit.
      Describe how NOT, AND, OR, NOR can be constructed from
       NAND gates.
      Describe how NOT, AND, OR, NOR can be constructed from
       NOR gates.




      IT2001PA Engineering Essentials (2/2)
Chapter 3 - Basic Logic Gates


Logic Gates
      In digital logic system, events are described
      as either ‘0’ or ‘1’

                       Logic 1          Logic 0
                       Switch ON      Switch OFF

                     Bulb lights up   Bulb unlighted

                          High              Low

                          True              False

                        5 volts          0 volts
                       2.4V to 5V      0V to 0.4V




    IT2001PA Engineering Essentials (2/2)              4
Chapter 3 - Basic Logic Gates


Logic Gates
 Positive Logic
 In a positive logic system, a high voltage is used to represent logical
 true(1), and a low voltage for logical false (0).
 In positive logic circuits it is normal to use +5V for true and
 0V for false.

 Negative Logic
 In a negative logic system, a low voltage is used to represent
 logical true (1) and a high voltage for a logical false (0).




    IT2001PA Engineering Essentials (2/2)                       5
Chapter 3 - Basic Logic Gates


Gate

    - it has 2 or more binary inputs and 1 output




            Binary                          Binary
            Inputs
                                Gate        Output




    IT2001PA Engineering Essentials (2/2)            6
Chapter 3 - Basic Logic Gates


7 Basic Logic Gates
   AND gate
   OR gate
   INVERTER ( NOT ) gate
   NAND gate
   NOR gate
   XOR gate
   XNOR gate



    IT2001PA Engineering Essentials (2/2)   7
Chapter 3 - Basic Logic Gates


Truth Table
   Table which relates the output of a logic function to all
    the possible combinations of the inputs.
   The number of possible combinations of the inputs is
    equal to 2N, where N is the number of inputs
 A logic gate with 2 inputs 22= 4 possible combinations from its inputs
             Inputs                         Output
            0         0         Depends on the logic function
            0         1         Depends on the logic function
            1         0         Depends on the logic function
            1         1         Depends on the logic function

    IT2001PA Engineering Essentials (2/2)                       8
Chapter 3 - Basic Logic Gates


The AND Operation

                     A                  B


                                                         L=A.B



           Lamp: Off=0                Switch: Open=0
                 ON=1                         Closed=1




    IT2001PA Engineering Essentials (2/2)                   9
Chapter 3 - Basic Logic Gates


Truth Table of AND Gate

             A         B         L
                                            Lamp : Off = 0
              0        0        0                 On = 1
              0        1        0
              1        0        0           Switch : Open =0
                                                     Closed=1
              1        1        1




    IT2001PA Engineering Essentials (2/2)                       10
Chapter 3 - Basic Logic Gates


The AND Gate
                Symbol

               A
               B                  Y=A.B.C
               C



               Equation : Y = A.B.C




    IT2001PA Engineering Essentials (2/2)   11
Chapter 3 - Basic Logic Gates


Summary of AND Gate

      The AND gate produces a HIGH output only when all
      of the inputs are HIGH

                  1
                                    1
                  1

      When any of the inputs is LOW, the output is LOW
     0                          1               0
                      0                     0                 0
     1                          0               0



    IT2001PA Engineering Essentials (2/2)                12
Chapter 3 - Basic Logic Gates


Truth Table of AND Gate
               A        B        C          L
               0         0        0         0
               0         0        1         0
               0         1        0         0
               0         1        1         0

                1        0         0        0
                1        0         1        0
                1        1         0        0
                1        1         1        1   Output = 1 only
                1        1         1        1   if all inputs are 1

    IT2001PA Engineering Essentials (2/2)                13
Chapter 3 - Basic Logic Gates


Example
   Determine the output waveform for the AND gate shown.


     A     0     1    0 0       1           0   A
                                                           Y
      B    0    0    0 1                    0   B
                                 1


      Y    0     0   0 0                    0
                                1




    IT2001PA Engineering Essentials (2/2)            14
Chapter 3 - Basic Logic Gates


The OR Operation
                                    A


                                   B




        Lamp: OFF= 0                    Switch:   Open=0
               ON=1                                Closed=1


    IT2001PA Engineering Essentials (2/2)                     15
Chapter 3 - Basic Logic Gates


Truth Table of OR Gate

            A         B         L
                                            Lamp : OFF =0
             0        0         0                  ON=1
             0        1         1
             1        0         1           Switch : Open=0
                                                     Closed=1
             1        1         1




    IT2001PA Engineering Essentials (2/2)                   16
Chapter 3 - Basic Logic Gates


The OR Gate

          Symbol

         A
         B                      Y
         C



          Equation : Y = A + B + C




    IT2001PA Engineering Essentials (2/2)   17
Chapter 3 - Basic Logic Gates


Summary of OR Gate
     The output is LOW only when all the inputs are LOW
                        0
                                    0
                        0

    The OR gate produces a HIGH on the output when any of
 the inputs is HIGH

      1                     0                   1
                    1                       1        1
      0                     1                   1




    IT2001PA Engineering Essentials (2/2)                18
Chapter 3 - Basic Logic Gates


Truth Table of OR Gate
            A         B         C           L
            0         0         0           0
            0         0         1           1
            0         1         0           1
            0         1         1           1

            1        0          0           1
            1        0          1           1
            1        1          0           1
                                                Output = 1 only if
            1        1          1           1   any of inputs is 1

    IT2001PA Engineering Essentials (2/2)                  19
Chapter 3 - Basic Logic Gates


Example
   Draw the output waveform for the OR gate

                                                A
           A0        1      0      1        0       Y
                                                B


           B 0      1       1      0        0


          Y 0
                    1       1       1       0




    IT2001PA Engineering Essentials (2/2)           20
Chapter 3 - Basic Logic Gates


The NOT Operation (Inverter)
         Symbol


                 A               A


             A                   A


          Equation


            Y = A

    IT2001PA Engineering Essentials (2/2)   21
Chapter 3 - Basic Logic Gates


Truth Table of Inverter

                 Inputs     Output

                    0           1

                    1           0



      Its logic output is always the inverse of the logic inputs




    IT2001PA Engineering Essentials (2/2)                   22
Chapter 3 - Basic Logic Gates


NAND Gate


     A                                      A
                                X=AB            X=AB
     B                                      B


            Equation

               X= AB
               X= AB



    IT2001PA Engineering Essentials (2/2)       23
Chapter 3 - Basic Logic Gates


Truth Table of NAND Gate

                   Inputs          AND      NAND
               A         B          AB       AB
               0         0            0      1
              0          1            0      1
              1          0            0      1
              1          1            1      0




    IT2001PA Engineering Essentials (2/2)          24
Chapter 3 - Basic Logic Gates


Summary of NAND Gate

      The NAND gate produces a LOW output only when all
       the inputs are HIGH

                     1
                                       0
                     1

      When any of the inputs is LOW , the output will be HIGH

      0                         1               0
                         1                  1                 1
      1                         0               0


    IT2001PA Engineering Essentials (2/2)                25
Chapter 3 - Basic Logic Gates


Example

  Draw the output waveform for the NAND gate shown

                    0             0
   A    0    1            1                 A
                                                          Y
                                            B
                    0              0
        1    1            1
   B



   Y 1                             1



    IT2001PA Engineering Essentials (2/2)            26
Chapter 3 - Basic Logic Gates


NOR Gate

    A                                       A
                                                X=A+B
                                X=A+B       B
    B



          Equation

            X= A+B
            X= A+B




    IT2001PA Engineering Essentials (2/2)       27
Chapter 3 - Basic Logic Gates


Truth Table of NOR Gate

                   Inputs           OR      NOR
               A         B          A+B     A+B
               0         0            0      1
              0          1            1      0
              1          0            1      0
              1          1            1      0




    IT2001PA Engineering Essentials (2/2)         28
Chapter 3 - Basic Logic Gates


Summary of NOR Gate

     The NOR gate produces a HIGH output only when all
  the inputs are LOW
                   0
                                    1
                   0

     When any of the inputs is HIGH , the output will be LOW

    0                       1                   1
                       0                    0             0
    1                       0                   1


    IT2001PA Engineering Essentials (2/2)                 29
Chapter 3 - Basic Logic Gates


Example
  Draw the output waveform for the NOR gate shown

   A 0       1     0      1       0     1   A
                                                    Y
                                            B


        1   1      0      1       0     0
   B


   Y    0 0         1     0             0
                                  1



    IT2001PA Engineering Essentials (2/2)           30
Chapter 3 - Basic Logic Gates




          EX-OR
        Gate


                       EX-NOR
                         Gate



    IT2001PA Engineering Essentials (2/2)   31
Chapter 3 - Basic Logic Gates


EX-OR Gate
                                                     Truth Table

                                                 A        B        Y
         A
                                                 0         0       0
                            X = A ⊕B
         B                                       0         1       1
                                                 1         0       1
                                                 1         1       0



         Logic Equation

             X = AB + A B         Its output is High only when the
             X = A⊕B              inputs are at different levels.



    IT2001PA Engineering Essentials (2/2)                              32
Chapter 3 - Basic Logic Gates


EX-NOR Gate
                                                    Truth Table

        A                                       A        B        Y

                           X = A⊕B              0         0       1
        B
                                                0         1       0
                                                1         0       0
                                                1         1       1

         Logic Equation

            X = A B + AB      Its output is High only when the inputs are
            X = A⊕B           at the same levels.




    IT2001PA Engineering Essentials (2/2)                             33
Chapter 3 - Basic Logic Gates


Exercise on Timing Diagram
Draw the output waveform X of the EX-OR gate with inputs
A and B given below:
     A
                  X
     B
                      A



                      B




                      X




    IT2001PA Engineering Essentials (2/2)              34
Chapter 3 - Basic Logic Gates


Exercise on Timing Diagram
 Draw the output waveform X of the EX-NOR gate with inputs A
 and B given below:
  A
                X
  B                    A


                       B




                       X




      IT2001PA Engineering Essentials (2/2)            35
Chapter 3 - Basic Logic Gates


Next Lesson




    IT2001PA Engineering Essentials (2/2)   36

More Related Content

What's hot

Logic gates (1)
Logic gates (1)Logic gates (1)
Logic gates (1)
zzzzzzzakia
 
De lab manual
De lab manualDe lab manual
De lab manual
Naga Rajan
 
Logic Gates Class 12
Logic Gates Class 12Logic Gates Class 12
Logic Gates Class 12
RithuJ
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12
Nipun Shah
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Jikrul Sayeed
 
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
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
Vivek Kumar Sinha
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATES
Lakhvinder Singh
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
Nong Aquino jr.
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
Youngik Song
 
Logic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth tableLogic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth table
guru nanak institute of technology
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Yasir Khan
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
Govind Kaintura
 
101495802 ee2258-lm-1
101495802 ee2258-lm-1101495802 ee2258-lm-1
101495802 ee2258-lm-1
homeworkping7
 
Bca i sem de lab
Bca i sem  de labBca i sem  de lab
Bca i sem de lab
Prof. Dr. K. Adisesha
 
Basic gates and functions
Basic gates and functionsBasic gates and functions
Basic gates and functions
pong_sk1
 
98788885 ic-lab-maual
98788885 ic-lab-maual98788885 ic-lab-maual
98788885 ic-lab-maual
Jagadeesh Kumar
 
Presentation On Logic Gate
Presentation On Logic Gate Presentation On Logic Gate
Presentation On Logic Gate
Nazrul Islam
 
LOGIC GATES
LOGIC GATESLOGIC GATES
LOGIC GATES
Loren Baron
 
Dld (lab 1 & 2)
Dld (lab 1 & 2)Dld (lab 1 & 2)
Dld (lab 1 & 2)
Farwa Ansari
 

What's hot (20)

Logic gates (1)
Logic gates (1)Logic gates (1)
Logic gates (1)
 
De lab manual
De lab manualDe lab manual
De lab manual
 
Logic Gates Class 12
Logic Gates Class 12Logic Gates Class 12
Logic Gates Class 12
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
 
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
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATES
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
 
Logic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth tableLogic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth table
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
 
101495802 ee2258-lm-1
101495802 ee2258-lm-1101495802 ee2258-lm-1
101495802 ee2258-lm-1
 
Bca i sem de lab
Bca i sem  de labBca i sem  de lab
Bca i sem de lab
 
Basic gates and functions
Basic gates and functionsBasic gates and functions
Basic gates and functions
 
98788885 ic-lab-maual
98788885 ic-lab-maual98788885 ic-lab-maual
98788885 ic-lab-maual
 
Presentation On Logic Gate
Presentation On Logic Gate Presentation On Logic Gate
Presentation On Logic Gate
 
LOGIC GATES
LOGIC GATESLOGIC GATES
LOGIC GATES
 
Dld (lab 1 & 2)
Dld (lab 1 & 2)Dld (lab 1 & 2)
Dld (lab 1 & 2)
 

Viewers also liked

basic logic gates
 basic logic gates basic logic gates
basic logic gates
vishal gupta
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
Pravin Shirke
 
Logic gates
Logic gatesLogic gates
Logic gates
Dwij Barad
 
Transformer
TransformerTransformer
Transformer
Rishikesh Borse
 
Transformer
TransformerTransformer
Transformer
Augustien Raju
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12
Kirthi Kirthu
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
Kumar
 
Logic gates
Logic gatesLogic gates
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gates
bhardubhai
 
Transformer construction,types and working
Transformer construction,types and workingTransformer construction,types and working
Transformer construction,types and working
maharshi dayanand university rohtak
 

Viewers also liked (10)

basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Transformer
TransformerTransformer
Transformer
 
Transformer
TransformerTransformer
Transformer
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gates
 
Transformer construction,types and working
Transformer construction,types and workingTransformer construction,types and working
Transformer construction,types and working
 

Similar to Ee2 chapter3 basic_logicgates

DOC-20240203-WA0000.pptx
DOC-20240203-WA0000.pptxDOC-20240203-WA0000.pptx
DOC-20240203-WA0000.pptx
mdashrafulamin7388
 
Plc 2
Plc 2Plc 2
Components logic gates
Components   logic gatesComponents   logic gates
Components logic gates
sld1950
 
Digital logic
Digital logicDigital logic
Digital logic
Madhu Bala
 
Logicout3
Logicout3Logicout3
Logicout3
doovood
 
Chapter 2 Boolean Algebra.pptx
Chapter 2 Boolean Algebra.pptxChapter 2 Boolean Algebra.pptx
Chapter 2 Boolean Algebra.pptx
HazardRhenz1
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
John Todora
 
Applied electronics-outcome-3
Applied electronics-outcome-3Applied electronics-outcome-3
Applied electronics-outcome-3
doovood
 
BOOLEAN ALGEBRA & LOGIC GATES.ppt
BOOLEAN ALGEBRA & LOGIC GATES.pptBOOLEAN ALGEBRA & LOGIC GATES.ppt
BOOLEAN ALGEBRA & LOGIC GATES.ppt
dhanamalathieee
 
341-12-4-2001.ppt
341-12-4-2001.ppt341-12-4-2001.ppt
341-12-4-2001.ppt
MuhammadShoaibRabban2
 
Presentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by AnupamPresentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by Anupam
AnupamAkib
 
Class 12th Logic Gates
Class 12th Logic GatesClass 12th Logic Gates
Class 12th Logic Gates
Priyanka Jakhar
 
Chapter 5 boolean algebra
Chapter 5 boolean algebraChapter 5 boolean algebra
Chapter 5 boolean algebra
Praveen M Jigajinni
 
logic gates using IC cbse class 12
logic gates using IC cbse class 12logic gates using IC cbse class 12
logic gates using IC cbse class 12
Kirthi Kirthu
 
Physics logic gates 2
Physics logic gates 2Physics logic gates 2
Physics logic gates 2
Kirthi Kirthu
 
Plc intro
Plc introPlc intro
Plc intro
eXorCiStGR
 
Plc intro
Plc introPlc intro
Plc intro
mutonguni123
 
Plc intro
Plc introPlc intro
Plc intro
abdullahmilad
 
Logic gates i & ii
Logic gates i & iiLogic gates i & ii
Logic gates i & ii
Samuel Igbanogu
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 counters
CK Yang
 

Similar to Ee2 chapter3 basic_logicgates (20)

DOC-20240203-WA0000.pptx
DOC-20240203-WA0000.pptxDOC-20240203-WA0000.pptx
DOC-20240203-WA0000.pptx
 
Plc 2
Plc 2Plc 2
Plc 2
 
Components logic gates
Components   logic gatesComponents   logic gates
Components logic gates
 
Digital logic
Digital logicDigital logic
Digital logic
 
Logicout3
Logicout3Logicout3
Logicout3
 
Chapter 2 Boolean Algebra.pptx
Chapter 2 Boolean Algebra.pptxChapter 2 Boolean Algebra.pptx
Chapter 2 Boolean Algebra.pptx
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
 
Applied electronics-outcome-3
Applied electronics-outcome-3Applied electronics-outcome-3
Applied electronics-outcome-3
 
BOOLEAN ALGEBRA & LOGIC GATES.ppt
BOOLEAN ALGEBRA & LOGIC GATES.pptBOOLEAN ALGEBRA & LOGIC GATES.ppt
BOOLEAN ALGEBRA & LOGIC GATES.ppt
 
341-12-4-2001.ppt
341-12-4-2001.ppt341-12-4-2001.ppt
341-12-4-2001.ppt
 
Presentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by AnupamPresentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by Anupam
 
Class 12th Logic Gates
Class 12th Logic GatesClass 12th Logic Gates
Class 12th Logic Gates
 
Chapter 5 boolean algebra
Chapter 5 boolean algebraChapter 5 boolean algebra
Chapter 5 boolean algebra
 
logic gates using IC cbse class 12
logic gates using IC cbse class 12logic gates using IC cbse class 12
logic gates using IC cbse class 12
 
Physics logic gates 2
Physics logic gates 2Physics logic gates 2
Physics logic gates 2
 
Plc intro
Plc introPlc intro
Plc intro
 
Plc intro
Plc introPlc intro
Plc intro
 
Plc intro
Plc introPlc intro
Plc intro
 
Logic gates i & ii
Logic gates i & iiLogic gates i & ii
Logic gates i & ii
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 counters
 

More from CK Yang

Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class test
CK Yang
 
Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websites
CK Yang
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote site
CK Yang
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contents
CK Yang
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meet
CK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
CK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
CK Yang
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelines
CK Yang
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and security
CK Yang
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized website
CK Yang
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browser
CK Yang
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibility
CK Yang
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
CK Yang
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascript
CK Yang
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
CK Yang
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
CK Yang
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in css
CK Yang
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in css
CK Yang
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflow
CK Yang
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
CK Yang
 

More from CK Yang (20)

Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class test
 
Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websites
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote site
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contents
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meet
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelines
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and security
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized website
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browser
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibility
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascript
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in css
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in css
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflow
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
 

Ee2 chapter3 basic_logicgates

  • 1. IT2001PA Engineering Essentials (2/2) Chapter 3 - Basic Logic Gates Lecturer Name lecturer_email@ite.edu.sg Nov 20, 2012 Contact Number
  • 2. Chapter 3 - Basic Logic Gates Lesson Objectives Upon completion of this topic, you should be able to:  Relate the operation of basic logic gates such as AND, OR, NOT, NAND, NOR, EX-OR and EX-NOR, and construct its truth table. IT2001PA Engineering Essentials (2/2) 2
  • 3. Chapter 3 - Basic Logic Gates Specific Objectives Students should be able to :  Explain the use of logic gate.  Describe the function of the basic logic gates (i.e. NOT, AND, NAND, OR, NOR, EX-OR and EX-NOR) with the help of symbol, truth table and its equivalent switching circuit.  Describe how NOT, AND, OR, NOR can be constructed from NAND gates.  Describe how NOT, AND, OR, NOR can be constructed from NOR gates. IT2001PA Engineering Essentials (2/2)
  • 4. Chapter 3 - Basic Logic Gates Logic Gates In digital logic system, events are described as either ‘0’ or ‘1’ Logic 1 Logic 0 Switch ON Switch OFF Bulb lights up Bulb unlighted High Low True False 5 volts 0 volts 2.4V to 5V 0V to 0.4V IT2001PA Engineering Essentials (2/2) 4
  • 5. Chapter 3 - Basic Logic Gates Logic Gates Positive Logic In a positive logic system, a high voltage is used to represent logical true(1), and a low voltage for logical false (0). In positive logic circuits it is normal to use +5V for true and 0V for false. Negative Logic In a negative logic system, a low voltage is used to represent logical true (1) and a high voltage for a logical false (0). IT2001PA Engineering Essentials (2/2) 5
  • 6. Chapter 3 - Basic Logic Gates Gate - it has 2 or more binary inputs and 1 output Binary Binary Inputs Gate Output IT2001PA Engineering Essentials (2/2) 6
  • 7. Chapter 3 - Basic Logic Gates 7 Basic Logic Gates  AND gate  OR gate  INVERTER ( NOT ) gate  NAND gate  NOR gate  XOR gate  XNOR gate IT2001PA Engineering Essentials (2/2) 7
  • 8. Chapter 3 - Basic Logic Gates Truth Table  Table which relates the output of a logic function to all the possible combinations of the inputs.  The number of possible combinations of the inputs is equal to 2N, where N is the number of inputs A logic gate with 2 inputs 22= 4 possible combinations from its inputs Inputs Output 0 0 Depends on the logic function 0 1 Depends on the logic function 1 0 Depends on the logic function 1 1 Depends on the logic function IT2001PA Engineering Essentials (2/2) 8
  • 9. Chapter 3 - Basic Logic Gates The AND Operation A B L=A.B Lamp: Off=0 Switch: Open=0 ON=1 Closed=1 IT2001PA Engineering Essentials (2/2) 9
  • 10. Chapter 3 - Basic Logic Gates Truth Table of AND Gate A B L Lamp : Off = 0 0 0 0 On = 1 0 1 0 1 0 0 Switch : Open =0 Closed=1 1 1 1 IT2001PA Engineering Essentials (2/2) 10
  • 11. Chapter 3 - Basic Logic Gates The AND Gate Symbol A B Y=A.B.C C Equation : Y = A.B.C IT2001PA Engineering Essentials (2/2) 11
  • 12. Chapter 3 - Basic Logic Gates Summary of AND Gate The AND gate produces a HIGH output only when all of the inputs are HIGH 1 1 1 When any of the inputs is LOW, the output is LOW 0 1 0 0 0 0 1 0 0 IT2001PA Engineering Essentials (2/2) 12
  • 13. Chapter 3 - Basic Logic Gates Truth Table of AND Gate A B C L 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 Output = 1 only 1 1 1 1 if all inputs are 1 IT2001PA Engineering Essentials (2/2) 13
  • 14. Chapter 3 - Basic Logic Gates Example Determine the output waveform for the AND gate shown. A 0 1 0 0 1 0 A Y B 0 0 0 1 0 B 1 Y 0 0 0 0 0 1 IT2001PA Engineering Essentials (2/2) 14
  • 15. Chapter 3 - Basic Logic Gates The OR Operation A B Lamp: OFF= 0 Switch: Open=0 ON=1 Closed=1 IT2001PA Engineering Essentials (2/2) 15
  • 16. Chapter 3 - Basic Logic Gates Truth Table of OR Gate A B L Lamp : OFF =0 0 0 0 ON=1 0 1 1 1 0 1 Switch : Open=0 Closed=1 1 1 1 IT2001PA Engineering Essentials (2/2) 16
  • 17. Chapter 3 - Basic Logic Gates The OR Gate Symbol A B Y C Equation : Y = A + B + C IT2001PA Engineering Essentials (2/2) 17
  • 18. Chapter 3 - Basic Logic Gates Summary of OR Gate The output is LOW only when all the inputs are LOW 0 0 0 The OR gate produces a HIGH on the output when any of the inputs is HIGH 1 0 1 1 1 1 0 1 1 IT2001PA Engineering Essentials (2/2) 18
  • 19. Chapter 3 - Basic Logic Gates Truth Table of OR Gate A B C L 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 Output = 1 only if 1 1 1 1 any of inputs is 1 IT2001PA Engineering Essentials (2/2) 19
  • 20. Chapter 3 - Basic Logic Gates Example Draw the output waveform for the OR gate A A0 1 0 1 0 Y B B 0 1 1 0 0 Y 0 1 1 1 0 IT2001PA Engineering Essentials (2/2) 20
  • 21. Chapter 3 - Basic Logic Gates The NOT Operation (Inverter) Symbol A A A A Equation Y = A IT2001PA Engineering Essentials (2/2) 21
  • 22. Chapter 3 - Basic Logic Gates Truth Table of Inverter Inputs Output 0 1 1 0 Its logic output is always the inverse of the logic inputs IT2001PA Engineering Essentials (2/2) 22
  • 23. Chapter 3 - Basic Logic Gates NAND Gate A A X=AB X=AB B B Equation X= AB X= AB IT2001PA Engineering Essentials (2/2) 23
  • 24. Chapter 3 - Basic Logic Gates Truth Table of NAND Gate Inputs AND NAND A B AB AB 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 IT2001PA Engineering Essentials (2/2) 24
  • 25. Chapter 3 - Basic Logic Gates Summary of NAND Gate The NAND gate produces a LOW output only when all the inputs are HIGH 1 0 1 When any of the inputs is LOW , the output will be HIGH 0 1 0 1 1 1 1 0 0 IT2001PA Engineering Essentials (2/2) 25
  • 26. Chapter 3 - Basic Logic Gates Example Draw the output waveform for the NAND gate shown 0 0 A 0 1 1 A Y B 0 0 1 1 1 B Y 1 1 IT2001PA Engineering Essentials (2/2) 26
  • 27. Chapter 3 - Basic Logic Gates NOR Gate A A X=A+B X=A+B B B Equation X= A+B X= A+B IT2001PA Engineering Essentials (2/2) 27
  • 28. Chapter 3 - Basic Logic Gates Truth Table of NOR Gate Inputs OR NOR A B A+B A+B 0 0 0 1 0 1 1 0 1 0 1 0 1 1 1 0 IT2001PA Engineering Essentials (2/2) 28
  • 29. Chapter 3 - Basic Logic Gates Summary of NOR Gate The NOR gate produces a HIGH output only when all the inputs are LOW 0 1 0 When any of the inputs is HIGH , the output will be LOW 0 1 1 0 0 0 1 0 1 IT2001PA Engineering Essentials (2/2) 29
  • 30. Chapter 3 - Basic Logic Gates Example Draw the output waveform for the NOR gate shown A 0 1 0 1 0 1 A Y B 1 1 0 1 0 0 B Y 0 0 1 0 0 1 IT2001PA Engineering Essentials (2/2) 30
  • 31. Chapter 3 - Basic Logic Gates EX-OR Gate EX-NOR Gate IT2001PA Engineering Essentials (2/2) 31
  • 32. Chapter 3 - Basic Logic Gates EX-OR Gate Truth Table A B Y A 0 0 0 X = A ⊕B B 0 1 1 1 0 1 1 1 0 Logic Equation X = AB + A B Its output is High only when the X = A⊕B inputs are at different levels. IT2001PA Engineering Essentials (2/2) 32
  • 33. Chapter 3 - Basic Logic Gates EX-NOR Gate Truth Table A A B Y X = A⊕B 0 0 1 B 0 1 0 1 0 0 1 1 1 Logic Equation X = A B + AB Its output is High only when the inputs are X = A⊕B at the same levels. IT2001PA Engineering Essentials (2/2) 33
  • 34. Chapter 3 - Basic Logic Gates Exercise on Timing Diagram Draw the output waveform X of the EX-OR gate with inputs A and B given below: A X B A B X IT2001PA Engineering Essentials (2/2) 34
  • 35. Chapter 3 - Basic Logic Gates Exercise on Timing Diagram Draw the output waveform X of the EX-NOR gate with inputs A and B given below: A X B A B X IT2001PA Engineering Essentials (2/2) 35
  • 36. Chapter 3 - Basic Logic Gates Next Lesson IT2001PA Engineering Essentials (2/2) 36