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
- 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
- 1Day 1-2: Review core terminology—analogue, digital, ADC, DAC, sampling rate, bit depth, and quantisation error.
- 2Day 3-4: Practice file size and bit rate calculations, memorising the formula: Size = Sample Rate (Hz) * Bit Depth (bits) * Duration (s) * Channels.
- 3Day 5-6: Study the Nyquist theorem and aliasing; draw visual diagrams showing how undersampling produces false, lower-frequency signals.
- 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)
Set out the causes, mechanisms, or reasons behind a process clearly. For ADC questions, explicitly detail the sequence of sampling, quantisation, and binary encoding.
Perform mathematical operations showing full working. Specify intermediate formulas, include channel multipliers, and convert correctly into requested binary units (e.g., MiB).
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)
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.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.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.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.Step 4: Round the final value to two decimal places as requested: 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.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.Step 2: Explain sampling. The ADC takes measurements of the analogue voltage at regular, discrete time intervals determined by the sampling rate.
- 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.