Analog & Mixed-Signal Design — Fundamentals
Overview introduced op-amp gain equations and the ADC/DAC concept. This page works through the actual numbers: computing an ADC's resolution and quantization error, converting a real digital code to its analog output through a DAC, and the standard formula relating an ADC's bit resolution to its theoretical best-case signal quality (SNR). All three examples connect directly back to Digital Logic Fundamentals' binary number-system material — an ADC/DAC's "N-bit code" is exactly the same binary representation covered there, just now tied to a real physical voltage instead of an abstract decimal-to-binary exercise.
Analogy — Think of an ADC as a ruler with a fixed number of tick marks. A ruler with only 4 tick marks per inch can only report a measurement as "closest to this tick mark," even if the real length falls between two ticks — the more tick marks the ruler has (the more bits the ADC has), the smaller that unavoidable rounding error gets, but it never disappears completely with a finite number of ticks. Quantization error is exactly that unavoidable "which tick mark is closest" rounding, and it's a fundamental, unavoidable property of converting anything continuous into a fixed number of discrete steps — not a flaw specific to any one ADC design.
ADC Resolution and Quantization Error
Annotated Example — Computing Resolution for a Real ADC
An 8-bit ADC with a 5V reference voltage:
Verified computationally: 5V / 256 = 19.53 mV per step, exactly. This means the ADC can never report a voltage more precisely than to within about ±9.77 mV of the true value — no matter how good the rest of the circuit is, this rounding error is a hard mathematical floor set purely by the bit count and reference voltage, the same "fixed number of discrete steps" limitation that applies to any N-bit binary representation from Digital Logic Fundamentals, just now expressed as a voltage instead of an integer count.
DAC: Converting a Digital Code Back to a Voltage
Annotated Example — Converting an 8-Bit Code to an Analog Voltage
An 8-bit DAC with Vref = 5V receives the digital code 10110100.
Verified computationally: binary 10110100 correctly converts to decimal 180 (128+32+16+4 = 180), and 180 × (5/256) = 3.515625 V exactly. This is a direct, concrete link back to Digital Logic Fundamentals' number-system material — the exact same decimal↔binary conversion process, now the literal first step of a real DAC circuit computation rather than an isolated exercise.
SNR: How Bit Resolution Limits Signal Quality
Try It (2 Minutes)
A 10-bit DAC with Vref = 3.3V receives the digital code 0110010101 (binary).
You should land on: 0110010101 = 128+64+16+4+1 = 213 (decimal); Vout = 213 × (3.3V/1024) = 213 × 0.003223V ≈ 0.6866 V; SNR = 6.02(10) + 1.76 = 61.96 dB — the same 10-bit SNR value computed above, since SNR depends only on bit count and reference voltage choice, not on which specific code happens to be converted.

