All 5 questions UPSC has asked on comparators, timers and multivibrators in the Electrical Engineering Optional (Paper I, Digital Electronics) from 1999 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).
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):
Implement Astable Multivibrator using NAND gates and explain its operation.
Solution
Circuit. Two CMOS NAND gates with their inputs tied together act as inverters and . Resistor R goes from the output of back to node X at the input of . Capacitor C goes from the output of to the same node X.
(If one input of is left free instead of tied, it works as an enable: the circuit oscillates only while that input is HIGH.)
Operation. Let the gate threshold be .
- Suppose is just above . Then is LOW and is HIGH. C discharges through R towards , so falls.
- When drops to , switches: goes HIGH and goes LOW. The step of at is carried through C, so jumps from to .
- Now C charges through R towards , so rises. When it reaches the gates switch back, jumps up by , and the cycle repeats.
So (and ) are square waves; the circuit has no stable state.
Frequency. Take . In step 1, falls from towards 0 and stops at : Step 3 is the mirror image, so too. Hence with a 50% duty cycle.
In practice the input protection diodes clamp to about V and V, which shortens each half to roughly to . A resistor of about in series with the input of reduces this effect.
✓ Checked by computer We worked out the RC timing of each half-cycle in code, both in closed form and by step-by-step integration.
A comparator and limiter circuit is shown in Fig. 2. Develop transfer characteristics vs. and explain.
Solution
Linear region. For small inputs both Zeners are off (one of them would have to break down). The circuit is an inverting amplifier:
Limiting. The Zeners are in series, cathode to cathode, across , and the inverting input is at virtual ground.
- positive (for negative ): (anode at the output) is forward biased and is reverse biased. Current flows once reaches , so the output is clamped at .
- negative (for positive ): is forward biased and breaks down, so .
V is the forward drop of the other diode.
Transfer characteristic. The output follows the line of slope and flattens at the two levels. With and , the break points are at
For example, with , V and V, the output is limited to +5.4 V and −6.9 V, and the break points are at V and V.
As a comparator. If is very large (or left out), the gain is so high that the output switches between and as crosses zero: the sloping part of the characteristic becomes a vertical step at . It is then a zero-crossing comparator whose output levels are set by the Zeners rather than by the supply rails, so it can drive logic directly. Without the Zeners the output would swing to the op-amp’s saturation voltages (about ±13 V on ±15 V supplies).
✓ Checked by computer We checked the limiting levels and break points in code for sample Zener voltages.
Using IC 555 and other suitable components, draw the circuit diagram of a missing pulse detector and explain its working.
Solution
Idea. A missing pulse detector gives an output when one pulse of a regular train fails to arrive (useful for heartbeat monitors, speed and conveyor monitoring, and alarms). It is a 555 monostable that is re-triggered by every input pulse before its timing period can end.
Circuit. The 555 is wired as a monostable: R from to the timing capacitor C, with pins 6 (threshold) and 7 (discharge) joined to C. The input pulse train (normally HIGH, with short negative-going pulses) drives the trigger, pin 2. It also drives the base of a PNP transistor Q, through , connected across C.
Working.
- Each negative-going input pulse triggers the 555, so the output (pin 3) goes HIGH. The same pulse turns Q on, which discharges C almost to zero.
- After the pulse, Q is off and C charges through R. The timing period is . This is chosen a little longer than the period of the input train (typically 1.2 to 1.5 times longer).
- While pulses keep arriving on time, C is reset before it reaches , so the timing never ends and the output stays HIGH.
- If a pulse is missing (or the input is late or stops), C reaches , the timing period ends and the output goes LOW. It stays LOW until the next pulse retriggers the circuit.
Design example. For a 1 kHz input (period 1 ms), take ms: with F, kΩ gives ms. A pulse arriving up to 0.32 ms late is tolerated; a missing pulse is detected within 1.32 ms of the last good pulse.
The same circuit with a longer timing period ( between and input periods) also works as a frequency divider, and if the input period lengthens it detects a falling speed.
✓ Checked by computer We checked the timing condition and the example component values in code.
Realize an Astable Multivibrator using 555 timer to produce a square wave of frequency 1 kHz with duty cycle of 50%. Mention three applications of timer.
Solution
Why a plain astable cannot give 50%. In the standard 555 astable, C charges through and discharges through only, so is always longer than .
50% circuit. Put a diode D across . Then C charges through and D only, and discharges through only (pin 7): With the duty cycle is 50%.
Values for 1 kHz. ms, so ms. Choose F: So kΩ (a 6.8 kΩ resistor in series with a 1 kΩ trimmer), F, and 0.01 µF from pin 5 to ground. Then kHz.
The diode’s forward drop slows the charging slightly, so is trimmed a little lower in practice to get exactly 50%.
Three applications of the 555 timer. Any three of: clock and square-wave generator (astable); time delays and pulse stretching (monostable); missing pulse detector; frequency divider; pulse-width and pulse-position modulator; tone generator, LED flasher and alarm circuits.
✓ Checked by computer We checked the timing formulas and the component values in code.
Design an astable multivibrator with LM 555. Calculate also the duty cycle and frequency of oscillation.
Solution
Circuit. The LM555 astable: from to pin 7, from pin 7 to the capacitor C, pins 2 and 6 joined to C, pin 4 to , and 0.01 µF from pin 5 to ground.
Operation. The two comparators inside the 555 keep the capacitor voltage between and .
Charging. The output is HIGH and the discharge transistor is off. C charges through from towards . It reaches after
Discharging. The output goes LOW and pin 7 grounds the – junction. C discharges through from to in
So
Design. The question gives no specification, so we design for kHz with a duty cycle of 60%.
- gives , so .
- Then . With F, kΩ and kΩ.
- With standard values kΩ, kΩ and F: ms and ms.
Result. kHz and .
The duty cycle of this circuit is always above 50%; a diode across (as in the 2010 question above) allows 50% or less.
✓ Checked by computer We checked the derived formulas and the component values 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, 1999–2019. Solutions: Optional Province. Found an error? Tell us.

