All 9 questions UPSC has asked on sample and hold circuits, ADCs and DACs in the Electrical Engineering Optional (Paper I, Digital Electronics) from 1995 to 2019, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Digital Electronics topic-wise PYQs page. Circuit diagrams have been redrawn from the question papers.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the numbers were worked out again independently in code (SymPy and NumPy: circuit equations, power balance, matrices, integrals).
- ✓ Answer checked step by step for theory and descriptive questions, every point was checked against the standard theory.
Where a printed question is wrong, unclear or incomplete, we say so and solve the intended version.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2019 · 8a 2016 · 6a 2010 · 6b(ii) 2010 · 6b(iii) 2007 · 1b(ii) 2006 · 5b(iv) 1999 · 6c 1996 · 4c 1995 · 8c
Draw the block diagram of a single slope type A/D converter and explain its principle of operation.
Solution
Block diagram. A single-slope (ramp) ADC has a ramp generator, a comparator, an AND gate, a clock, a binary counter and control logic.
Principle of operation.
- At the start of a conversion, the control logic resets the counter to zero and starts the ramp from 0 V. The ramp rises linearly, .
- While the ramp is below , the comparator output is HIGH, so the AND gate passes clock pulses to the counter.
- When the ramp reaches , the comparator output goes LOW, the gate closes and counting stops. This happens at .
- The count is , which is proportional to the input. The counter outputs are the digital result. The control logic then resets the ramp and counter for the next conversion.
Features. It is simple and cheap. But the conversion time grows with (up to clock periods for an n-bit result), so it is slow. Its accuracy depends directly on the ramp slope , which drifts with the RC values and the clock frequency. The dual-slope converter removes this dependence.
✓ Answer checked step by step We checked the description step by step against the standard working of the single-slope converter.
Identify the circuit shown in Fig. 6(a). Briefly explain the same. Calculate the current and , if and :
Solution
Identification. It is a 4-bit R–2R ladder digital-to-analog converter of the current (inverted-ladder) type. The four shunt 2R resistors are the bit legs: a leg connected to the op-amp’s inverting input is a 1 and a leg connected to ground is a 0. Here the legs at and go to the op-amp, so the input word ( as MSB) is 0101.
Why the currents halve. The inverting input is a virtual ground, so every 2R leg ends at 0 V whichever way it is switched. Looking right from each node, the resistance to ground is always 2R (for example, at : 2R ∥ 2R = R, plus the series R from gives 2R). So each node sees R in series feeding 2R ∥ 2R, and the voltage halves at every node:
Current i. With kΩ, so 2R = 10 kΩ:
Output. The legs at and feed the summing junction:
As a check: V, since 0101 is 5 out of 16.
✓ Checked by computer We solved the ladder by nodal analysis in code.
With the aid of circuit, draw ladder DAC and discuss its operation.
Solution
Circuit. A 4-bit R–2R ladder DAC (inverted-ladder form) uses only two resistor values. The reference feeds a chain of series resistors R. A 2R leg hangs from each node to a changeover switch. Bit connects the leg to the op-amp’s inverting input; connects it to ground. The ladder ends in a 2R resistor to ground.
Operation.
- Both switch positions are at 0 V (ground or virtual ground), so switching a bit does not change the ladder currents.
- From every node, the resistance looking to the right is 2R. So the current entering each node splits equally between its leg and the rest of the ladder.
- The total current from the reference is . The leg currents are from MSB to LSB, which are binary weighted.
- The op-amp sums the currents of the legs that are set to 1: where D is the decimal value of the input word.
Advantages over the weighted-resistor DAC. Only two resistor values (easy to match and trim on a chip) for any number of bits. Each switch carries a constant current, so switching is fast with little glitching.
✓ Answer checked step by step We checked the circuit and its working step by step against the standard R–2R DAC theory.
With for the DAC, find the resolution and full-scale output of this converter.
Solution
Assumption. The bit length is not given; we take the 4-bit R–2R DAC of part (ii) with , so .
Resolution (the change in output for one LSB):
Full-scale output (input 1111):
The output is negative for the inverting op-amp, so runs from 0 to −4.6875 V in steps of 0.3125 V.
In general, for an n-bit converter the resolution is and the full scale is . For an 8-bit DAC with V these are 19.5 mV and 4.98 V.
✓ Checked by computer We checked the resolution and full-scale output in code.
A D/A converter has the lowest and the highest values of resistances 1 kΩ and 4 kΩ, respectively. If the bit-length of the converter is to be increased by 2, what would be the number of resistors required and their values? Draw the complete circuit of the new converter.
Solution
The existing converter. Resistors from 1 kΩ to 4 kΩ, doubling from bit to bit, point to a binary-weighted resistor DAC: 1 kΩ (MSB), 2 kΩ, 4 kΩ (LSB). That is a 3-bit converter with 3 resistors (plus the feedback resistor).
Adding 2 bits. A 5-bit converter needs one resistor per bit, each double the previous one. We keep the MSB resistor and add two smaller-weight bits: So 5 input resistors are needed (plus ). The largest is now 16 kΩ, 16 times the smallest.
Complete circuit. Each bit input is at (logic 1) or 0 V (logic 0). The op-amp sums the currents:
For example, with kΩ the full-scale output (11111) is .
The resistor spread doubles with every added bit, which is why weighted-resistor DACs are rarely used beyond 6–8 bits; an R–2R ladder needs only two values whatever the bit length.
✓ Checked by computer We checked the resistor sequence in code.
Determine (1) maximum conversion rate (2) average conversion rate (3) maximum conversion time for a 16–bit counter type A/D converter using a 1 MHz clock.
Solution
Counter-type ADC. The counter counts up from zero, one count per clock period, until the DAC output reaches the input. With a 1 MHz clock, s.
(3) Maximum conversion time. A full-scale input needs all counts: (Strictly 65,535 counts reach the top code; the difference is negligible.)
(1) Maximum conversion rate. The rate the converter can always sustain, whatever the input, is set by the worst case:
(2) Average conversion rate. On average the counter stops halfway, so the average conversion time is ms and
Such slow rates are why counter-type ADCs are replaced by successive-approximation converters, which need only 16 clock periods (16 µs) for 16 bits.
✓ Checked by computer We computed the times and rates in code.
Describe any two types of A to D converters. Discuss their merits and demerits.
Solution
We describe the two most widely used types: the successive-approximation ADC and the dual-slope ADC.
1. Successive-approximation ADC. It contains a comparator, an n-bit DAC, a successive-approximation register (SAR) with control logic, and a clock.
It finds the digital code one bit at a time, starting with the MSB, like a binary search:
- Set the MSB to 1. If the DAC output exceeds , the comparator clears the bit; otherwise the bit stays 1.
- Repeat for each lower bit in turn.
- After n clock periods the register holds the result.
Merits: fast (n clock periods, independent of ), moderate cost, and good resolution (8–18 bits), so it is the most common general-purpose ADC. Demerits: needs an accurate DAC; the input must stay constant during conversion, so a sample-and-hold is needed; it is slower than a flash converter.
2. Dual-slope (integrating) ADC. An integrator first integrates for a fixed time (a fixed count of clock pulses). Its output reaches a value proportional to . Then it integrates a reference of opposite sign until the output returns to zero, while a counter measures this time :
Merits: very accurate. The result does not depend on R, C or the clock frequency, because they appear in both slopes. It rejects noise and mains hum (choose as a multiple of 20 ms) and is cheap. Demerits: very slow (tens of conversions per second at most), so it suits digital voltmeters and panel meters, not fast signals.
| Successive approximation | Dual slope | Flash (for reference) | |
|---|---|---|---|
| Conversion time | n clock periods | up to clock periods | one clock period |
| Speed | medium–high | low | very high |
| Accuracy | good (depends on DAC) | very high | moderate |
| Noise rejection | poor | excellent | poor |
| Hardware | 1 comparator + DAC | integrator + counter | comparators |
✓ Answer checked step by step We checked both descriptions and the comparison step by step against the standard theory.
For the R-2R type of digital-to-analog converter shown in Fig. 4c, find the output voltage when is closed and , and are grounded.
Solution
Reading the figure. The battery value is unclear in the scan; we take V. The answer is in any case.
How the ladder weights the bits. This is a voltage-mode R–2R ladder with the output taken at T, the end farthest from the grounded 2R. Each bit leg is attenuated by a factor of 2 for every node between it and T. So the output from a leg switched to is (leg at T, , MSB), (), (), or (leg at P, , LSB).
Only at . By Thevenin reduction from the left:
- At P: 2R to ground in parallel with 2R to gives behind R.
- With the series R, that is behind 2R, in parallel with the grounded 2R leg at Q: behind R.
- In the same way, at S: behind R, and at T: behind R.
The voltage follower draws no current, so
For any switch setting, , where when switch k is at . The full-scale output (all at ) is V. The output resistance at T is always R, which is why the follower buffers it.
✓ Checked by computer We solved the ladder by nodal analysis in code for this and all other switch settings.
Describe a successive approximation type of an A to D converter and give its merits. Find the conversion time and the resolution of an 8-bit ADC of this type when the clock period is 1.25 μs.
Solution
Working. The successive-approximation ADC has a comparator, an n-bit DAC, a successive-approximation register (SAR) with control logic, and a clock.
At the start of conversion the register is cleared and the MSB is set to 1. The DAC output (half of full scale) is compared with : if is smaller the bit is reset, otherwise it is kept. The next bit is then set and tested, and so on down to the LSB. Each clock period decides one bit, so after n periods the register holds the digital value and the end-of-conversion signal is given.
For example, with a 10 V full scale and V, the 8 trials give 10100001 = 161, that is 6.29 V, within one LSB of the input.
Merits.
- Fast: the conversion time is fixed at n clock periods, independent of the input (a counter-type ADC needs up to ).
- Good resolution and accuracy with modest hardware (one comparator, one DAC).
- Constant conversion time makes it easy to interface with microprocessors.
8-bit converter with a 1.25 µs clock. (about 100,000 conversions per second; some designs add one or two periods for start and end of conversion). For example, with a 10 V full scale, one LSB is 10/256 = 39 mV.
✓ Checked by computer We checked the timing, the resolution and a sample conversion in code.
More on Digital Electronics
- All Electrical Engineering PYQ solutions, topic by topic
- Digital Electronics topic-wise PYQs (questions only, for practice)
- Electrical Engineering PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Electrical Engineering booklist
Questions: UPSC Civil Services (Main) Examination, Electrical Engineering Paper I, 1995–2019. Solutions: Optional Province. Found an error? Tell us.

