Verified real‑time conversion. Bidirectional update, saturation handling, and accurate quantization error.
An ADC converts a continuous analog voltage into a discrete digital number proportional to the input. The fundamental parameters are resolution (N bits) and reference voltage (Vref).
Transfer function (ideal, truncation):
\( D = \left\lfloor \frac{V_{in}}{LSB} \right\rfloor \) for \( 0 \le V_{in} < V_{ref} \)
For \( V_{in} \ge V_{ref} \), the output saturates at \( 2^N - 1 \).
The quantization error \( \epsilon = V_{in} - D \times LSB \) lies in the range \( [0, LSB) \) when using truncation. With rounding, the error would be \( \pm LSB/2 \). The RMS quantization noise for a full‑scale sine wave is approximately \( \frac{LSB}{\sqrt{12}} \).
| Parameter | Typical values | Impact |
|---|---|---|
| Resolution | 8‑24 bits | Higher bits → finer steps, lower quantization noise. |
| Reference voltage | 1.8V, 2.5V, 3.3V, 5V | Determines input range and LSB size. |
| Sampling rate | kS/s to GS/s | How fast conversions can be performed. |
| INL / DNL | ±0.5 LSB to ±2 LSB | Integral/Differential non‑linearity – deviations from ideal. |