Contents

Digital Electronics
Number Systems
Logic Gates
Boolean Algebra
Combinational Circuits
Sequential Circuits
Memory & PLDs
Digital System Design
Other Topics
Other Subjects
Section Progress22%

6 of 27 articles

T Flip-Flop

Toggle flip-flop, T=1 toggles, frequency division.

Darshan N
Updated: 19 March 2026
12 min read

The T flip-flop is derived from the JK flip-flop by permanently tying J and K together. The single input T controls whether the flip-flop holds its current state or toggles to the opposite state on each active clock edge. Its simplicity makes it the natural building block for counters and frequency dividers.

From a GATE perspective, the T flip-flop is tested through counter design, frequency division calculations, and flip-flop conversion problems. Understanding the toggle behavior and its relationship to binary counting is fundamental.

T Flip-FlopTCLKQQ'ToggleClockOutputInv.J = K = T(internally tied)BehaviorT=0 at CLK edge: Q(t+1) = Q(t) — holds stateT=1 at CLK edge: Q(t+1) = Q'(t) — toggles
Figure 1: T Flip-Flop derived from JK by connecting J and K together

Core Concept Explanation

The T flip-flop is constructed by connecting the J and K inputs of a JK flip-flop to a single common input T. Because J = K = T always, only two of the four JK states are accessible. When T=0, it corresponds to J=K=0, which is the hold state. When T=1, it corresponds to J=K=1, which is the toggle state.

This behavior is highly useful for counting applications. Every time T=1 and an active clock edge arrives, the output flips. If T is held permanently at logic 1, the flip-flop divides the clock frequency by 2. The output Q produces one full cycle for every two cycles of the clock, giving a 50 percent duty cycle output at half the input frequency.

The hold state when T=0 is equally important. In programmable counters and state machines, T can be conditionally driven to stop toggling at specific counts. This is how synchronous binary counters are designed: the T input of each higher-order flip-flop is connected to the AND of all lower-order Q outputs, creating the carry logic.

Mathematical Expression

The characteristic equation captures the two behaviors in a compact XOR form, which directly reveals the toggle relationship.

The characteristic equation is: Q(t+1) = T XOR Q(t). When T=0, XOR with any value returns the same value, so Q(t+1) = Q(t). When T=1, XOR inverts the value, so Q(t+1) = Q'(t). The XOR structure is not coincidental. It directly models the toggle operation and also appears in the sum bit of binary addition, connecting the T flip-flop to the fundamentals of binary arithmetic.

The excitation table for the T flip-flop: for a 0-to-0 transition, T must be 0. For 0-to-1, T must be 1. For 1-to-0, T must be 1. For 1-to-1, T must be 0. The pattern is simply T = Q(t) XOR Q(t+1). This means T must be 1 whenever a change is required and 0 when the state must hold.

Practical Understanding

The primary practical application of the T flip-flop is in binary ripple counters. A single T flip-flop with T=1 permanently divides the clock by 2. Cascading N such flip-flops divides the clock by 2 raised to the power N. A 4-stage chain divides by 16, producing a count sequence 0000 through 1111 and wrapping around.

In synchronous counters, the T inputs are driven by combinational logic derived from the current state. For example, in a 4-bit synchronous binary counter, T of the LSB is always 1, T of the second bit equals Q0, T of the third bit equals Q0.Q1, and T of the fourth bit equals Q0.Q1.Q2. This creates carry propagation through logic rather than through chained clock edges, eliminating the propagation delay problem of ripple counters.

Example
Given:
Four T flip-flops are cascaded with T=1 permanently and each Q feeds the next CLK. Input clock = 160 kHz. Find the output frequency of the 4th flip-flop.

Why this formula applies:
Each T flip-flop with T=1 is a divide-by-2 circuit. N cascaded stages divide by 2^N.

Formula:
f_out = f_in / 2^N

Substitution:
f_out = 160 kHz / 2^4

Calculation:
f_out = 160,000 / 16 = 10,000 Hz

Final Answer:
Output frequency = 10 kHz. Four cascaded T flip-flops divide 160 kHz by 16.
Exam Tip: T flip-flop characteristic equation Q(t+1) = T XOR Q(t) is directly asked in GATE. Also note that the excitation input T = Q(t) XOR Q(t+1), which means T=1 whenever the state must change and T=0 when it must stay.
  • T flip-flop is derived from JK by connecting J=K=T. Only hold and toggle modes are accessible.
  • Characteristic equation: Q(t+1) = T XOR Q(t). XOR form directly encodes the toggle behavior.
  • T=1 permanently: flip-flop divides clock frequency by 2 with 50 percent duty cycle output.
  • N cascaded T flip-flops in toggle mode: output frequency = f_in divided by 2^N.
  • Synchronous counter design uses T = AND of all lower-order Q outputs for each bit position.

Loading lab...

Quick Revision

  • Characteristic equation: Q(t+1) = T XOR Q(t)
  • T=0: hold state. T=1: toggle state. Only two behaviors unlike JK which has four.
  • Excitation table: T = Q(t) XOR Q(t+1). T=1 when state changes, T=0 when state holds.
  • Frequency division: N cascaded T flip-flops (T=1) divide input clock by 2^N.
  • Ripple counter: each Q output drives the clock of the next stage. Simple but has propagation delay.
  • Synchronous counter: T inputs driven by combinational AND logic, all flip-flops share same clock.
  • GATE trap: T flip-flop cannot be initialized to a known state without a separate reset input unless one is explicitly provided. Asynchronous preset and clear pins serve this purpose.

T Flip-Flop Quiz

Test your knowledge of toggle flip-flop operation and frequency division applications.

Question 1 of 3

Q1.A T flip-flop with T=1 receives a clock signal of frequency f. What is the frequency of the Q output?