Converting between analogue and digital signals is essential for storing, processing, and transmitting real-world information using digital systems such as computers, smartphones, and embedded electronics.
What are analogue and digital signals?
Understanding the difference between analogue and digital signals forms the foundation for exploring how data is converted between these two formats.
Analogue signals
An analogue signal is a continuous signal that can take on any value within a given range. It varies smoothly over time and has infinite precision, meaning that it can represent data with very fine detail.
Real-world examples of analogue signals:
Sound waves: produced by voices and instruments, which vary in amplitude and frequency.
Temperature: measured using a mercury thermometer, which can rise or fall continuously.
Light intensity: as perceived by the human eye.
Analogue signals are used widely in nature and everyday life. However, because computers operate using binary logic, they cannot directly store or process analogue data. To do so, the data must first be converted into digital form.
Digital signals
A digital signal is a discrete signal made up of distinct values. In computers and digital devices, these values are represented using binary digits (bits) — either 0 or 1.
Digital signals are:
Not continuous — they consist of discrete steps.
Practice Questions
FAQ
It is not possible to perfectly recreate an analogue signal using a DAC because digital representations are inherently limited by the sampling rate and bit depth used during the original analogue to digital conversion. Sampling only captures the signal at specific intervals, meaning any variation between these points is lost. Even if a high sampling rate is used, there are still gaps in the data that must be estimated during reconstruction. Additionally, quantisation introduces rounding errors, meaning the actual digital values differ slightly from the original analogue amplitudes. When these digital samples are converted back into analogue voltages by a DAC, they create a stepped waveform that approximates the original shape. A smoothing filter helps round off these steps, but it cannot recreate the exact nuances of the original analogue waveform. Furthermore, external factors such as electrical noise and limitations in DAC hardware can introduce further inaccuracies, resulting in a signal that closely resembles, but never perfectly matches, the original.
Oversampling refers to sampling an analogue signal at a rate significantly higher than the minimum required by the Nyquist Theorem. This technique improves the performance of both ADCs and DACs in several ways. For ADCs, oversampling spreads quantisation noise over a wider frequency range, allowing digital filters to remove unwanted high-frequency components and reduce noise in the final signal. This results in improved signal-to-noise ratio and higher effective resolution, even if the bit depth remains the same. In DACs, oversampling allows for more data points when reconstructing a waveform, producing a smoother output that reduces the reliance on complex analogue smoothing filters. Additionally, oversampling can simplify filter design by allowing the use of gentler roll-off filters that are easier to implement with consistent performance. Though it increases processing and data requirements, oversampling provides better fidelity and reduces artefacts, especially in high-quality audio and instrumentation systems where precision is critical.
Anti-aliasing filters are crucial in analogue to digital conversion because they prevent high-frequency components from corrupting the digitised signal. According to the Nyquist Theorem, the sampling rate must be at least twice the highest frequency present in the analogue signal to ensure accurate conversion. If this condition is not met, aliasing occurs—high-frequency signals become misrepresented as lower-frequency components, causing distortion and data corruption. An anti-aliasing filter is a low-pass filter applied before sampling to remove frequencies above the Nyquist limit. It ensures that only signals within the acceptable frequency range reach the ADC. Without it, the ADC may capture misleading or non-existent patterns, reducing the quality and accuracy of the digital representation. Anti-aliasing filters are particularly important in audio and signal processing applications where clarity and precision are essential. Their design must carefully balance effective frequency suppression with minimal impact on desired signal components near the cutoff point.
Differential non-linearity (DNL) in DACs refers to the variation in step size between consecutive output levels compared to the ideal uniform increment. In a perfect DAC, increasing the digital input by one unit (e.g. from 10001111 to 10010000) should result in a consistent, equal increase in output voltage. However, due to imperfections in circuit components, the actual step size may vary. If a step is too small or too large, it introduces non-linearity into the analogue output. DNL is measured by comparing each step’s actual size to the ideal step size. A DNL error greater than one least significant bit (LSB) can lead to missing codes, where certain output levels are skipped entirely. High DNL results in audible or visible distortion, especially in applications like audio playback or image generation. Minimising DNL is critical for DACs used in high-fidelity systems, as it ensures smooth and predictable signal output and preserves the accuracy of the original data.
Jitter and quantisation error are both forms of distortion that affect digital to analogue conversion, but they arise from different sources and have distinct effects. Quantisation error is introduced during the analogue to digital conversion process. It occurs when a continuous analogue value is approximated to the nearest digital level due to limited bit depth, resulting in small amplitude inaccuracies. This error is static and depends on resolution. On the other hand, jitter refers to timing inaccuracies in the DAC’s output signal. It happens when the digital samples are not converted at precisely regular intervals. Even if the sample values are correct, inconsistent timing—often caused by poor clock signal stability—can cause slight variations in waveform reconstruction. In audio, jitter leads to temporal distortion, affecting pitch and timing, and can be perceived as harshness or blurring. While quantisation error relates to amplitude precision, jitter affects the timing of signal playback and must be minimised with stable clocks and precise timing control in high-quality DAC systems.
