Skip to topic
    ← Back to course topics

    Analogue/digital conversion — AQA A-Level Computer Science

    Analogue-to-digital conversion transforms continuous physical real-world signals into discrete binary values via sampling, quantisation, and encoding using an ADC. Digital-to-analogue conversion reconstructs continuous signals from discrete digital representations using a DAC, governed fundamentally by the Nyquist theorem.

    Analogue/digital conversion explained

    This statement asks you to describe how an analogue-to-digital converter (ADC) and a digital-to-analogue converter (DAC) work, not merely to name them.

    Read the full explanation

    A principle of operation explains the input, internal steps and output. For an ADC, a continuously varying analogue voltage is sampled at discrete intervals; each sample is quantised to the nearest level and output as a binary code, with resolution set by the number of bits and sampling rate by how often samples are taken. For a DAC, a binary input is applied to weighted resistors or a ladder network so each bit contributes a proportional voltage; the sum produces a stepped analogue output that approximates the original signal. Describe each device separately as input, process and output, using correct terms.

    Your focus

    1. Describe the principles of operation of:

    Which command word is this?

    Set out the causes, mechanisms, or reasons behind a process clearly. For ADC questions, explicitly detail the sequence of sampling, quantisation, and binary encoding.

    Analogue/digital conversion exam tips

    Topic Overview

    Analogue-to-digital conversion (ADC) and digital-to-analogue conversion (DAC) form the essential bridge between the continuous, real-world physical domain and discrete, digital computer architectures. While physical phenomena such as sound, temperature, and light vary smoothly and infinitely over time, digital processors can only store and process finite sequences of binary digits.

    This topic covers the mechanisms of sampling, quantisation, and binary encoding, alongside the mathematical constraints established by the Nyquist theorem. Mastery of these concepts is vital across A-Level Computer Science, directly underpinning multimedia file representations, digital signal processing, sensor integration, and computer systems architecture.

    Key Concepts
    • →Analogue vs Digital: Analogue signals are continuous in time and amplitude with infinite possible states, whereas digital signals are discrete, represented as binary code at finite intervals.
    • →ADC Process (Sampling and Quantisation): Sampling records signal amplitude at regular temporal intervals (sample rate in Hz); quantisation maps each sample to the nearest discrete level determined by bit depth (2^n levels).
    • →Nyquist Theorem: To accurately reconstruct an analogue signal without aliasing artifacts, the sampling frequency (fs) must be at least twice the maximum frequency component (fmax) present in the signal.
    • →DAC and Filtering: Digital-to-analogue conversion transforms stored binary values back into stepped analogue voltages, which pass through a low-pass reconstruction filter to smooth out staircase quantization noise.
    Marking Points
    • Identifies the ADC input as a continuously varying analogue signal.
    • Explains that the ADC samples at discrete intervals and quantises each sample to the nearest available level.
    • Describes the ADC digital output as a binary code representing each sample, with resolution set by bits per sample.
    • Describes the DAC input as a binary code and explains that weighted resistors or a ladder network convert each bit into a proportional voltage.
    • Describes the DAC output as a summed, stepped analogue voltage that approximates the original signal.
    • Distinguishes sampling rate (how often samples are taken) from resolution (number of bits per sample).
    Examiner Tips
    • 💡Structure each description as input, process, output so no step is missed.
    • 💡Cover both the ADC and the DAC, since the statement requires both directions.
    • 💡Use the terms sampling and quantisation explicitly rather than vague wording like 'converts it'.
    • 💡Always check whether the question specifies mono (1 channel) or stereo (2 channels) when computing audio file size or bit rate.
    • 💡When explaining quantisation error, define it precisely as the difference between the actual continuous analogue amplitude and the discrete value assigned to it during quantisation.
    Common Mistakes
    • Treats the ADC output as analogue rather than a sequence of binary values; the ADC output is digital.
    • Describes the DAC as sampling an analogue input; the DAC takes a binary input and produces an analogue output.
    • Confuses sampling rate with resolution; sampling rate is how often samples are taken, resolution is the number of bits per sample.
    • Omits the DAC entirely and describes only analogue-to-digital conversion.
    • Believing higher sample resolution increases the range of audio frequencies that can be captured: Sample resolution only increases the number of distinct amplitude levels (dynamic range and reduced quantisation noise); the maximum reproducible frequency is governed solely by the sample rate.
    • Using decimal prefixes (1000^2) instead of binary prefixes (1024^2) when calculating storage requirements in mebibytes (MiB) or kibibytes (KiB), resulting in lost arithmetic marks in AQA exams.
    Revision Plan
    1. 1Day 1-2: Review core terminology—analogue, digital, ADC, DAC, sampling rate, bit depth, and quantisation error.
    2. 2Day 3-4: Practice file size and bit rate calculations, memorising the formula: Size = Sample Rate (Hz) * Bit Depth (bits) * Duration (s) * Channels.
    3. 3Day 5-6: Study the Nyquist theorem and aliasing; draw visual diagrams showing how undersampling produces false, lower-frequency signals.
    4. 4Day 7: Work through past AQA exam questions on sound digitisation, focusing on precise definitions and multi-step unit conversions.
    Exam Question Types
    • 📋Calculation questions: Requiring calculation of file sizes, bit rates, or recording durations using binary prefixes (KiB, MiB).
    • 📋Explanatory structured questions: Requiring step-by-step descriptions of the ADC/DAC hardware conversion pipeline.
    • 📋Theoretical/Scenario questions: Evaluating the trade-offs of changing sample rate or bit depth, or applying the Nyquist theorem to a specified analogue input.
    Command Word Expectations (AQA)
    Explain

    Set out the causes, mechanisms, or reasons behind a process clearly. For ADC questions, explicitly detail the sequence of sampling, quantisation, and binary encoding.

    Calculate

    Perform mathematical operations showing full working. Specify intermediate formulas, include channel multipliers, and convert correctly into requested binary units (e.g., MiB).

    State

    Provide a concise, direct definition or value without elaboration, such as quoting the exact mathematical relationship of the Nyquist theorem.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Confusing sample rate with sample resolution, or conflating bit rate with total file size in sound calculations.
    ❌ Weak Answer (Loses Marks):Sample rate is the quality of the sound and resolution is how many bytes it takes up per second.
    Example improved answer:Sample rate is the number of samples taken per second, measured in Hertz (Hz). Sample resolution (bit depth) is the number of bits allocated to represent the amplitude of each individual sample. Bit rate is calculated as sample rate multiplied by sample resolution multiplied by the number of audio channels.
    Examiner Tip: Always state the precise units (Hz for rate, bits for resolution) and explain that resolution dictates the number of distinct quantisation levels (2^n).
    Pitfall: Incomplete or inaccurate statements of the Nyquist theorem, particularly omitting the word 'strictly greater than' or forgetting the maximum frequency component.
    ❌ Weak Answer (Loses Marks):The Nyquist theorem says you must sample at double the frequency to get good audio.
    Example improved answer:The Nyquist theorem states that the sampling rate must be at least twice the highest frequency component present in the analogue signal (fs >= 2 * fmax) to enable accurate reproduction without aliasing.
    Examiner Tip: Explicitly identify that the theorem refers to the 'highest frequency component' of the original signal, not the average or fundamental frequency, to prevent aliasing distortion.
    Step-by-Step Worked Solutions

    Question: An uncompressed stereo audio track is recorded for 3 minutes at a sample rate of 44.1 kHz using a 16-bit sample resolution. Calculate the minimum storage size required for this recording in mebibytes (MiB). Give your answer to two decimal places.

    1. 1.Step 1: Identify all given parameters and convert time into seconds. Duration = 3 minutes * 60 = 180 seconds. Channels = 2 (stereo). Sample rate = 44,100 Hz. Sample resolution = 16 bits = 2 bytes per sample.
    2. 2.Step 2: Calculate total bits or bytes. Total size in bytes = Sample rate * Sample resolution (in bytes) * Channels * Duration (in seconds) = 44,100 * 2 * 2 * 180 = 31,752,000 bytes.
    3. 3.Step 3: Convert bytes to mebibytes (MiB) using binary multiples (divided by 1024^2, not 1000^2). Total size in MiB = 31,752,000 / (1024 * 1024) = 31,752,000 / 1,048,576 = 30.28100586 MiB.
    4. 4.Step 4: Round the final value to two decimal places as requested: 30.28 MiB.
    Final Answer: 30.28 MiB

    Question: Explain the role of an analogue-to-digital converter (ADC) when recording a human voice using a microphone, referencing sampling and quantisation.

    1. 1.Step 1: Describe the input analogue signal. The microphone converts sound waves into a continuous analogue electrical voltage signal with infinite possible amplitude values.
    2. 2.Step 2: Explain sampling. The ADC takes measurements of the analogue voltage at regular, discrete time intervals determined by the sampling rate.
    3. 3.Step 3: Explain quantisation and encoding. Each sampled continuous amplitude is mapped (quantised) to the nearest available discrete voltage level defined by the sample resolution (bit depth), which is then encoded into a corresponding binary number sequence.
    Final Answer: The microphone generates a continuous analogue voltage. The ADC samples this voltage at regular time intervals and quantises each measured amplitude by approximating it to the nearest discrete digital level from 2^n possible states, outputting a sequence of binary values.
    Active Recall Memory Test
    What mathematical relationship defines the minimum sampling frequency under the Nyquist theorem?
    Key Fact: fs >= 2 * fmax (Sampling frequency must be at least double the highest frequency component).
    How does increasing the sample resolution (bit depth) affect the quantisation error and dynamic range?
    Key Fact: It provides more discrete quantisation levels (2^n), reducing quantisation error and increasing the dynamic range.
    What is the primary role of a low-pass reconstruction filter in a Digital-to-Analogue Converter (DAC)?
    Key Fact: It smooths out the stepped 'staircase' voltage output of the DAC by removing high-frequency harmonic artefacts.
    State the formula used to calculate the bit rate of an uncompressed digital audio stream.
    Key Fact: Bit rate = Sampling Rate (Hz) * Sample Resolution (bits) * Number of Channels.
    Frequently Asked Questions
    What is the difference between sample rate and sample resolution?
    Sample rate refers to how frequently an analogue signal is measured per second, expressed in Hertz (Hz). Sample resolution (bit depth) refers to the number of bits allocated to store each measurement, which determines the number of discrete amplitude levels available (2^n). While sample rate dictates the maximum frequency that can be captured, sample resolution dictates the dynamic range and the accuracy of the amplitude representation.
    Why is CD-quality audio sampled at 44.1 kHz?
    The normal human hearing range extends up to approximately 20 kHz. According to the Nyquist theorem, capturing signals up to 20 kHz requires a sampling frequency strictly greater than twice that value (at least 40 kHz). The rate of 44.1 kHz allows for a margin above 40 kHz, providing headroom for steep analogue anti-aliasing low-pass filters to roll off without cutting off audible human frequencies.
    What is aliasing and why is it problematic in ADC?
    Aliasing occurs when an analogue signal is sampled at a rate less than twice its maximum frequency component. When undersampled, higher frequencies cannot be correctly reconstructed and appear instead as lower-frequency artefacts or false notes in the output. This causes irreversible distortion and false frequencies that ruin signal fidelity.
    What is quantisation error?
    Quantisation error is the difference between the true analogue voltage amplitude at a given instant and the closest discrete digital value assigned to it by the ADC. Because continuous values must be rounded to a finite set of steps (2^n), a small rounding discrepancy is introduced. In audio, this error manifests as low-level background hiss known as quantisation noise.
    Should I divide by 1000 or 1024 for audio file size calculations?
    In AQA A-Level Computer Science, check the unit requested: binary prefixes (KiB, MiB, GiB) strictly require division by powers of 2 (1024, 1024^2, 1024^3), whereas decimal prefixes (KB, MB, GB) use powers of 10 (1000, 1000^2, 1000^3). If the question asks for MiB, always divide total bytes by 1,048,576 (1024 * 1024).