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.
An -bit DAC turns a code (decimal value to ) into an analogue voltage proportional to .
With reference and the usual normalisation, .
Step size (1 LSB): , the change in output for a change of one in .
Full-scale output (all ones): . It is one step less than .
Resolution is quoted either as the step size or as a percentage, of full scale.
Read the question for its convention. If it gives the full-scale output directly, then . If it gives the reference, use .
Other terms: monotonic (output never falls when the code rises), settling time (time to settle within 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 (bit 1) or ground (bit 0) into the inverting input of an op-amp through its own resistor: for the MSB, , , …, for the LSB. The op-amp sums the currents:
R-2R ladder DAC. Only two resistor values. Looking right from any ladder node, the resistance is , so the current splits in half at every node. The MSB branch carries , the next , and so on. With feedback :
With this is .
Weighted resistor
R-2R ladder
Resistor values
different, spread
Only and
Accuracy for large
Poor (hard to match a wide spread)
Good
Number of resistors
(about)
Preferred in IC form
No
Yes
3. Quantisation: error and SQNR
An ADC maps a continuous input to one of levels spaced apart. For an input range , (or 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 .
With truncation, the error lies between and .
Modelled as uniform over one step, the error has mean square value .
For a full-scale sinusoidal input, the signal-to-quantisation-noise ratio is
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.
SAR does a binary search. Start with the MSB set to 1 and compare the DAC output with . If the DAC output exceeds , clear that bit; otherwise keep it. Move to the next bit. After comparisons all bits are fixed, whatever the input.
Counter type counts up from zero until the DAC output passes , so a larger input takes longer. A tracking (up/down counter) ADC follows a slowly changing input faster.
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.
Run-up: integrate for a fixed time (a fixed count of clock pulses). The integrator output reaches a value proportional to .
Run-down: switch the integrator to a reference of opposite sign, , and count clock pulses until the output returns to zero. That takes .
Equal charge in and out gives , so
Key properties GATE tests:
The result does not depend on , or the clock frequency (they cancel), so it is very accurate.
Integration averages the input. Noise whose period divides exactly integrates to zero. Choosing as a multiple of rejects mains hum.
It is slow, so it suits digital multimeters, not fast signals.
Maximum conversion time is , where is reached at full-scale input.
Formulas to remember
DAC step sizeIf full-scale output is given instead,
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 and feedback resistor . Find the step size, the full-scale output and the output magnitude for input .
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 (DAC output volts). A bit is kept if the DAC output is less than or equal to . Find the output code for .
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 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.
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 counts of a clock. The reference is . The run-down phase takes counts. Find and say whether hum is rejected.
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.
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.