JK and D flip flops, which one to choose?

Discussion in 'Homework Help' started by 1233, Dec 26, 2009.

  1. 1233

    Thread Starter New Member

    Dec 26, 2009
    10
    0
    Hello,

    1) what is the difference between D and JK flip flops? both of them are used to store one bit, so how can I choose which one to use for a certain application?
     
    Last edited: Dec 26, 2009
  2. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    The D Flip-Flop captures the data on the D-input at the rising edge of the clock and propagates it to the Q an Q-Bar outputs.

    The JK is more flexible. At the clock edge it can SET, CLEAR, HOLD, or TOGGLE. Since it hat 2 inputs labeled J and K it can do four things instead of two for the D-Flip-Flop (SET and CLEAR)
     
  3. 1233

    Thread Starter New Member

    Dec 26, 2009
    10
    0
    so, for what applications the D can not replace a JK ?
     
  4. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    Doing a long synchronous counter is much easier with a JK
    Doing state machines can reduce the need for external logic
    Doing registers in an ALU is easier with a JK
     
  5. 1233

    Thread Starter New Member

    Dec 26, 2009
    10
    0
    so using JK reduces the number of combinational logic needed compared to the D ?
     
  6. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    Yes, there are many cases where this is true.
     
Loading...