IAE Academy

ADC & DAC formulas

Sample-and-hold, ADCs and DACs. 43 formulas for GATE EC, EE, IN Digital Electronics, each with when to use it. Each is explained in the topic notes.

All 43 ADC & DAC formulas

DECIMAL VALUE OF A CODE

Straight binary. The MSB has weight and the LSB has weight 1.

STEP SIZE (RESOLUTION IN VOLTS)

Convention used in these notes: is the full-scale range, i.e. the reference span. For a bipolar range to , .

IDEAL DAC OUTPUT

Ideal (zero offset, linear) straight-binary DAC. Magnitude only. An inverting op-amp output stage adds a minus sign.

FULL-SCALE (ALL-ONES) OUTPUT

The largest output the converter actually produces, one LSB below .

PERCENTAGE RESOLUTION

The step as a fraction of the full-scale (all-ones) output. Some problems use instead, meaning the step as a fraction of . Check which one the question defines.

MINIMUM NUMBER OF BITS FOR A REQUIRED RESOLUTION

From , where is the largest step allowed. If the question instead fixes the full-scale (all-ones) output , the condition is .

IDEAL ADC OUTPUT CODE (TRUNCATING)

For a converter whose code changes at integer multiples of , e.g. an SAR that keeps a bit when . Inputs at or above give the all-ones code . A rounding converter has its thresholds shifted down by , so , clamped to .

BIPOLAR DAC OUTPUT (RANGE −V_R TO +V_R)

is the unsigned value of an offset-binary code, and is the signed value of a 2's-complement code. For the same output, . The range is (offset binary , 2's complement ) to (offset binary , 2's complement ).

ACQUISITION TIME (RC CHARGING)

is the allowed error as a fraction of the step, and is the source resistance. Assumes single-pole RC settling with no slew-rate limit.

ACQUISITION TIME TO WITHIN ±1/2 LSB

Full-scale step in an -bit system. Setting , i.e. half an LSB of full scale, in the formula above gives this. Same assumptions: single-pole RC settling, no slew-rate limit.

HOLD-MODE DROOP

is the total leakage current at the hold capacitor. To keep droop over a conversion time within LSB, choose .

APERTURE-JITTER LIMIT ON INPUT FREQUENCY

An input has maximum slope , and the error (slope ) must stay within LSB. The right-hand form is for a full-scale sine, .

INPUT-FREQUENCY LIMIT WITH NO S/H

With no S/H, a full-scale sine (peak-to-peak ) must change by less than LSB during the whole conversion time . The derivation is the same as above, with in place of . A criterion of 1 LSB instead of LSB doubles this limit, so use the criterion the question states.

SAMPLING THEOREM

For a signal band-limited to . is the Nyquist rate. Sampling at exactly that rate can fail for a component at , whose samples may all fall on its zeros. An anti-aliasing low-pass filter before the S/H enforces the band limit.

APPARENT (ALIAS) FREQUENCY AFTER SAMPLING

A sinusoid at sampled at gives the same samples as one at , which lies between 0 and . If , then and there is no aliasing.

PER-CHANNEL SAMPLE RATE OF A MULTIPLEXED ADC

For channels scanned in equal turns by one ADC running at conversions per second.

INPUT-REFERRED LSB WITH PGA GAIN G

Valid while (peak input) stays within the ADC range. Beyond that, the ADC saturates.

WEIGHTED-RESISTOR DAC OUTPUT

MSB resistor , LSB resistor . Bit 1 connects its resistor to and bit 0 to ground. Ideal op-amp. With this reduces to .

R-2R LADDER DAC OUTPUT (CURRENT MODE, INVERTING)

Legs switched between virtual ground (bit 1) and ground (bit 0). Ideal op-amp. With : , and the step is .

R-2R LEG CURRENT FOR BIT K

MSB (): . LSB (): . The current drawn from the reference, , is the same for every code.

R-2R LADDER, VOLTAGE MODE (OPEN CIRCUIT)

Each leg is switched between (bit 1) and ground (bit 0), and the LSB end is terminated in to ground. The output is the open-circuit voltage at the MSB node, where the Thevenin resistance is for every code.

FLASH ADC COMPARATORS AND LADDER RESISTORS

With thresholds at integer multiples of the ladder uses equal resistors. A rounding ladder uses end resistors of and , which puts the thresholds at .

COUNTER-TYPE ADC CONVERSION TIME

The counter restarts from zero for every conversion. Some texts count one more clock for the reset and write . Use the convention the question gives.

COUNTER-TYPE ADC: COUNT FOR A GIVEN INPUT

The counter is reset to zero, adds one count per clock, and stops at the first code whose DAC output exceeds . Valid for . If the circuit stops when , the count is instead. Use the stop rule the question gives.

SAR ADC CONVERSION TIME

One clock per bit. Some descriptions add one clock to load or reset, giving . Use the convention the question gives.

SINGLE-SLOPE ADC COUNT

Ideal integrator, ramp starting at 0 V, . Unlike the dual-slope result, the count depends on , and .

DUAL-SLOPE ADC RESULT

Independent of , and the clock frequency, provided they stay constant during one conversion. Requires .

PEAK INTEGRATOR OUTPUT (END OF PHASE 1)

Integrator starting from 0 V. Choose so that a full-scale input does not saturate the op-amp.

DUAL-SLOPE CONVERSION TIME

The worst case is at . Any auto-zero phase adds to this.

DUAL-SLOPE NORMAL-MODE REJECTION

ms rejects 50 Hz and all its harmonics. ms rejects both the 50 Hz and the 60 Hz families.

OVERSAMPLING RATIO

is the signal bandwidth and the actual sampling rate.

SQNR WITH PLAIN OVERSAMPLING

Full-scale sine, white quantisation noise and an ideal digital filter, with no noise shaping. Each doubling of OSR adds 3 dB, or half a bit.

SQNR OF A FIRST-ORDER SIGMA-DELTA ADC

Linearised model, full-scale sine, . is the number of quantiser bits ( for a 1-bit loop). Each doubling of OSR adds 9 dB (1.5 bits). An -th order loop gives about dB per doubling.

QUANTISATION ERROR BOUNDS

For inputs that do not overload the converter. The usual LSB figure applies to a rounding converter.

QUANTISATION NOISE POWER AND RMS VALUE

Error uniformly distributed over one step. For a rounding quantiser the mean is zero. For a truncating one the mean is , and the variance is the same .

SQNR FOR ANY SIGNAL (UNIFORM QUANTISATION NOISE)

is the mean-square signal power, e.g. for a sine of amplitude , or for a full-scale triangle wave. Assumes no overload. The sine and uniform-signal results below are special cases.

SQNR FOR A FULL-SCALE SINE

The sine has peak-to-peak amplitude exactly (amplitude , power ), and quantisation noise is uniform. Each extra bit adds about 6 dB.

SQNR FOR A SINE BELOW FULL SCALE

For amplitude . A signal 6 dB below full scale loses about one bit of SQNR.

SQNR FOR A FULL-SCALE UNIFORMLY DISTRIBUTED SIGNAL

For a signal spread evenly over the full range, such as a full-scale triangle or sawtooth wave with power .

DYNAMIC RANGE

The ratio of full scale to one LSB. Some sources use , or full-scale signal to rms noise. The difference is negligible for large .

EFFECTIVE NUMBER OF BITS

SINAD is the measured signal-to-(noise + distortion) ratio in dB for a full-scale sine. ENOB is the of an ideal converter with the same SINAD.

DIFFERENTIAL NON-LINEARITY

is the actual step size for a DAC () or the actual code width for an ADC. An ideal converter has DNL = 0 at every code.

INTEGRAL NON-LINEARITY (END-POINT)

The deviation from the straight line through the end points, after offset and gain errors are removed. Here is the end-point LSB, , used in both DNL and INL, and . The running-sum form holds for this end-point definition. A best-fit reference line gives different, typically smaller, figures.

Where this was asked: 2018 (1), 2020 (4), 2022 (2), 2023 (3), 2024 (2), 2025 (4), 2026 (2). See the 18 previous-year questions on ADC & DAC. This shows what was asked, not what will be asked.