TutorChase logo
Login
AQA A-Level Computer Science

5.6.3 Analogue to digital and digital to analogue conversion

Computers handle digital data, but the world is analogue. Conversion between these forms allows digital devices to process sounds, images, and sensor signals from the real world.

What is analogue and digital data?

Analogue data is continuously variable. This means it can take any value within a given range. It changes smoothly over time without abrupt steps. Examples of analogue data include:

  • The pitch and volume of a human voice

  • The temperature measured by a traditional thermometer

  • The intensity of sunlight during the day

  • Voltage signals from a microphone or sensor

Digital data, by contrast, is discrete. It consists of fixed, clearly defined values—typically binary digits (0s and 1s)—that change in steps rather than continuously. Digital data is what computers can directly process, store, and transmit.

Since real-world phenomena are analogue in nature, but computers operate digitally, we need to convert between these two forms using:

  • Analogue-to-digital converters (ADCs) – to convert real-world signals into digital form

  • Digital-to-analogue converters (DACs) – to convert digital data back into real-world signals

These converters are essential in technologies like voice communication, audio and video playback, sensor systems, and automation.

Analogue-to-digital conversion (ADC)

Take your grades to the next level!

UPGRADING TO PREMIUM UNLOCKS
AI Tutor
AI-powered study assistant
instant feedback and guidance
Predicted Papers
Examiner-style predicted papers
based on recent exam trends
Practice Questions
All exam practice questions
by topic for each subject
Study Notes
All detailed revision notes
written by expert teachers
Cheat Sheets
Quick revision summaries
perfect for last-minute review
Past Papers
Complete collection
of practice and past exam papers
Email
Password
Confirm Password
Already have an account?

Practice Questions

FAQ

Quantisation error occurs because analogue signals can have infinitely many possible amplitude values, but digital systems can only represent a limited number of values determined by the bit depth. During quantisation, each analogue sample is rounded to the nearest available digital level. This rounding means the digital value is not exactly the same as the original analogue signal, creating a small but unavoidable difference known as quantisation error. The error cannot be completely eliminated because it is inherent to the conversion process whenever a continuous range is mapped to a discrete set. However, it can be significantly reduced by increasing the bit depth. A higher bit depth offers more levels to choose from, so the quantised value is closer to the original signal. In professional applications, dithering may also be used—this is the addition of low-level noise to reduce the perceived effects of quantisation error and improve sound quality in audio recordings.

Aliasing happens when a signal is sampled at a rate that is too low to accurately capture its frequency content. According to the Nyquist Theorem, the sampling rate must be at least twice the frequency of the highest component in the analogue signal. If this condition is not met, high-frequency components of the signal become indistinguishable from lower-frequency ones during sampling. These frequencies fold back into the sampled signal and appear as false, lower-frequency artefacts. This results in distortion that can completely misrepresent the original waveform. Once aliasing occurs, it cannot be undone through software or filtering. To prevent aliasing, an analogue anti-aliasing filter is typically used before sampling. This filter removes frequencies above half the intended sampling rate, ensuring that no aliasing occurs. Using a sufficiently high sampling rate and effective filtering ensures that the digitised signal retains an accurate representation of the original analogue input.

An anti-aliasing filter is a crucial component in the analogue-to-digital conversion process, designed to prevent the occurrence of aliasing. This filter is applied to the analogue signal before sampling begins. It is typically a low-pass filter, which means it allows low-frequency components to pass through while blocking higher-frequency signals that could cause problems during sampling. The threshold of this filter is set just below half the sampling rate—the Nyquist frequency. By removing frequencies that exceed this limit, the anti-aliasing filter ensures that the signal can be accurately sampled without introducing distortion from overlapping frequencies. Without such a filter, higher-frequency components of the signal could fold into the lower-frequency range and produce incorrect data in the digital signal, a phenomenon known as aliasing. In audio and video processing, this type of distortion can degrade quality significantly. Therefore, using an anti-aliasing filter is essential for preserving signal integrity in digital systems.

The precision of a digital-to-analogue converter (DAC) refers primarily to its bit depth, which determines how finely it can convert binary values into analogue voltage levels. A DAC with higher bit depth can represent a greater number of discrete voltage steps, allowing for smoother and more accurate reconstructions of the original waveform. Low-precision DACs produce output signals that contain noticeable steps or abrupt transitions, especially in sensitive applications like high-quality audio or video playback. This limited resolution can introduce distortion, especially in quiet or subtle parts of a signal where differences between levels are more noticeable. Additionally, low-precision DACs are more prone to quantisation noise, where the limited resolution creates audible or visible artefacts. The analogue smoothing filter applied after DAC output can help mitigate some of these effects, but it cannot fully compensate for poor resolution. In critical applications, such as professional audio equipment or medical devices, high-precision DACs are essential to ensure fidelity and accuracy.

Yes, ADCs and DACs can operate in real-time, and this is essential in many systems such as live audio streaming, video playback, communications, and control systems. Real-time operation means that the converter must process signals continuously with minimal delay. However, achieving real-time performance introduces several challenges. First, the conversion must be fast enough to keep up with the incoming or outgoing data stream. For ADCs, this means sampling, quantising, and encoding each analogue sample without introducing lag. For DACs, it means decoding and outputting analogue values at precise intervals. Timing accuracy is critical, as any inconsistency can lead to jitter—irregularities that affect audio and video quality. Secondly, real-time converters must manage the trade-off between speed and resolution. High-resolution conversions take more processing time, which can be difficult to achieve in real-time without specialised hardware. Finally, systems must handle data buffering, noise filtering, and signal integrity to ensure that real-time conversion does not degrade signal quality.

Hire a tutor

Please fill out the form and we'll find a tutor for you.

1/2
Your details
Alternatively contact us via
WhatsApp, Phone Call, or Email