ADC Interfacing

Sampling rate, resolution, reference voltage.

Darshan N
Updated: 19 March 2026
6 min read

Interfacing an ADC correctly to a microcontroller or signal processing system requires careful attention to three critical parameters: sampling rate, resolution, and reference voltage. Choosing incorrect values for any of these can lead to aliasing, quantization errors, or inaccurate readings even if the ADC hardware is functioning correctly. This topic is directly applicable to embedded system design and appears in GATE questions related to data acquisition and signal reconstruction.

ADC Interfacing Signal ChainAnalogSignal0 - VREFAnti-aliasFilterfs/2 cutoffADCN-bit resolutionSampling at fsMCU /DSPDigital outputStorageorDisplayVREFReferenceKey ADC Interfacing ParametersSampling Rate (fs): Must be at least 2x signal bandwidth (Nyquist theorem)Resolution (N): Determines LSB size. LSB = VREF / 2^NReference Voltage (VREF): Sets full-scale range. Accuracy of VREF directly limits ADC accuracy.
Figure 1: Complete ADC interfacing chain showing analog signal, anti-aliasing filter, ADC core, reference voltage, and digital output

Sampling Rate and the Nyquist Theorem

The sampling rate (fs) is the number of samples taken per second from the analog signal. According to the Nyquist-Shannon sampling theorem, the sampling rate must be at least twice the highest frequency component present in the analog signal to avoid aliasing. This minimum sampling rate is called the Nyquist rate. If the signal has frequency components above fs/2, those components will fold back into the digital spectrum and corrupt the measurement in a process called aliasing.

To prevent aliasing, an anti-aliasing low-pass filter is placed before the ADC input. This filter removes all frequency components above fs/2 before the signal is sampled. In practice, engineers choose a sampling rate significantly higher than twice the signal bandwidth to allow the use of a gradual-roll-off filter and to reduce the demands on the filter design.

Resolution and Quantization Error

The resolution of an ADC is measured in bits (N). An N-bit ADC can represent 2^N discrete output levels. The smallest voltage change that can be detected is called the Least Significant Bit (LSB) voltage, also known as the step size. It is given by: LSB = VREF / 2^N. For example, a 12-bit ADC with a 3.3 V reference has an LSB of 3.3 / 4096 = 0.806 mV, meaning it cannot distinguish voltage differences smaller than this.

Quantization error is the inherent rounding error introduced when the continuous analog value is mapped to the nearest discrete digital level. The maximum quantization error is plus or minus half an LSB. This is unavoidable for any finite-resolution ADC and represents the fundamental accuracy limit of the conversion, independent of noise and offset errors.

Reference Voltage and Its Impact

The reference voltage (VREF) defines the full-scale input range of the ADC. Any inaccuracy, noise, or drift in VREF directly appears as error in every ADC reading. If VREF drifts by 1%, every measured value will have a 1% error regardless of ADC resolution. This is why precision ADC applications use a dedicated voltage reference IC (such as a bandgap reference) instead of relying on the microcontroller supply voltage.

In a ratiometric measurement, both the sensor excitation voltage and the ADC reference voltage are derived from the same source. Any drift in the supply affects both equally, so the ratio (and therefore the reading) remains accurate. This technique is commonly used with resistive sensors like thermistors and strain gauges.

Mathematical Expression: LSB and Quantization Error

The voltage resolution of an ADC, or LSB size, directly determines the minimum detectable signal. The formula for LSB and the quantization error define the fundamental performance limit of the ADC in a given application. The Signal-to-Noise Ratio due to quantization alone in an N-bit ADC is given by the standard approximation: SNR = 6.02 x N + 1.76 dB.

Example
Given:
ADC resolution N = 10 bits
Reference voltage VREF = 5.0 V
Input voltage Vin = 3.2 V

Why this formula applies:
The digital output code is found by scaling the input voltage against the full reference range, and the LSB gives the smallest measurable increment.

Formula:
LSB = VREF / 2^N
Digital Code = Vin / LSB = (Vin x 2^N) / VREF
Max Quantization Error = ± (LSB / 2)
SNR = 6.02 x N + 1.76 dB

Substitution:
LSB = 5.0 / 2^10 = 5.0 / 1024 = 4.883 mV
Digital Code = 3.2 / 0.004883 = 655.36 ≈ 655
Max Quantization Error = ± 4.883 / 2 = ± 2.44 mV
SNR = 6.02 x 10 + 1.76

Calculation:
SNR = 60.2 + 1.76 = 61.96 dB

Final Answer:
LSB = 4.883 mV, Digital output = 655 (decimal), Quantization error = ±2.44 mV, SNR = 61.96 dB
Exam Tip: The SNR formula SNR = 6.02N + 1.76 dB applies to a full-scale sinusoidal input with a uniform quantization error. Each additional bit of resolution adds approximately 6 dB of SNR. This means doubling the number of quantization levels improves SNR by 6 dB. Memorize this for GATE numerical problems.
ADC Quantization: Staircase Transfer Function (3-bit example)DoutVin000001010011100101110111IdealMax error= ±0.5 LSBStaircase shape is the transfer function of every ADCEach step width = 1 LSB = VREF / 2^N
Figure 2: ADC 3-bit staircase transfer function showing quantization steps, ideal linear response, and maximum ±0.5 LSB error
  • Sampling rate must satisfy fs >= 2 x f_max (Nyquist criterion). Violating this causes aliasing, which cannot be corrected after sampling.
  • An anti-aliasing low-pass filter with cutoff at or below fs/2 must be placed before the ADC input to remove out-of-band frequencies.
  • LSB = VREF / 2^N. Increasing N by 1 bit halves the LSB size, doubling the resolution and improving SNR by approximately 6 dB.
  • VREF accuracy is the ceiling of ADC accuracy. A noisy or drifting reference produces errors that no amount of digital processing can correct.
  • In ratiometric sensing, the sensor and ADC share the same supply, canceling drift errors in the measurement ratio.

Quick Revision

  • Nyquist criterion: fs >= 2 x f_max. Violating this causes aliasing.
  • LSB = VREF / 2^N. Digital Code = (Vin x 2^N) / VREF.
  • Max quantization error = ±0.5 LSB. This is irreducible for a given resolution.
  • SNR = 6.02 x N + 1.76 dB. Each extra bit adds approximately 6 dB SNR.
  • VREF must be stable and low-noise. Use a bandgap reference IC for precision applications.
  • Anti-aliasing filter cutoff must be below fs/2 to prevent frequency folding.
  • Common trap: A 12-bit ADC does not guarantee 12-bit accuracy if VREF is noisy. Effective number of bits (ENOB) accounts for real-world noise and nonlinearity.

ADC Interfacing Quiz

Test your understanding of sampling rate, resolution, and reference voltage in ADC interfacing.

Question 1 of 3

Q1.A 12-bit ADC has a reference voltage of 3.3 V. What is the voltage resolution (LSB size) of this ADC?