Skip to content
GATEiit

GATE EC · Digital Circuits

ADCs and DACs

How DACs (binary-weighted, R-2R ladder) and ADCs (flash, successive approximation, counter, dual-slope) work, and how to compute step size, output voltage, quantisation error, SQNR and conversion time.

Before you start

This topic comes before: Sample and hold circuits

Concept notes

1. DAC basics: step size, full scale, resolution

An n-bit DAC turns a code D (decimal value 0 to 2n−1) into an analogue voltage proportional to D.

With reference VR and the usual normalisation, Vo=VRD2n.

  • Step size (1 LSB): Δ=VR2n, the change in output for a change of one in D.
  • Full-scale output (all ones): VFS=(2n−1)Δ=VR(1−2−n). It is one step less than VR.
  • Resolution is quoted either as the step size or as a percentage, 12n−1×100% of full scale.

Read the question for its convention. If it gives the full-scale output VFS directly, then Δ=VFS2n−1. If it gives the reference, use Δ=VR/2n.

Other terms: monotonic (output never falls when the code rises), settling time (time to settle within ±12 LSB after a code change), offset and gain error. Each extra bit halves the step size.

2. Binary-weighted resistor and R-2R ladder DACs

Binary-weighted resistor DAC. Each bit switches VR (bit 1) or ground (bit 0) into the inverting input of an op-amp through its own resistor: R for the MSB, 2R, 4R, …, 2n−1R for the LSB. The op-amp sums the currents:

Vo=−VR RfR(bn−1+bn−22+⋯+b02n−1)=−VR Rf2n−1R D

R-2R ladder DAC. Only two resistor values. Looking right from any ladder node, the resistance is 2R, so the current splits in half at every node. The MSB branch carries VR2R, the next VR4R, and so on. With feedback Rf:

Vo=−RfR VR D2n

With Rf=R this is −VRD/2n.

Weighted resistor R-2R ladder
Resistor values n different, spread 2n−1:1 Only R and 2R
Accuracy for large n Poor (hard to match a wide spread) Good
Number of resistors n 2n (about)
Preferred in IC form No Yes

3. Quantisation: error and SQNR

An ADC maps a continuous input to one of 2n levels spaced Δ apart. For an input range VFS, Δ=VFS2n (or VFS/(2n−1) if the question defines full scale that way).

Quantisation error is the difference between the input and the level it is coded as.

  • With rounding, the maximum error is ±Δ2.
  • With truncation, the error lies between 0 and Δ.

Modelled as uniform over one step, the error has mean square value Δ212.

For a full-scale sinusoidal input, the signal-to-quantisation-noise ratio is

SQNR≈6.02 n+1.76 dB

so each extra bit adds about 6 dB. This is the same result used in PCM.

The input must stay constant while the ADC converts, so a sample-and-hold circuit sits before any ADC whose conversion is not instantaneous.

4. ADC types: flash, successive approximation, counter

Type Hardware Conversion time Note
Flash (parallel) 2n−1 comparators and a priority encoder One step (fastest) Comparator count doubles with each bit
Successive approximation (SAR) One comparator, an n-bit DAC, SAR logic n clock cycles, fixed Fast and cheap; most common
Counter (digital ramp) One comparator, a counter, a DAC Up to 2n−1 clock cycles, depends on input Slow; variable time
Dual-slope (integrating) Integrator, comparator, counter Longest (two integration phases) Very accurate, rejects noise

SAR does a binary search. Start with the MSB set to 1 and compare the DAC output with Vin. If the DAC output exceeds Vin, clear that bit; otherwise keep it. Move to the next bit. After n comparisons all bits are fixed, whatever the input.

Counter type counts up from zero until the DAC output passes Vin, so a larger input takes longer. A tracking (up/down counter) ADC follows a slowly changing input faster.

V_in+−comparatorSAR logicclockdigital out (n bits)trial coden-bit DACV_RDAC output
Successive approximation ADC: the SAR sets one bit per clock, the DAC converts the trial code, the comparator decides keep or clear

5. Dual-slope (integrating) ADC

A dual-slope ADC works in two phases.

  1. Run-up: integrate Vin for a fixed time T1 (a fixed count N1 of clock pulses). The integrator output reaches a value proportional to VinT1.
  2. Run-down: switch the integrator to a reference of opposite sign, −VR, and count clock pulses N2 until the output returns to zero. That takes T2.

Equal charge in and out gives VinT1=VRT2, so

Vin=VR T2T1=VR N2N1

Key properties GATE tests:

  • The result does not depend on R, C or the clock frequency (they cancel), so it is very accurate.
  • Integration averages the input. Noise whose period divides T1 exactly integrates to zero. Choosing T1 as a multiple of 20 ms rejects 50 Hz mains hum.
  • It is slow, so it suits digital multimeters, not fast signals.
  • Maximum conversion time is T1+T2,max⁡, where T2,max⁡ is reached at full-scale input.

Formulas to remember

DAC step sizeIf full-scale output VFS is given instead, Δ=VFS/(2n−1)
Δ=VR2n
DAC outputD = decimal value of the input code
Vo=Δ⋅D=VRD2n
Binary-weighted resistor DACMSB resistor R, LSB resistor 2n−1R
∣Vo∣=VRRf2n−1RD
R-2R ladder DAC
∣Vo∣=RfRVRD2n
Maximum quantisation error (rounding)
∣e∣max⁡=Δ2
SQNR for a full-scale sinusoid
SQNR≈6.02 n+1.76 dB
Flash ADC comparators
2n−1
SAR conversion time
Tc=n Tclk
Counter ADC worst-case time
Tc,max⁡=(2n−1) Tclk
Dual-slope ADC
Vin=VRT2T1=VRN2N1

Common mistakes

  • Using 2^n instead of 2^n − 1 (or the reverse) for the step size without reading whether the question gives the reference voltage or the full-scale output.
  • Counting 2^n comparators for a flash ADC; it needs 2^n − 1.
  • Taking the counter-type ADC conversion time as n clock cycles; that is SAR. A counter ADC may need up to 2^n − 1 cycles.
  • In a weighted-resistor DAC, giving the smallest resistor to the LSB; the MSB gets the smallest resistor and the largest current.
  • Quoting a maximum quantisation error of Δ for a rounding ADC; with rounding it is Δ/2.
  • Thinking the dual-slope result depends on R, C or clock frequency; they cancel in V_in = V_R N2/N1.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Output of an 8-bit R-2R DAC

numerical

An 8-bit R-2R ladder DAC has VR=10 V and feedback resistor Rf=R. Find the step size, the full-scale output and the output magnitude for input 10110100.

  1. Step 1: Find the step size.

    Try it on paper first.

Example 2: Tracing a successive approximation conversion

numerical

A 4-bit SAR ADC has an internal DAC with Δ=0.5 V (DAC output =0.5D volts). A bit is kept if the DAC output is less than or equal to Vin. Find the output code for Vin=5.3 V.

  1. Step 1: Try the MSB: code 1000.

    Try it on paper first.

Example 3: Comparing ADC architectures for 10 bits

numerical

For a 10-bit ADC with a 1 MHz clock, find the number of comparators in a flash ADC, the conversion time of a SAR ADC and the worst-case conversion time of a counter-type ADC.

  1. Step 1: Count the flash comparators.

    Try it on paper first.

Example 4: Reading a dual-slope ADC

numerical

A dual-slope ADC integrates the input for N1=1000 counts of a 50 kHz clock. The reference is 2 V. The run-down phase takes N2=400 counts. Find Vin and say whether 50 Hz hum is rejected.

  1. Step 1: Find the run-up time $T_1$.

    Try it on paper first.

Previous year questions

3 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 3 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.