AQA A-level Physics · 3.13 Electronics · Paper 3 option

Logic gates, clocks and counters

AQA 7408 specification 3.13.5.1, 3.13.5.2, 3.13.5.3

Translate gate connections into Boolean expressions and use clock edges and reset conditions to predict the states of a counter.

Starting point

An OR gate has both inputs at logic 1. Does its output remain 1 or fall to 0?

Check your reasoning

An OR gate outputs 1 whenever at least one input is 1, so it stays at 1. Exclusive OR, written XOR or EOR, outputs 0 when both inputs are 1.

Combinational logic and truth tables

A combinational circuit has an output determined by the current inputs. Boolean notation uses A · B for AND, A + B for inclusive OR and ¬A for NOT. NAND and NOR invert the corresponding AND or OR result. Exclusive OR outputs 1 when exactly one of its two inputs is 1. A bubble at a gate terminal is an inversion. An input bubble changes the signal before the gate operation, and an output bubble changes the result afterwards.

Two-input truth table
ABANDORNANDNORXOR
0000110
0101101
1001101
1111000

Name intermediate nodes and calculate them for each input row before calculating the final output. To construct a circuit from a truth table, choose one AND term per required 1 row. Each term contains every input, inverted if that input is 0 in that row. Join the terms using OR. You can simplify the Boolean expression while checking that the full truth table still agrees.

Worked example · Detect A without B

An installation must signal only for A = 1 and B = 0. The matching expression is A · ¬B. One candidate feeds A and B to OR then ANDs the result with ¬B. If B = 1, the last input is 0 so the output is 0. If B = 0, the OR result is just A and the last input is 1. The candidate therefore matches all rows. Plain XOR also flags A = 0, B = 1, which the brief excludes.

ABORNOTANDY
The output Y is the OR result ANDed with inverted B. The small circle after the triangle shows inversion.

Try it · Decide whether two gate chains agree (4 marks)

A test unit has inputs A and B. Circuit P sends A and B to an AND gate and separately to an OR gate. The AND output is inverted, and this result and the OR output are inputs to the final AND gate. Circuit Q sends A into an inverter and then ANDs the inverted A with B. Give the Boolean expression and the four output values for P in the input order 00, 01, 10, 11. Decide whether P and Q are equivalent. If they differ, give one input row with both outputs.

Show solution and marking

P = ¬(A · B) · (A + B). Its four outputs are 0, 1, 1, 0. Q = ¬A · B has outputs 0, 1, 0, 0. At 10, P = 1 and Q = 0, so the circuits differ.

  1. Represents inversion of the whole AND result in the Boolean expression for P (1).
  2. Includes the OR term and final AND in the expression (1).
  3. Gives all four P outputs in the requested order (1).
  4. Gives row 10 with both outputs and uses it to reject equivalence (1).

Accept an equivalent Boolean expansion such as (A · ¬B) + (¬A · B).

Counters, reset logic and clock timing

A sequential circuit stores a state. An edge-triggered flip-flop updates at the specified transition of the clock, rising or falling, and holds its state between updates. A binary up counter advances the whole output word by one per active edge, then wraps at its maximum. An up/down pin can select the direction. A BCD counter counts the decimal digits 0 through 9 in a four-bit word before returning to 0000. A Johnson counter feeds the inverse of the last shift-register output back to the first. For a three-stage Johnson counter that shifts right, a possible sequence from reset is 000, 100, 110, 111, 011, 001, then 000.

A modulo-n counter repeats after n active edges. In one design, combinational logic detects state n and drives an asynchronous reset that returns the count to zero immediately, apart from small propagation delays. The detected state is a transient, while values 0 to n − 1 are held between edges. A synchronous reset instead takes effect when clocked. Always use the reset behaviour stated in the question.

Level10024t / ms
Clock trace with period 2.0 ms and width 0.50 ms. Rising-edge counting responds at 0, 2 and 4 ms. The duty cycle is 25% and the mark-to-space ratio is 1:3.

An astable oscillates without an external trigger and can provide clock pulses. The period T is the time between equivalent successive edges and frequency is 1/T. The pulse width is the high time, the duty cycle is high time divided by period and the mark-to-space ratio compares high time with low time. With other settings fixed, a larger timing resistance or capacitance generally increases the charge/discharge time in an RC astable and reduces the frequency.

Worked example · A counter that resets on four

A three-bit counter starts at 000, increments on each rising edge and has asynchronous reset driven by its most significant bit. It holds 000, 001, 010 and 011 in turn. The next edge briefly produces 100, which asserts reset and returns it to 000. With the 2.0 ms clock shown above, one sequence takes 4 × 2.0 = 8.0 ms and its repeat frequency is 125 Hz. The reset state detector responds to the transient 100 without holding it for a clock period.

Try it · Trace a counter that starts partway through a cycle (5 marks)

A three-bit up counter starts at 011. It increments on each rising edge of a 2.0 kHz clock and ignores falling edges. High occupies 40% of each period. The bit order is most significant to least significant. A decode network detects 110 and drives an immediate asynchronous reset to 000. List the stable output after each of the first five rising edges. Identify the transient decoded state, find the time between resets and calculate the clock’s high time.

Show solution and marking

The stable words after five edges are 100, 101, 000, 001 and 010. On the third edge the count briefly reaches 110 before the immediate reset. There are six intervals per complete repeat, so time between resets is 6 × (1/2000) = 3.0 ms. The clock period is 0.50 ms and high time is 0.40 × 0.50 = 0.20 ms.

  1. Obtains 100 and 101 on the first two rising edges (1).
  2. Gives 000, 001 and 010 on edges three to five (1).
  3. Identifies 110 as transient, not stable (1).
  4. Uses modulus six and 0.50 ms to obtain 3.0 ms (1).
  5. Obtains high time 0.20 ms (1).

Accept a written binary sequence or an equivalent table. Falling edges do not add counts.

Exam approach

  • Label intermediate gate outputs and use every input combination when checking full equivalence.
  • On a timing trace read equivalent edges and use the stated active edge. Keep pulse width and period distinct.
  • Apply the stated reset logic before listing held output states.

Specification coverage is AQA 3.13.5.1–3.13.5.3. AQA Electronics specification

Written by: PhysicsUK teaching team

Expertise: Built by a UK A Level Physics teacher and examiner.

Reviewed for: AQA A Level Physics 7408

Last reviewed: 2026-12-05

Methodology: How PhysicsUK resources are written and reviewed.

Corrections: Report an issue if you spot a mistake so this page can be reviewed.