T Flip Flops: What is it? (Truth Table, Circuit And Timing Diagram)

what is a t flip flop
💡
Key learnings:
  • T Flip Flop Definition: A T flip flop, also known as a toggle flip flop, is defined as a type of flip flop that changes its output state with each clock pulse when its input is high.
  • Truth Table: The truth table of a T flip flop shows that the output toggles when T is high and the clock signal is high, otherwise, the output remains unchanged.
  • Circuit from JK Flip Flop: A T flip flop can be constructed from a JK flip flop by connecting the J and K inputs together.
  • Timing Diagram: The t flip flop timing diagram shows how the output state changes in sync with the input T signal and clock pulses.
  • Applications: T flip flops are commonly used in digital counters and frequency dividers due to their toggle feature.

What is a T Flip Flop?

A T flip-flop (toggle flip-flop) has one data input T plus a clock. T = 1 makes the output flip on the active clock event. T = 0 holds the output. The usual build ties both J and K of a JK flip flop to that T pin.

The output is a logic 0 or 1, not a power switch. With T = 1 it complements Q. With T = 0 it holds Q. The next-state rule is Q+ = T XOR Q.

The stored truth table below assumes an active clock. An edge-triggered part (the usual 74-series JK used as a T) updates only on the active clock edge, not for the whole time the clock sits high. A level-sensitive teaching latch would follow T while enable is high. Read the datasheet for the part you have.

The stored symbol is the usual T block with Q and Q-bar. A triangle on the clock pin means edge trigger.

Symbol Of T Flip Fop
Symbol of T Flip Fop

T Flip Flop Truth Table

T is the only data input. A clock (or enable) is still required. The device does not “only work” while the clock is high; it samples on the active event and otherwise holds.

If T = 0 at the capturing clock event, Q stays Q.

If T = 1 at that event, Q becomes the complement of the old Q.

Table-1 is that next-state table. The stored note treats clock as high for every row. Qn is the present state and Qn+1 is the next state after the active clock event.

TQnQn+1
000Unchanged/hold
011Unchanged/hold
101Toggle
110Toggle
Table-1 Truth table of T Flip flop

T Flip Flop Circuit

A standalone T-only 74-series part is uncommon. The usual method is a dual JK such as MC74HC73A (negative-edge JK with clear): tie J to K and use that node as T.

You can also build T behaviour from SR or D cells with extra gates. Tying J = K is the shortest path.

T Flip Flop Using JK Flip Flop

No extra gates: short J to K and call that pin T.

Use table-1 with the JK excitation table (table-2). X means “don’t care.”

QnQn+1JK
000X
011X
10X1
11X0
Table-2 Excitation Table of JK Flip Flop

The combined table-3 lists T, present Q, next Q and the J/K values that produce that change.

TQnQn+1JK
0000X
011X0
1011X
110X1
Table-3 Extended Excitation Table of JK Flip flop And T Flip flop

Map those J and K columns on a K-map.

K-map for J:

K Map For Input J
K-map for Input J

    \[  J = T \]

K-map for K:

K Map For Input K
K-map for Input K

    \[ K = T \]

The maps reduce to J = T and K = T, so a common T pin on J and K is a T flip-flop. The stored figure shows that wiring.

Circuit Diagram Of T Flip Flop From Jk Flip Flop
Circuit Diagram of T Flip Flop from JK Flip Flop

T Flip Flop Using SR Flip Flop

The same conversion from a SR Flip flop needs two AND gates, as the maps below show.

Use table-1 and the SR excitation table (labelled table-3 again on this page).

QnQn+1SR
000X
0110
1001
11X0
Table-3 excitation table of SR flip flop

Combined T-to-SR table:

TQnQn+1SR
0000X
011X0
10110
11001
Table-4 Extended Excitation Table of SR And T Flip flop

K-maps for S and R:

K-map for S:

K Map For Input S
K-map for Input S

    \[ S = T Q_{n}' \]

K-map for R:

K Map For Input R
K-map for Input R

    \[ R = T Q_n \]

From those expressions, S is T AND Q-bar of the present state, not Qn+1, and R is T AND present Qn.

That is two AND gates into S and R, as in the stored figure.

Circuit Diagram Of T Flip Flop From Sr Flip Flop
Circuit Diagram of T Flip Flop from SR Flip Flop

T Flip Flop Using D Flip Flop

From a D flip flop, D must equal the desired next Q. Use table-1 and the D excitation table.

QnQn+1D
000
011
100
111
Table-5 Excitation table of D Flip Flop

Conversion table: D equals the desired next Q for each T row.

TQnQn+1D
0000
0111
1011
1100
Table-6 Extended Excitation Table of D And T Flip flop

K-map for D:

K Map For Input D
K-map for Input D

The diagonal grouping is XOR. D in terms of T is the next two stored lines (not “expiration”).

    \[ D = T' Q_n + T Q_n' \]

    \[ D = T \oplus Q_n \]

So D = T XOR Q, which needs one XOR gate in front of D.

The D-to-T figure caption is the line above; this page does not store a separate D-circuit image after it.

T Flip Flop Timing Diagram

T does not toggle “the input.” With T = 1 at the clock event, the output Q toggles.

The stored timing figure starts at T0 with Qn low and Qn+1 (Q-bar) high. Treat the traces as matching that figure.

T Flip Flop Timing Diagram
T Flip Flop Timing Diagram

At the stored T1 mark, T goes low to high. On the figure, Qn and Qn+1 swap, so Qn is high and Qn+1 is low. That matches a toggle if the clock event sits there on the figure.

At T2, T goes high to low. The stored figure holds the outputs.

At T3, T goes low to high again and the figure shows another Qn / Qn+1 swap.

At T4, T goes high to low and the figure holds until T5.

On that figure, T shows two cycles from T1 to T5 while Qn and Qn+1 show one. The usual ÷2 hook-up is T tied high and the signal to divide fed into the clock, not T used as the clock. Both uses rely on the toggle rule.

Want To Learn Faster? 🎓
Get electrical articles delivered to your inbox every week.
No credit card required—it’s 100% free.

About Electrical4U

Electrical4U is dedicated to the teaching and sharing of all things related to electrical and electronics engineering.