A T (toggle) flip-flop flips its output once per clock and is the core of binary dividers and counters. This page shows how it derives from a D flip-flop and how it counts.
A T flip-flop has one control pin. With T 0 the clock leaves the state alone; with T 1 each clock flips Q once. Wire the D input of a D flip-flop to its own Qbar and gate that feedback with T and you have a T flip-flop: a controlled inverter that inverts once per clock while T is held high.
Divide by two is the plainest use: hold T at 1 and Q toggles every clock, so the output frequency is exactly half the clock with a 50 percent duty cycle. Chain stages: stage 1 halves the clock, stage 2 halves it again to a quarter, and so on. That is the bottom layer of every binary counter, one bit per T flip-flop.
Cascade n flip-flops with T held at 1, clocking the next stage from the previous Qbar for a ripple counter, or clocking all stages together and forming each T from combinational logic for a synchronous one, and you get an n-bit binary counter reaching 2^n minus 1. Ripple is simple but the high bits lag; synchronous is faster. Toggle-equals-count makes the T flip-flop the clearest doorway into counters.
| T | Clock edge | Next Q |
|---|---|---|
| 0 | Arrives | Hold |
| 1 | Arrives | Toggle |
| X | No edge | Hold |
| 1 | Continuous | Divide by 2 |
| n stages | Clocked | 2^n count |
| T 0 | Held | Latched |
In a ripple divider every stage adds delay, so many stages make the top bit visibly late; when speed matters use a synchronous T counter instead of a ripple chain.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Counters and dividers per GB/T 4728 and IEC 60617 symbols. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.