Combinational Logic, Counters and Astables
Digital circuits are built from logic gates. In combinational logic the output depends only on the present inputs; in sequential logic, such as counters, it also depends on what happened before, driven by clock pulses from an astable. It is part of Electronics, an AQA Paper 3 Section B option (spec 3.13.5.1 to 3.13.5.3).
Key points
- Electronics is one of the five options in AQA A Level Physics (7408). It is examined in Section B of Paper 3, so only study it if it is the option your school has chosen. The data and formulae booklet has a page of its equations.
- Boolean notation: NOT A is written $\bar{A}$, A AND B is $A \cdot B$ and A OR B is $A + B$. NAND and NOR are AND and OR followed by NOT. An exclusive OR (EOR) gate gives 1 only when its two inputs are different.
- To analyse a circuit, work out the output of each gate in its own truth-table column. To design one, find the rows where the output must be 1 and combine those conditions with AND and OR. Gates are treated as building blocks.
- A binary counter counts clock pulses in binary; a BCD counter counts 0 to 9 and then resets; a Johnson counter passes a pattern along its outputs, giving twice as many states as it has outputs. Counters have clock, reset and up or down inputs.
- A modulo-$n$ counter counts from 0 to $n - 1$: gates detect the count $n$ and drive the reset pin, so the counter returns to zero at once.
- An astable has no stable state, so it oscillates and provides a clock. The period is the mark time (output high) plus the space time (output low), and the frequency is $\frac{1}{T}$. The mark-to-space ratio is mark time divided by space time; the duty cycle is mark time divided by the period. An external resistor and capacitor set the frequency.
Worked example
Question. An astable's output is high for 3.0 ms and low for 1.0 ms in each cycle. Calculate its frequency, mark-to-space ratio and duty cycle. It clocks a modulo-6 counter that starts at zero: what is the count after 20 pulses?
- $T = 3.0 + 1.0 = 4.0$ ms, so $f = \frac{1}{4.0 \times 10^{-3}} = 250$ Hz
- Mark-to-space ratio $= \frac{3.0}{1.0} = 3.0$ and duty cycle $= \frac{3.0}{4.0} = 0.75$
- The counter resets every 6 pulses, and $20 = 3 \times 6 + 2$, so the count is 2.
Answer. 250 Hz; 3.0; 0.75; 2
Common mistakes
- Confusing the mark-to-space ratio with the duty cycle.
- Thinking a modulo-$n$ counter shows the count $n$: it resets as soon as $n$ appears.
- Treating an EOR gate as an OR gate: it gives 0 when both inputs are 1.