SlideShare ist ein Scribd-Unternehmen logo
1 von 35
IT2001PA
Engineering Essentials (2/2)


Chapter 12 - Flip Flop

 Lecturer Name
lecturer_email@ite.edu.sg
                            Nov 20, 2012
Contact Number
Chapter 12 - Flip Flop


Lesson Objectives
Upon completion of this topic, you should be able to:
   Determine the operations of various types of flip-flops
    in digital circuits (e.g. JK flip-flop).




    IT2001PA Engineering Essentials (2/2)              2
Chapter 12 - Flip Flop


Specific Objectives
  Students should be able to :
      Draw the symbol of a JK flip-flop.
      Explain the characteristics of a JK flip flop with the aid of a truth
       table.
      Differentiate between edge and level triggered flip flops.
      Draw the symbols of :
           D type flip flop
           JK flip flop and
           T flip flop




      IT2001PA Engineering Essentials (2/2)
Chapter 12 - Flip Flop


Specific Objectives
  Students should be able to :
     Describe with the aid of truth tables the operation of the following flip flops :
          D type flip flop
          JK flip flop
          T flip flop
     Draw the output waveforms of the following flip flops, for a given clock and
      control input waveforms:
          D type flip flop
          JK flip flop
          T flip flop




      IT2001PA Engineering Essentials (2/2)
Chapter 12 - Flip Flop


Specific Objectives
  Students should be able to :
   Explain the following terms :
          Prohibited state
          Indeterminate state
          Synchronous and
          Asynchronous




    IT2001PA Engineering Essentials (2/2)
Chapter 12 - Flip Flop


Introduction

        Flip-flop is digital circuit which functions as a
         memory element used in the digital system.

        Flip-Flop is made up of an assembly of logic gates.
         Even though a logic gate, by itself, has no storage
         capability.

        Flip-Flop is also known as latch and bi-stable multi-
         vibrator.



    IT2001PA Engineering Essentials (2/2)                    6
Chapter 12 - Flip Flop


General Flip-flop Symbol
    The symbol shows two
    outputs, labeled Q and Q,
    that are the inverse of each
    other
                                                          Q
                                                     FF       outputs
    The FF can has one or
                                            inputs
    more inputs. These inputs                             Q
    are used to cause the FF to
    switch back and forth
    between its possible output
    states

    IT2001PA Engineering Essentials (2/2)                        7
Chapter 12 - Flip Flop


General Flip-flop Symbol

        Flip-Flop has two allowed
        output states.

        SET state :-                                       Q
        where Q = 1and Q = 0.                         FF          outputs
                                            inputs
                                                           Q
        RESET state :-
        where Q = 0 and Q = 1.

     Thus, flip-flop is also known as bi-stable multi-vibrator or latch.


    IT2001PA Engineering Essentials (2/2)                            8
Chapter 12 - Flip Flop


Various Types of Flip-Flops

 Unclocked RS flip-flop or latch
 Clocked RS flip-flop or gated RS flip-flop
         JK flip-flop
         D-type latch
         D-flip-flop
         T-flip-flop


    IT2001PA Engineering Essentials (2/2)     9
Chapter 12 - Flip Flop


  Advantage of JK Flip-Flop

  Does not have the problem of a
   prohibited input combinations
  May be edge-triggered or level-triggered




    IT2001PA Engineering Essentials (2/2)    10
Chapter 12 - Flip Flop


Positive edge-triggered

                             Symbol

                                     J         Q

                                         CLK

                                     K         Q
          FF triggers
          on positive
          transition




    IT2001PA Engineering Essentials (2/2)          11
Chapter 12 - Flip Flop


Negative edge-triggered
                             Symbol


                                     J         Q

                                         CLK

             FF triggers
                                     K         Q
             on negative
             transition




    IT2001PA Engineering Essentials (2/2)          12
Chapter 12 - Flip Flop

Positive edge-triggered

                         Logic circuit


      J                                     S   Q    Q

 CLK

      K                                     R   Q    Q




    IT2001PA Engineering Essentials (2/2)           13
Chapter 12 - Flip Flop


Positive edge-triggered

                          Truth Table

     J          K        CLK        Q             Remark
     0          0                   Q  O    No change
     1          0                   1       Q = J when J = K
     0          1                   0       Q = J when J = K
     1          1                   Q  O    Toggle state


    IT2001PA Engineering Essentials (2/2)                14
Chapter 12 - Flip Flop

Positive edge-triggered
                             Timing diagram
      1
 J
      0
      1
K
      0
      1
CLK
      0
             a    b      c    d   e   f   g   h   i   j   k
      1
 Q
       0


      IT2001PA Engineering Essentials (2/2)                   15
Chapter 12 - Flip Flop


Negative edge-triggered


   Operates in the same manner as the positive edge-
   triggered except that
        output changes states only on the negative
   edge of the clock signal.




    IT2001PA Engineering Essentials (2/2)      16
Chapter 12 - Flip Flop


Negative edge-triggered
                             Timing diagram
      1
 J
      0
      1
K
      0
      1
CLK
      0
             a    b      c    d   e   f   g   h   i   j   k
      1
 Q
       0

      IT2001PA Engineering Essentials (2/2)                   17
Chapter 12 - Flip Flop


D Flip-Flops

     The D flip-flop is also            D       S   Q
     called Delay or Data flip-
     flop.
                                                R   Q

     The D flip-flop has only
     one input.
     It can be easily                       D   J   Q
     implemented from the RS
     or JK inputs as shown.
                                                K   Q



    IT2001PA Engineering Essentials (2/2)               18
Chapter 12 - Flip Flop


D Flip-Flops
     Edge-triggered D FF

      Truth table

            D   Clk           Q                           D     Q
        X        0     no change

                                                          CLK   Q
        0                 0
        1                1



      Q follows D on the“don’t care”of the clock pulse.
         “ X ” indicates rising edge




    IT2001PA Engineering Essentials (2/2)                           19
Chapter 12 - Flip Flop


D Flip-Flops

                    D =1, ClkD Clk == 1, =Q == Q = 0and 0 = 1
                        D = 0,= = 0, Clk Clk 1 and Q = Q
                                  D and and
             Initaily Q = 1



                                                                D     Q
     D

    Clk                                                         CLK   Q
     Q


 Waveform diagram for a D flip-flop


    IT2001PA Engineering Essentials (2/2)                                 20
Chapter 12 - Flip Flop


D Flip-Flops

     Level-triggered D FF

      Truth table

           D   EN           Q                               D    Q
        X          0   no change

                                                            EN   Q
       0       1       0

       1       1        1



     Q follows D when the FF is enabled; i.e. when EN = 1


    IT2001PA Engineering Essentials (2/2)                            21
Chapter 12 - Flip Flop


D Flip-Flops

               D =1,=1, EN0 andand= 0EN EN1 andand=Q = 1
                  D D =0, EN = D =D == 1 = = 0 Q 1
                    EN = = 1 1 and Q = 0
                                Q 1, 0,
                                   Q
           “Latched”     “Transparent”
            Both D and EN inputs are 0, and Q = 0



                                                           D    Q
     D

    EN                                                     EN   Q
     Q


 Waveform diagram for a D flip-flop

    IT2001PA Engineering Essentials (2/2)                           22
Chapter 12 - Flip Flop


Implementation of the D FF

      From the clocked RS FF by
      • connecting an INVERTER to the inputs

D                         S         Q       D         Q

CLK                         CLK                CLK

                          R         Q                 Q



    IT2001PA Engineering Essentials (2/2)        23
Chapter 12 - Flip Flop


Implementation of the D FF

      From the clocked JK FF by
      • connecting an INVERTER to the inputs

D                         J         Q       D         Q

CLK                         CLK                CLK

                          K         Q                 Q




    IT2001PA Engineering Essentials (2/2)        24
Chapter 12 - Flip Flop


Asynchronous Inputs


 S               R       Q             Q           Remark
 0               0       1             1     Prohibited state
 0               1       1             0     Set state, Q =1
 1               0       0             1     Reset state, Q = 0
 1               1       0             1     No change or Hold



     IT2001PA Engineering Essentials (2/2)                 25
Chapter 12 - Flip Flop


Symbol

                          SET                  Normal
                                 S        Q
                   INPUTS
                   ACTIVE            FF         OUTPUTS
                   HIGH
                                 R        Q
                         RESET                Complementary



       SET input set Q-output with a binary ‘1’.
       RESET input reset Q-output with a binary ‘0’.

    IT2001PA Engineering Essentials (2/2)                     26
Chapter 12 - Flip Flop


Advantages of synchronous over asynchronous
operation


  FF outputs change in orderly manner.
  Everything in the system happens at the
  same time.



    IT2001PA Engineering Essentials (2/2)   27
Chapter 12 - Flip Flop


Asynchronous Inputs
              Symbol
      +5V          PRE


                                Preset & Clear inputs
               J         Q
                                • not triggered by clock pulses.
                   CLK

               K         Q



                   CLR
    IT2001PA Engineering Essentials (2/2)                 28
Chapter 12 - Flip Flop


Asynchronous Inputs
                             Truth Table

  Preset         Clear           FF response
   1             1     Normal clocked operation.
                       Q will respond to J,K & CLK
      0            1   Preset state, Q =1
      1            0   Clear state, Q = 0
      0            0   Prohibited

    IT2001PA Engineering Essentials (2/2)      29
Chapter 12 - Flip Flop


Timing diagram
             1
      J,K

             1
    CLK
             0
             1
   PRE
             0
             1
   CLR
             0
             1
      Q
             0
                         a b      c         d   e   f   g

    IT2001PA Engineering Essentials (2/2)                   30
Chapter 12 - Flip Flop


Operation

     Point                           Operation
         a         Synchronous toggle on NGT of CLK
        b          Asynchronous set on PRE = 0
         c         Synchronous toggle
        d          Synchronous toggle
         e         Asynchronous clear on CLR = 0
         f         CLR over-rides the NGT of CLK
        g          Synchronous toggle

    IT2001PA Engineering Essentials (2/2)             31
Chapter 12 - Flip Flop


T Flip-Flops

     The T flip-flop is also                       J     Q
     called toggle flip-flop.
                                                   T
                                                   K     Q
     It can be easily
     implemented by                         High
     tying the JK inputs of
     the JK FF to high as                          J     Q
     shown.                                        CLK
                                                   T
                                                   K     Q



    IT2001PA Engineering Essentials (2/2)                    32
Chapter 12 - Flip Flop


T Flip-Flops

    Truth table
                                                Q
      Qn    Clk          Qn+1
                                            T
      0              1
                                                Q
      1              1
      1              0

      0              0




    IT2001PA Engineering Essentials (2/2)           33
Chapter 12 - Flip Flop


T Flip-Flops

     Wave format T input
                                                           Q

                                                  T
                                                           Q

    Wave form at Q output

                                            fo = 1/2 fin

                                            fo : Output frequency at Q
                                            fin : Input frequency at T




    IT2001PA Engineering Essentials (2/2)                           34
Chapter 12 - Flip Flop


Next Lesson




    IT2001PA Engineering Essentials (2/2)   35

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
 
Edge Trigged Flip Flops
Edge Trigged Flip FlopsEdge Trigged Flip Flops
Edge Trigged Flip Flops
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
Lect19 Engin112
Lect19 Engin112Lect19 Engin112
Lect19 Engin112
 
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationFlip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and Organization
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Digital e chap 4
Digital e   chap 4Digital e   chap 4
Digital e chap 4
 
D flip Flop
D flip FlopD flip Flop
D flip Flop
 
Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for students
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOPMASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
 
Flip-Flop (Clocked Bistable)
Flip-Flop (Clocked Bistable)Flip-Flop (Clocked Bistable)
Flip-Flop (Clocked Bistable)
 
14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops
 
Sequential Logic
Sequential LogicSequential Logic
Sequential Logic
 
Sequential logics
Sequential logicsSequential logics
Sequential logics
 
Sequential logic circuits flip-flop pt 3
Sequential logic circuits   flip-flop pt 3Sequential logic circuits   flip-flop pt 3
Sequential logic circuits flip-flop pt 3
 
Flipflop
FlipflopFlipflop
Flipflop
 

Andere mochten auch

Flip flop’s state tables & diagrams
Flip flop’s state tables & diagramsFlip flop’s state tables & diagrams
Flip flop’s state tables & diagramsSunny Khatana
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1Sarah Sue Calbio
 
CDMA Transmitter and Receiver Implementation Using FPGA
CDMA Transmitter and Receiver Implementation Using FPGACDMA Transmitter and Receiver Implementation Using FPGA
CDMA Transmitter and Receiver Implementation Using FPGAIOSR Journals
 
Components of digital computer
Components of digital computerComponents of digital computer
Components of digital computerVanitha Kumari
 
Overview of computer
Overview of computerOverview of computer
Overview of computermasniza3703
 
CAPE Physics 2011 Unit 2 p1
CAPE Physics 2011 Unit 2 p1CAPE Physics 2011 Unit 2 p1
CAPE Physics 2011 Unit 2 p1Kehli Cousins
 
1 Multiplexer
1 Multiplexer1 Multiplexer
1 Multiplexerna491
 
Multiplexer
Multiplexer Multiplexer
Multiplexer Gaditek
 
Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Abhilash Nair
 
Flipflops JK T SR D All FlipFlop Slides
Flipflops JK T SR D All FlipFlop SlidesFlipflops JK T SR D All FlipFlop Slides
Flipflops JK T SR D All FlipFlop SlidesSid Rehmani
 
Introduction to digital computer
Introduction to digital computerIntroduction to digital computer
Introduction to digital computergourav kottawar
 
Topic 3 Digital Technique Flip flop
Topic 3 Digital Technique Flip flopTopic 3 Digital Technique Flip flop
Topic 3 Digital Technique Flip flopBai Haqi
 
Topic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemTopic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemBai Haqi
 

Andere mochten auch (20)

Flip flop’s state tables & diagrams
Flip flop’s state tables & diagramsFlip flop’s state tables & diagrams
Flip flop’s state tables & diagrams
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)
 
Cdma
CdmaCdma
Cdma
 
CDMA Transmitter and Receiver Implementation Using FPGA
CDMA Transmitter and Receiver Implementation Using FPGACDMA Transmitter and Receiver Implementation Using FPGA
CDMA Transmitter and Receiver Implementation Using FPGA
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
 
Qa07 boats and streams
Qa07 boats and streamsQa07 boats and streams
Qa07 boats and streams
 
20160831 flip flop
20160831 flip flop20160831 flip flop
20160831 flip flop
 
Ra01 logical problems
Ra01 logical problemsRa01 logical problems
Ra01 logical problems
 
Components of digital computer
Components of digital computerComponents of digital computer
Components of digital computer
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Overview of computer
Overview of computerOverview of computer
Overview of computer
 
CAPE Physics 2011 Unit 2 p1
CAPE Physics 2011 Unit 2 p1CAPE Physics 2011 Unit 2 p1
CAPE Physics 2011 Unit 2 p1
 
1 Multiplexer
1 Multiplexer1 Multiplexer
1 Multiplexer
 
Multiplexer
Multiplexer Multiplexer
Multiplexer
 
Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)
 
Flipflops JK T SR D All FlipFlop Slides
Flipflops JK T SR D All FlipFlop SlidesFlipflops JK T SR D All FlipFlop Slides
Flipflops JK T SR D All FlipFlop Slides
 
Introduction to digital computer
Introduction to digital computerIntroduction to digital computer
Introduction to digital computer
 
Topic 3 Digital Technique Flip flop
Topic 3 Digital Technique Flip flopTopic 3 Digital Technique Flip flop
Topic 3 Digital Technique Flip flop
 
Topic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemTopic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering system
 

Ähnlich wie Ee2 chapter12 flip_flop

DIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.pptDIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.pptAmitpaswan23
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.Satya P. Joshi
 
Aeav 301 lec 19
Aeav 301 lec 19Aeav 301 lec 19
Aeav 301 lec 190mehdi
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Seshu Chakravarthy
 
D flip flop in Digital electronics
D flip flop in Digital electronicsD flip flop in Digital electronics
D flip flop in Digital electronicsEasy n Inspire L
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slidejyothir19
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronicsEasy n Inspire L
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 countersCK Yang
 
REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...
REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...
REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...recoveraccount1
 

Ähnlich wie Ee2 chapter12 flip_flop (20)

Flip flops & registers
Flip flops & registersFlip flops & registers
Flip flops & registers
 
DIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.pptDIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.ppt
 
unit-4 (STLD) Lecture2.pptx
unit-4 (STLD) Lecture2.pptxunit-4 (STLD) Lecture2.pptx
unit-4 (STLD) Lecture2.pptx
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
 
Assignment#5
Assignment#5Assignment#5
Assignment#5
 
Lect20 Engin112
Lect20 Engin112Lect20 Engin112
Lect20 Engin112
 
Aeav 301 lec 19
Aeav 301 lec 19Aeav 301 lec 19
Aeav 301 lec 19
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02
 
D flip flop in Digital electronics
D flip flop in Digital electronicsD flip flop in Digital electronics
D flip flop in Digital electronics
 
Flip flop
Flip flop Flip flop
Flip flop
 
Ig2616051609
Ig2616051609Ig2616051609
Ig2616051609
 
74 f08
74 f0874 f08
74 f08
 
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5
 
Cs1104 11
Cs1104 11Cs1104 11
Cs1104 11
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
 
Dld
DldDld
Dld
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 counters
 
REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...
REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...
REPRESENTATION TO FLIP-FLOPS CHARACTERISTICS TABLE AND FLIP-FLOPS EXCITATION ...
 

Mehr von CK Yang

Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class testCK Yang
 
Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websitesCK Yang
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote siteCK Yang
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contentsCK 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 meetCK 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 validationCK 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 validationCK 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 guidelinesCK 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 securityCK Yang
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized websiteCK 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 browserCK Yang
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibilityCK 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 formsCK 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 javascriptCK Yang
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html formsCK Yang
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html formsCK 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 cssCK 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 cssCK Yang
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflowCK 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 layoutCK Yang
 

Mehr von 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 chapter12 flip_flop

  • 1. IT2001PA Engineering Essentials (2/2) Chapter 12 - Flip Flop Lecturer Name lecturer_email@ite.edu.sg Nov 20, 2012 Contact Number
  • 2. Chapter 12 - Flip Flop Lesson Objectives Upon completion of this topic, you should be able to:  Determine the operations of various types of flip-flops in digital circuits (e.g. JK flip-flop). IT2001PA Engineering Essentials (2/2) 2
  • 3. Chapter 12 - Flip Flop Specific Objectives Students should be able to :  Draw the symbol of a JK flip-flop.  Explain the characteristics of a JK flip flop with the aid of a truth table.  Differentiate between edge and level triggered flip flops.  Draw the symbols of :  D type flip flop  JK flip flop and  T flip flop IT2001PA Engineering Essentials (2/2)
  • 4. Chapter 12 - Flip Flop Specific Objectives Students should be able to :  Describe with the aid of truth tables the operation of the following flip flops :  D type flip flop  JK flip flop  T flip flop  Draw the output waveforms of the following flip flops, for a given clock and control input waveforms:  D type flip flop  JK flip flop  T flip flop IT2001PA Engineering Essentials (2/2)
  • 5. Chapter 12 - Flip Flop Specific Objectives Students should be able to :  Explain the following terms :  Prohibited state  Indeterminate state  Synchronous and  Asynchronous IT2001PA Engineering Essentials (2/2)
  • 6. Chapter 12 - Flip Flop Introduction  Flip-flop is digital circuit which functions as a memory element used in the digital system.  Flip-Flop is made up of an assembly of logic gates. Even though a logic gate, by itself, has no storage capability.  Flip-Flop is also known as latch and bi-stable multi- vibrator. IT2001PA Engineering Essentials (2/2) 6
  • 7. Chapter 12 - Flip Flop General Flip-flop Symbol The symbol shows two outputs, labeled Q and Q, that are the inverse of each other Q FF outputs The FF can has one or inputs more inputs. These inputs Q are used to cause the FF to switch back and forth between its possible output states IT2001PA Engineering Essentials (2/2) 7
  • 8. Chapter 12 - Flip Flop General Flip-flop Symbol Flip-Flop has two allowed output states. SET state :- Q where Q = 1and Q = 0. FF outputs inputs Q RESET state :- where Q = 0 and Q = 1. Thus, flip-flop is also known as bi-stable multi-vibrator or latch. IT2001PA Engineering Essentials (2/2) 8
  • 9. Chapter 12 - Flip Flop Various Types of Flip-Flops Unclocked RS flip-flop or latch Clocked RS flip-flop or gated RS flip-flop JK flip-flop D-type latch D-flip-flop T-flip-flop IT2001PA Engineering Essentials (2/2) 9
  • 10. Chapter 12 - Flip Flop Advantage of JK Flip-Flop Does not have the problem of a  prohibited input combinations May be edge-triggered or level-triggered IT2001PA Engineering Essentials (2/2) 10
  • 11. Chapter 12 - Flip Flop Positive edge-triggered Symbol J Q CLK K Q FF triggers on positive transition IT2001PA Engineering Essentials (2/2) 11
  • 12. Chapter 12 - Flip Flop Negative edge-triggered Symbol J Q CLK FF triggers K Q on negative transition IT2001PA Engineering Essentials (2/2) 12
  • 13. Chapter 12 - Flip Flop Positive edge-triggered Logic circuit J S Q Q CLK K R Q Q IT2001PA Engineering Essentials (2/2) 13
  • 14. Chapter 12 - Flip Flop Positive edge-triggered Truth Table J K CLK Q Remark 0 0 Q O No change 1 0 1 Q = J when J = K 0 1 0 Q = J when J = K 1 1 Q O Toggle state IT2001PA Engineering Essentials (2/2) 14
  • 15. Chapter 12 - Flip Flop Positive edge-triggered Timing diagram 1 J 0 1 K 0 1 CLK 0 a b c d e f g h i j k 1 Q 0 IT2001PA Engineering Essentials (2/2) 15
  • 16. Chapter 12 - Flip Flop Negative edge-triggered Operates in the same manner as the positive edge- triggered except that output changes states only on the negative edge of the clock signal. IT2001PA Engineering Essentials (2/2) 16
  • 17. Chapter 12 - Flip Flop Negative edge-triggered Timing diagram 1 J 0 1 K 0 1 CLK 0 a b c d e f g h i j k 1 Q 0 IT2001PA Engineering Essentials (2/2) 17
  • 18. Chapter 12 - Flip Flop D Flip-Flops The D flip-flop is also D S Q called Delay or Data flip- flop. R Q The D flip-flop has only one input. It can be easily D J Q implemented from the RS or JK inputs as shown. K Q IT2001PA Engineering Essentials (2/2) 18
  • 19. Chapter 12 - Flip Flop D Flip-Flops Edge-triggered D FF Truth table D Clk Q D Q X 0 no change CLK Q 0 0 1 1 Q follows D on the“don’t care”of the clock pulse. “ X ” indicates rising edge IT2001PA Engineering Essentials (2/2) 19
  • 20. Chapter 12 - Flip Flop D Flip-Flops D =1, ClkD Clk == 1, =Q == Q = 0and 0 = 1 D = 0,= = 0, Clk Clk 1 and Q = Q D and and Initaily Q = 1 D Q D Clk CLK Q Q Waveform diagram for a D flip-flop IT2001PA Engineering Essentials (2/2) 20
  • 21. Chapter 12 - Flip Flop D Flip-Flops Level-triggered D FF Truth table D EN Q D Q X 0 no change EN Q 0 1 0 1 1 1 Q follows D when the FF is enabled; i.e. when EN = 1 IT2001PA Engineering Essentials (2/2) 21
  • 22. Chapter 12 - Flip Flop D Flip-Flops D =1,=1, EN0 andand= 0EN EN1 andand=Q = 1 D D =0, EN = D =D == 1 = = 0 Q 1 EN = = 1 1 and Q = 0 Q 1, 0, Q “Latched” “Transparent” Both D and EN inputs are 0, and Q = 0 D Q D EN EN Q Q Waveform diagram for a D flip-flop IT2001PA Engineering Essentials (2/2) 22
  • 23. Chapter 12 - Flip Flop Implementation of the D FF From the clocked RS FF by • connecting an INVERTER to the inputs D S Q D Q CLK CLK CLK R Q Q IT2001PA Engineering Essentials (2/2) 23
  • 24. Chapter 12 - Flip Flop Implementation of the D FF From the clocked JK FF by • connecting an INVERTER to the inputs D J Q D Q CLK CLK CLK K Q Q IT2001PA Engineering Essentials (2/2) 24
  • 25. Chapter 12 - Flip Flop Asynchronous Inputs S R Q Q Remark 0 0 1 1 Prohibited state 0 1 1 0 Set state, Q =1 1 0 0 1 Reset state, Q = 0 1 1 0 1 No change or Hold IT2001PA Engineering Essentials (2/2) 25
  • 26. Chapter 12 - Flip Flop Symbol SET Normal S Q INPUTS ACTIVE FF OUTPUTS HIGH R Q RESET Complementary SET input set Q-output with a binary ‘1’. RESET input reset Q-output with a binary ‘0’. IT2001PA Engineering Essentials (2/2) 26
  • 27. Chapter 12 - Flip Flop Advantages of synchronous over asynchronous operation FF outputs change in orderly manner. Everything in the system happens at the same time. IT2001PA Engineering Essentials (2/2) 27
  • 28. Chapter 12 - Flip Flop Asynchronous Inputs Symbol +5V PRE Preset & Clear inputs J Q • not triggered by clock pulses. CLK K Q CLR IT2001PA Engineering Essentials (2/2) 28
  • 29. Chapter 12 - Flip Flop Asynchronous Inputs Truth Table Preset Clear FF response 1 1 Normal clocked operation. Q will respond to J,K & CLK 0 1 Preset state, Q =1 1 0 Clear state, Q = 0 0 0 Prohibited IT2001PA Engineering Essentials (2/2) 29
  • 30. Chapter 12 - Flip Flop Timing diagram 1 J,K 1 CLK 0 1 PRE 0 1 CLR 0 1 Q 0 a b c d e f g IT2001PA Engineering Essentials (2/2) 30
  • 31. Chapter 12 - Flip Flop Operation Point Operation a Synchronous toggle on NGT of CLK b Asynchronous set on PRE = 0 c Synchronous toggle d Synchronous toggle e Asynchronous clear on CLR = 0 f CLR over-rides the NGT of CLK g Synchronous toggle IT2001PA Engineering Essentials (2/2) 31
  • 32. Chapter 12 - Flip Flop T Flip-Flops The T flip-flop is also J Q called toggle flip-flop. T K Q It can be easily implemented by High tying the JK inputs of the JK FF to high as J Q shown. CLK T K Q IT2001PA Engineering Essentials (2/2) 32
  • 33. Chapter 12 - Flip Flop T Flip-Flops Truth table Q Qn Clk Qn+1 T 0 1 Q 1 1 1 0 0 0 IT2001PA Engineering Essentials (2/2) 33
  • 34. Chapter 12 - Flip Flop T Flip-Flops Wave format T input Q T Q Wave form at Q output fo = 1/2 fin fo : Output frequency at Q fin : Input frequency at T IT2001PA Engineering Essentials (2/2) 34
  • 35. Chapter 12 - Flip Flop Next Lesson IT2001PA Engineering Essentials (2/2) 35