Back to Study Hub
Flip-Flops• 14 min read

Flip-Flops and Latches: SR, JK, D, T, Edge Triggering and Excitation Tables

Complete Wireless PSI and GPSC study notes on flip-flops and latches covering sequential vs combinational logic, SR latch, gated SR, D latch, level vs edge triggering, SR JK D T flip-flops with characteristic and excitation tables, characteristic equations, race-around, master-slave JK, flip-flop conversions, setup and hold time, with 8 solved MCQs.

By MCQ Arena TeamUpdated June 24, 2026

Almost every memory element inside a digital system — a counter, a register, a state machine, the timing block of a radio set — is built from one humble building block: the flip-flop. In the Wireless PSI and GPSC technical papers, this topic is a reliable scorer because the questions are formula-and-table driven: if you know the characteristic table, the characteristic equation and the excitation table of each flip-flop, you can answer almost anything they throw at you.

This guide walks the full chain — from a plain cross-coupled latch up to the master-slave JK that fixes race-around — and shows exactly how examiners convert one flip-flop into another. You will get characteristic tables, characteristic equations as formulas, excitation tables, the timing parameters (setup, hold, propagation delay) that show up in numerical questions, and 8 exam-level MCQs with full explanations.

Sequential vs combinational logic

A combinational circuit (adder, decoder, multiplexer) has outputs that depend only on the present inputs. There is no memory: feed the same inputs and you always get the same output. A sequential circuit has outputs that depend on the present inputs and on the past history, which is stored as the state. That stored state is what gives a system memory, and the element that stores one bit of state is the flip-flop.

Sequential circuits split into two families. In synchronous circuits all state elements change only at the active edge of a common clock; in asynchronous circuits state can change as soon as inputs change, with no global clock. Exam tip: if a question mentions a clock driving every flip-flop together, it is synchronous; ripple counters are the classic asynchronous example.

Latch vs flip-flop

Both store one bit, and people use the words loosely, but examiners draw a sharp line. A latch is level-sensitive: while its enable (or clock) is held active, the output follows the input continuously — it is transparent. A flip-flop is edge-triggered: it samples the input only at the rising or falling edge of the clock and holds it for the rest of the period.

FeatureLatchFlip-flop
TriggerLevel (enable high/low)Edge (rising/falling)
TransparencyTransparent while enabledNever transparent
Clock inputEnable levelClock edge
Typical useSimple data hold, gatingRegisters, counters, FSMs
Sensitivity to glitchesHigh while enabledLow, samples once per edge

Common mistake: writing that a latch has no clock. A gated latch does have an enable that behaves like a clock; the real difference is level vs edge, not the presence of a clock.

SR latch: NAND and NOR

The simplest storage element is the SR (Set-Reset) latch, made from two cross-coupled gates. With two NOR gates, the active inputs are active-HIGH: S = 1 sets Q = 1, R = 1 resets Q = 0, S = R = 0 holds the previous state, and S = R = 1 is the forbidden condition (both outputs go to 0, violating the rule that Q and Q-bar are complements).

With two NAND gates the inputs are active-LOW (often labelled S-bar, R-bar): the inputs 0 0 are now the forbidden condition and 1 1 is the hold state. Exam tip: when a question just says SR latch with active-high inputs, use the NOR truth table below.

SRQ(next)State
00QHold (no change)
010Reset
101Set
11InvalidForbidden

Gated (clocked) SR latch

Adding two AND/NAND gates in front, controlled by an enable/clock line, gives the gated SR latch. When enable = 0 the latch holds regardless of S and R; when enable = 1 it behaves like the plain SR latch. This is the first step toward a true clocked flip-flop and is still level-sensitive.

D latch

The forbidden state of the SR latch is removed by tying R to the complement of S. Call that single input D (Data): when enable = 1 the output simply follows D (Q = D), and when enable = 0 it holds. The D latch is the workhorse transparent latch in real hardware. Because S and R can never both be 1, there is no invalid condition.

Level vs edge triggering

A level-triggered element is active for a whole clock level (the full high or full low). An edge-triggered element responds only at the instant of transition: positive-edge (low-to-high) or negative-edge (high-to-low). Edge triggering is what makes shift registers and counters reliable, because each stage samples its input exactly once per clock and cannot chase a value through several stages in one cycle.

Common mistake: confusing edge triggering with the master-slave arrangement. Master-slave achieves edge-like behaviour using two latches, but a true edge-triggered flip-flop uses a single edge-detecting structure. For exam answers, treat both as sampling once per clock edge.

SR, JK, D and T flip-flops

A flip-flop is a latch made edge-triggered. The four standard types are defined by their characteristic table (next state in terms of inputs and present state Q) and summarised by a characteristic equation.

SR flip-flop

Qnext = S + R'Q

Constraint: S AND R must be 0 (S and R cannot both be 1)

JK flip-flop

The JK flip-flop removes the forbidden state of the SR by defining J = K = 1 as a toggle. J acts like Set, K like Reset.

JKQ(next)Operation
00QHold
010Reset
101Set
11Q-barToggle
Qnext = JQ' + K'Q

JK characteristic equation; Q-bar is the complement of Q

D and T flip-flops

The D flip-flop stores its input each edge, so it is the natural delay element. The T (Toggle) flip-flop holds when T = 0 and inverts when T = 1, making it ideal for counters.

Qnext = D

D flip-flop: output simply equals the data input at the clock edge

Qnext = TQ' + T'Q = T ⊕ Q

T flip-flop: T = 1 toggles, T = 0 holds

Excitation tables

An excitation table answers the reverse question used in design: given a required transition from present state Q to next state Q(next), what inputs are needed? These are the single most exam-frequent tables in counter design, so memorise them.

QQ(next)SR (S,R)JK (J,K)DT
000, X0, X00
011, 01, X11
100, 1X, 101
11X, 0X, 010

Exam tip: the X (don't-care) entries in the JK table are why JK gives the simplest counter logic — those don't-cares simplify Karnaugh maps. The D excitation column is just equal to Q(next), and the T column is 1 whenever the state changes.

Race-around and master-slave JK

If a level-triggered JK flip-flop is given J = K = 1 while the clock is held high, the output keeps toggling for as long as the clock stays high. This uncontrolled multiple toggling is the race-around condition. It occurs when the clock pulse width is greater than the propagation delay of the flip-flop.

The fix is the master-slave JK: two latches in series, a master enabled when the clock is high and a slave enabled when the clock is low. The master captures the input on the high level but the output only updates when the clock goes low, so the device toggles exactly once per clock cycle. Reducing the clock pulse width (using narrow pulses or true edge triggering) is the alternative cure.

Flip-flop conversions and timing

Examiners love asking you to convert one flip-flop into another. The recipe: take the excitation table of the available flip-flop, the characteristic table of the desired one, derive the input equations with a Karnaugh map, and add the gates. Two classic results worth memorising:

  • JK to D: tie J = D and K = D-bar, so the JK behaves as a D flip-flop.
  • JK to T: tie J = K = T, so J = K = 1 toggles and J = K = 0 holds.
  • D to T: drive D with T XOR Q, giving the toggle behaviour.

Timing parameters drive the numerical questions. The setup time (tsu) is how long the data must be stable before the clock edge; the hold time (th) is how long it must stay stable after the edge; the propagation delay (tpd) is the delay from clock edge to a stable output. Violating setup or hold pushes the flip-flop into metastability.

fmax = 1 / (tpd + tcomb + tsu)

Maximum clock frequency of a synchronous path between two flip-flops

Common mistake: treating setup and hold as the same thing. Setup is before the edge, hold is after; both must be satisfied for correct capture.

Key Takeaways
  • Combinational outputs depend only on present inputs; sequential outputs also depend on stored state.
  • A latch is level-sensitive (transparent while enabled); a flip-flop is edge-triggered (samples once per edge).
  • SR latch: S=R=1 is forbidden (NOR) and the JK flip-flop fixes this by making J=K=1 a toggle.
  • Characteristic equations: SR Q(next)=S+R-bar.Q, JK Q(next)=J.Q-bar+K-bar.Q, D Q(next)=D, T Q(next)=T XOR Q.
  • Excitation tables (especially JK with its don-t-care entries) are the key to counter design.
  • Race-around happens in level-triggered JK with J=K=1; master-slave JK or edge triggering cures it.
  • Setup time is before the clock edge, hold time is after; violating either causes metastability.

Practice MCQs

Q1. Which statement best distinguishes a flip-flop from a latch?

  • A.A flip-flop has no clock while a latch does
  • B.A flip-flop is edge-triggered while a latch is level-sensitive
  • C.A latch can store data but a flip-flop cannot
  • D.A flip-flop is purely combinational

Correct Answer: B

Explanation: A latch is transparent and follows its input while the enable level is active (level-sensitive), whereas a flip-flop samples its input only at the clock edge (edge-triggered). Both have a clock or enable and both store one bit, so the other options are wrong.

Q2. In a NOR-based SR latch with active-high inputs, which input combination is forbidden?

  • A.S=0, R=0
  • B.S=0, R=1
  • C.S=1, R=0
  • D.S=1, R=1

Correct Answer: D

Explanation: For a NOR SR latch, S=R=1 forces both outputs to 0, breaking the requirement that Q and Q-bar be complements. So S=R=1 is the forbidden/invalid state. (For a NAND SR latch the forbidden combination is 0,0 instead.)

Q3. The characteristic equation of a JK flip-flop is:

  • A.Q(next) = J.Q-bar + K-bar.Q
  • B.Q(next) = J.Q + K.Q-bar
  • C.Q(next) = S + R-bar.Q
  • D.Q(next) = D

Correct Answer: A

Explanation: The JK characteristic equation is Q(next) = J.Q-bar + K-bar.Q. Option C is the SR equation and option D is the D flip-flop equation.

Q4. For a JK flip-flop, the required inputs for a transition from Q=1 to Q(next)=0 are:

  • A.J=0, K=0
  • B.J=X, K=1
  • C.J=1, K=0
  • D.J=X, K=0

Correct Answer: B

Explanation: From the JK excitation table, a 1 to 0 transition needs K=1 (to reset) while J is a don-t-care (X). Hence J=X, K=1.

Q5. The race-around condition in a JK flip-flop occurs when:

  • A.J=K=0 and the clock is high
  • B.J=K=1 and the clock pulse width is greater than the propagation delay
  • C.The setup time is violated
  • D.A D flip-flop is used as a toggle

Correct Answer: B

Explanation: With J=K=1 the output toggles, and if the clock stays high longer than the propagation delay the level-triggered JK toggles repeatedly and unpredictably. Master-slave construction or edge triggering eliminates it.

Q6. To convert a JK flip-flop into a T flip-flop, the connection is:

  • A.J = D, K = D-bar
  • B.J = K = T
  • C.J = T, K = 0
  • D.J = 0, K = T

Correct Answer: B

Explanation: Tying J = K = T makes J=K=1 (toggle) when T=1 and J=K=0 (hold) when T=0, exactly the T flip-flop behaviour. J=D, K=D-bar converts JK to a D flip-flop instead.

Q7. Setup time of a flip-flop is defined as the time for which data must be stable:

  • A.After the active clock edge
  • B.Before the active clock edge
  • C.During the entire clock high level
  • D.Equal to the propagation delay

Correct Answer: B

Explanation: Setup time is the minimum interval the data input must remain stable before the active clock edge. Hold time is the corresponding interval after the edge. Violating either can cause metastability.

Q8. In the excitation table, the D and T input columns for the transition Q=1 to Q(next)=1 are respectively:

  • A.D=0, T=1
  • B.D=1, T=0
  • C.D=1, T=1
  • D.D=0, T=0

Correct Answer: B

Explanation: The D input always equals Q(next), so D=1. The T input is 1 only when the state changes; here the state stays at 1, so T=0. Hence D=1, T=0.

MA

MCQ Arena Team

Subject reviewers & exam mentors

This guide is written and fact-checked by the MCQ Arena editorial team — engineering graduates and competitive-exam mentors who build the question banks used on the platform. Every concept, formula and MCQ is cross-checked against standard textbooks and the latest Wireless PSI / GPSC exam pattern. Spotted an error or have a correction? Tell us — we update articles as syllabi and feedback come in.

Last reviewed and updated on June 24, 2026.

Put it into practice

Reading strategy is one thing — building it into instinct takes timed reps. Practise with daily timed mock tests on MCQ Arena.

Start practising free

Keep reading