ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Digital Logic and Design
    PHYS4129
    Progress0 / 20 topics
    Topics
    1. Review of Number Systems: Binary, octal and hexadecimal number system their inter conversion2. Basic logic gates3. Different codes: BCD, ASCII, Gray etc.4. Parity in codes5. Boolean Algebra: Demorgan theorems6. Simplification of Boolean expression by Boolean postulates and theorem7. SOP and POS conversions8. K maps and their uses9. Don't care condition10. Combinational Logic Circuit: Logic circuits based on AND-OR, OR-AND, NAND, NOR Logic gates design11. Addition, subtraction, 2's compliments12. Half adder, full adder13. Half subtractor, full subtractor14. Encoder, decoder15. Multiplexer and demultiplexer16. Sequential Logic Circuit: Latches17. Flip-flops: S-R, J-K, T and D flip flops18. Master-slave flip-flops19. IC Logic Families: Basic characteristics (Propagation delay time, dissipation, noise margins etc.)20. Different logic based IC families: DTL, RTL, TTL, CMOS
    PHYS4129›Flip-flops: S-R, J-K, T and D flip flops
    Digital Logic and DesignTopic 17 of 20

    Flip-flops: S-R, J-K, T and D flip flops

    6 minread
    1,067words
    Intermediatelevel

    Flip-Flops: S-R, J-K, T, and D Flip-Flops

    Flip-flops are bistable devices used in digital electronics to store a single bit of information. A flip-flop has two stable states (representing 0 and 1) and can change its state based on inputs and clock signals. Flip-flops are a crucial building block in sequential circuits like registers, counters, and memory units. They are different from latches in that flip-flops are edge-triggered, meaning they change state based on a clock signal's edge (either rising or falling).

    There are several types of flip-flops, each with different inputs and functionalities. The most common flip-flops are SR flip-flop, JK flip-flop, T flip-flop, and D flip-flop.


    1. SR Flip-Flop (Set-Reset Flip-Flop)

    The SR flip-flop is one of the simplest types of flip-flops. It has two inputs: S (Set) and R (Reset), and two outputs: Q and Q' (complement of Q). The SR flip-flop is level-triggered, meaning it responds to the level of the input, not the edge of the clock.

    Truth Table for SR Flip-Flop:

    S R Q (Output) Q' (Complementary Output)
    0 0 Q (Previous State) Q' (Previous State)
    0 1 0 1
    1 0 1 0
    1 1 Undefined (Invalid) Undefined (Invalid)
    • S = 0, R = 0: No change in the state, the flip-flop retains its previous value.
    • S = 0, R = 1: Reset state. Q = 0 and Q' = 1.
    • S = 1, R = 0: Set state. Q = 1 and Q' = 0.
    • S = 1, R = 1: This combination is invalid because it leads to an undefined state (both Q and Q' cannot be 1 at the same time).

    Note: The SR flip-flop has an invalid state (S=1, R=1), so it's not widely used in practice. The JK flip-flop is an improved version that avoids this issue.


    2. JK Flip-Flop

    The JK flip-flop is a more versatile version of the SR flip-flop. It eliminates the invalid state issue by handling the case where both inputs are 1. In a JK flip-flop, when J = K = 1, the output toggles between 0 and 1 with each clock pulse, making it useful in counters and other applications that require toggling behavior.

    Truth Table for JK Flip-Flop:

    J K Q (Output) Q' (Complementary Output)
    0 0 Q (Previous State) Q' (Previous State)
    0 1 0 1
    1 0 1 0
    1 1 Toggle (Flip) Toggle (Flip)
    • J = 0, K = 0: No change in state, retains previous value.
    • J = 0, K = 1: Reset state. Q = 0 and Q' = 1.
    • J = 1, K = 0: Set state. Q = 1 and Q' = 0.
    • J = 1, K = 1: The output toggles on each clock pulse. If Q was 0, it becomes 1; if Q was 1, it becomes 0.

    Note: The JK flip-flop is commonly used in counters, frequency dividers, and shift registers because it has no invalid states and provides the toggle functionality.


    3. T Flip-Flop (Toggle Flip-Flop)

    The T flip-flop is derived from the JK flip-flop by tying both the J and K inputs together, so the flip-flop toggles its state whenever the T input is 1.

    Truth Table for T Flip-Flop:

    T Q (Output) Q' (Complementary Output)
    0 Q (Previous State) Q' (Previous State)
    1 Toggle (Flip) Toggle (Flip)
    • T = 0: No change in the state, the flip-flop retains its previous value.
    • T = 1: The flip-flop toggles its state. If Q was 0, it becomes 1; if Q was 1, it becomes 0.

    Note: The T flip-flop is commonly used in binary counters because of its ability to toggle its output state.


    4. D Flip-Flop (Data or Delay Flip-Flop)

    The D flip-flop is one of the most commonly used flip-flops because of its simplicity and ease of use. It has a single D (Data) input and a clock signal (C). The value of the D input is transferred to the output Q on the rising (or falling) edge of the clock signal.

    Truth Table for D Flip-Flop:

    C (Clock) D (Data Input) Q (Output) Q' (Complementary Output)
    0 X Q (Previous State) Q' (Previous State)
    1 0 0 1
    1 1 1 0
    • C = 0: No change in the state, the flip-flop retains its previous value.
    • C = 1: The flip-flop takes the value of D and outputs it to Q. If D = 1, then Q = 1; if D = 0, then Q = 0.

    Note: The D flip-flop is widely used in registers, memory elements, and synchronizing data signals in digital systems.


    Comparison of Flip-Flops

    Flip-Flop Inputs Outputs Function Common Uses
    SR Flip-Flop S, R Q, Q' Stores 1 bit of data, Set/Reset control Simple memory, control circuits
    JK Flip-Flop J, K Q, Q' Stores 1 bit, toggles when both inputs are 1 Counters, state machines
    T Flip-Flop T Q, Q' Toggles its state on each clock pulse Counters, frequency dividers
    D Flip-Flop D, C Q, Q' Captures the value of D on the clock edge Registers, memory elements, data synchronization

    Applications of Flip-Flops

    1. Memory Storage: Flip-flops store binary data (1 or 0) and are used in memory circuits and registers.
    2. Counters: T and JK flip-flops are used in counters that count in binary.
    3. Shift Registers: Flip-flops can be used in shift registers to move data sequentially.
    4. Synchronization: D flip-flops are used for synchronizing signals and data between different clocked systems.
    5. Frequency Division: JK and T flip-flops can divide the frequency of a clock signal, which is useful in frequency dividers and clocks.

    Conclusion

    Flip-flops are fundamental sequential logic circuits that store one bit of data and change their state based on clock signals and inputs. The main types of flip-flops—SR flip-flop, JK flip-flop, T flip-flop, and D flip-flop—each have specific functions and applications:

    • SR flip-flop: Simple, but has an invalid state.
    • JK flip-flop: More versatile, avoids invalid states, and provides toggle functionality.
    • T flip-flop: A simplified version of the JK flip-flop, mainly used in counters.
    • D flip-flop: Used in data storage and synchronization, commonly used in registers and memory.

    These flip-flops are crucial for creating complex sequential circuits like memory systems, counters, and digital registers.

    Previous topic 16
    Sequential Logic Circuit: Latches
    Next topic 18
    Master-slave flip-flops

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time6 min
      Word count1,067
      Code examples0
      DifficultyIntermediate