EuraStudy
Sequential logic adds memory to the gates of the previous chapter: its outputs depend on past inputs as well as present ones. This chapter develops the NAND latch as a one-bit store, the edge-triggered D-type flip-flop, and the ripple, decade and synchronous counters and registers built from them, including their use as frequency dividers.
4 sections~15 min reading time3 competenciesLevel Standard 2 · Advanced 2
basic level
At AS the focus is the NAND latch as a memory element and the D-type flip-flop, including its use to divide a clock by two.
higher level
The full A-Level develops multi-stage ripple counters, modulo-n and decade counters with reset logic, synchronous counters and shift registers.
Reading depth: In depth
Text size: Standard
Cross-coupled NAND latch
NAND latch behaviour
Active-low set and reset, with a hold state; both inputs low is forbidden.
NAND latch truth table
A NAND latch starts with . The inputs are applied in the order , then , then , then . Find after each step.
sets the latch, so .
Both inputs inactive: the latch holds, so stays at 1.
resets the latch, so .
Hold again: stays at 0.
Result: follows — the latch stores each command until the next set or reset, demonstrating one bit of memory.
Typical mistakes
Active revision
For a NAND (SR) latch, state the output that results from each input pair : (1,1), (0,1), (1,0) and (0,0), and identify which is forbidden.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
D-type flip-flop truth table
D-type rule
The output takes the data value at the clock edge and holds it otherwise.
Divide by two
With Q-bar fed back to D, the output toggles each edge, halving the frequency.
A D-type flip-flop is wired with connected to and clocked at . Starting from , list the output after the first four clock edges and state the output frequency.
, so on the edge .
, so . Edges 3 and 4 continue then .
completes one full cycle (0,1,0,1) for every two clock cycles, so .
Result: toggles on successive edges, giving a square wave — the clock divided by two.
Typical mistakes
Active revision
A D-type flip-flop has its output connected to its input and is clocked at . Describe the output waveform at and state its frequency.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
Four-stage ripple counter
Counter capacity
n flip-flops give 2^n states counting 0 to 2^n minus 1.
Frequency division
The k-th stage output is the clock divided by two to the power k.
Ripple counter timing
A ripple counter must divide a clock to . Find the number of flip-flops needed, the counter's modulus and the frequency at each stage.
, so the clock must be divided by .
Dividing by needs toggle flip-flops; the counter is modulo-16 (states 0 to 15).
The stage outputs are , , and at the last stage.
Result: Four flip-flops (modulo-16) give stage frequencies and , the last being the required output.
Typical mistakes
Active revision
A ripple counter must divide a clock down to . How many flip-flops are needed, what is the counter's modulus, and what is the frequency at each intermediate stage?
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
Decade counter state sequence
Modulo-n reset
Detect the binary pattern of n and use it to clear the counter.
Design the reset logic for a divide-by-six (modulo-6) counter made from a binary counter, and list the states it cycles through.
in binary, so the outputs that are 1 are and .
An AND gate fed from and goes high exactly when the count reaches ; its output drives the flip-flop resets.
The counter runs (0 to 5); on the next pulse it momentarily reaches , the AND fires, and it resets to .
Result: AND and to drive the reset; the counter cycles through the six states 0 to 5 before returning to 0.
Typical mistakes
Active revision
Design the reset logic for a modulo-6 counter built from a binary counter, and state the sequence of states it produces.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
References & sources
WJEC / Eduqas