ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalPHYS4129Flip Flops
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    PHYS4129

    Digital Logic and Design

    Progress0 / 20 done
    Topics20
    1Binary, octal and hexadecimal number system their inter conversion2Basic logic gates
    3BCD, ASCII, Gray etc.4Parity in codes
    5Demorgan theorems6Simplification of Boolean expression by Boolean postulates and theorem7SOP and POS conversions8K maps and their uses9Don't care condition
    10Logic circuits based on AND-OR, OR-AND, NAND, NOR Logic gates design11Addition, subtraction, 2's compliments12Half adder, full adder13Half subtractor, full subtractor14Encoder, decoder15Multiplexer and demultiplexer
    16Latches
    17S-R, J-K, T and D flip flops18Master-slave flip-flops
    19Basic characteristics (Propagation delay time, dissipation, noise margins etc.)
    20DTL, RTL, TTL, CMOS
    6 min read
    Topic 17 of 20
    Topic Study Note Illustration
    17

    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...

    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)

    Flip-flop electronics
    Visual ReferenceFlip-Flop Electronics
    Wikipedia

    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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    6mremaining
    1.1kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Digital Logic and Design