Analog-to-digital conversion lets computers, phones, sensors, and controllers work with real-world signals such as sound, temperature, light, and voltage. These signals are usually analog, meaning they vary continuously in time and amplitude. An analog-to-digital converter, or ADC, turns that smooth signal into numbers that a digital system can store, process, and transmit.
This matters because nearly every modern measurement and communication system depends on accurate conversion between physical signals and digital data.
An ADC works by sampling the input at regular time intervals and then quantizing each sample to the nearest allowed digital level. The sampling rate controls how often the signal is measured, while the bit resolution controls how many amplitude levels are available. The Nyquist rule says the sampling rate must be more than twice the highest signal frequency to avoid aliasing.
A digital-to-analog converter, or DAC, can then turn the digital values back into an analog output, often using filtering to smooth the reconstructed waveform.
Key Facts
- Sampling converts a continuous-time signal into values measured at discrete times.
- Quantization rounds each sampled voltage to the nearest allowed digital level.
- For an N-bit ADC, the number of levels is 2^N.
- Voltage step size is approximately ΔV = Vref / 2^N for a unipolar ADC range from 0 to Vref.
- Nyquist condition: fs > 2fmax, where fs is sampling frequency and fmax is the highest signal frequency.
- Quantization error is usually within ±0.5 LSB, where LSB is the least significant bit voltage step.
Vocabulary
- Analog signal
- A signal that can vary continuously in time and amplitude, such as a microphone voltage.
- Sampling rate
- The number of times per second an ADC measures the input signal, usually measured in samples per second or hertz.
- Quantization
- The process of assigning each sampled analog value to the nearest available digital level.
- Resolution
- The number of bits used to represent each sample, which determines how many voltage levels the ADC can distinguish.
- Aliasing
- A distortion that occurs when a signal is sampled too slowly, causing high-frequency content to appear as a false lower frequency.
Common Mistakes to Avoid
- Using fs = 2fmax as a safe sampling rate, because real systems need fs greater than 2fmax and often use a margin plus an anti-aliasing filter.
- Confusing sampling with quantization, because sampling chooses times while quantization chooses amplitude levels.
- Assuming more bits increases the maximum frequency an ADC can measure, because bit depth improves amplitude resolution while sampling rate controls time resolution.
- Ignoring the input voltage range, because an ADC can clip signals outside its allowed range even if the sampling rate and bit resolution are high.
Practice Questions
- 1 An 8-bit ADC uses a 0 V to 5.0 V input range. How many quantization levels are available, and what is the approximate voltage step size?
- 2 A sensor signal contains frequencies up to 3.5 kHz. What is the minimum sampling frequency required by the Nyquist condition?
- 3 Explain why a DAC output often needs a low-pass filter after converting digital samples back into an analog voltage.