Menu Close

Comparators, timers and multivibrators: UPSC Electrical Engineering Optional PYQ Solutions (1999–2019)

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):

2019 · 6c 2014 · 1d 2011 · 4b 2010 · 5b(iii) 1999 · 2b(ii)

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Implement Astable Multivibrator using NAND gates and explain its operation.

2019 · Paper I · Q6c · 10 marks

Solution

Circuit. Two CMOS NAND gates with their inputs tied together act as inverters G1 and G2. Resistor R goes from the output v1 of G1 back to node X at the input of G1. Capacitor C goes from the output vo of G2 to the same node X.

v₁voCXRG₁G₂
Astable multivibrator with two CMOS NAND gates.

(If one input of G1 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 VT≈VDD/2.

  1. Suppose vX is just above VT. Then v1 is LOW and vo is HIGH. C discharges through R towards v1=0, so vX falls.
  2. When vX drops to VT, G1 switches: v1 goes HIGH and vo goes LOW. The step of −VDD at vo is carried through C, so vX jumps from VT to VT−VDD.
  3. Now C charges through R towards v1=VDD, so vX rises. When it reaches VT the gates switch back, vX jumps up by VDD, and the cycle repeats.

So vo (and v1) are square waves; the circuit has no stable state.

Frequency. Take VT=VDD/2. In step 1, vX falls from 1.5VDD towards 0 and stops at 0.5VDD: t1=RCln1.5VDD0.5VDD=RCln3≈1.1RC. Step 3 is the mirror image, so t2=RCln3 too. Hence T=2RCln3≈2.2RC,f≈0.455RC, with a 50% duty cycle.

T/2T2T1.5 V_DDV_T−0.5 V_DDv_Xv_ot
Waveforms (ideal gates, VT = VDD/2).

In practice the input protection diodes clamp vX to about VDD+0.6 V and −0.6 V, which shortens each half to roughly 0.7RC to 0.8RC. A resistor of about 10R in series with the input of G1 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.

↑ Back to the question list

A comparator and limiter circuit is shown in Fig. 2. Develop transfer characteristics VO vs. VI and explain.

R₁VIVOR₂VZ2VZ1
Figure redrawn from the question paper.

2014 · Paper I · Q1d · 10 marks

Solution

Linear region. For small inputs both Zeners are off (one of them would have to break down). The circuit is an inverting amplifier: VO=−R2R1VI.

Limiting. The Zeners are in series, cathode to cathode, across R2, and the inverting input is at virtual ground.

  • VO positive (for negative VI): Z1 (anode at the output) is forward biased and Z2 is reverse biased. Current flows once VO reaches VZ2+VD, so the output is clamped at VO=+(VZ2+VD).
  • VO negative (for positive VI): Z2 is forward biased and Z1 breaks down, so VO=−(VZ1+VD).

VD≈0.7 V is the forward drop of the other diode.

Transfer characteristic. The output follows the line of slope −R2/R1 and flattens at the two levels. With V+=VZ2+VD and V−=VZ1+VD, the break points are at VI=−R1R2V+andVI=+R1R2V−.

−V₊R₁/R₂V₋R₁/R₂+V₊−V₋slope −R2/R1V_IV_O
Transfer characteristic VO against VI (V₊ = VZ2 + VD, V₋ = VZ1 + VD). With R2 removed the line becomes vertical at VI = 0.

For example, with R2/R1=3, VZ1=6.2 V and VZ2=4.7 V, the output is limited to +5.4 V and −6.9 V, and the break points are at VI=−1.8 V and +2.3 V.

As a comparator. If R2 is very large (or left out), the gain is so high that the output switches between +(VZ2+VD) and −(VZ1+VD) as VI crosses zero: the sloping part of the characteristic becomes a vertical step at VI=0. 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.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Using IC 555 and other suitable components, draw the circuit diagram of a missing pulse detector and explain its working.

2011 · Paper I · Q4b · 20 marks

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 VCC 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 RB, connected across C.

2TRIG6THR7DIS3OUT8VCC4RST1GND5CV555+VCCRCRBInput pulsesvo
Missing pulse detector. On a phone, swipe sideways to see all of it.

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 T=1.1RC. 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 23VCC, so the timing never ends and the output stays HIGH.
  • If a pulse is missing (or the input is late or stops), C reaches 23VCC, the timing period ends and the output goes LOW. It stays LOW until the next pulse retriggers the circuit.
missinginputv_Cv_ot
Waveforms: the output drops when a pulse is missing.

Design example. For a 1 kHz input (period 1 ms), take T≈1.3 ms: with C=0.1μF, R=12 kΩ gives 1.1RC=1.32 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 (T between n and n+1 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.

↑ Back to the question list

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.

2010 · Paper I · Q5b(iii) · 7 marks

Solution

Why a plain astable cannot give 50%. In the standard 555 astable, C charges through RA+RB and discharges through RB only, so tH=0.693(RA+RB)C is always longer than tL=0.693RBC.

50% circuit. Put a diode D across RB. Then C charges through RA and D only, and discharges through RB only (pin 7): tH=0.693RAC,tL=0.693RBC. With RA=RB=R the duty cycle is 50%.

2TRIG6THR7DIS3OUT8VCC4RST1GND5CV555+VCCRARBDCvo
555 astable with a diode across RB for 50% duty cycle.

Values for 1 kHz. T=1 ms, so tH=tL=0.5 ms. Choose C=0.1μF: R=0.5×10−30.693×0.1×10−6=7.2kΩ. So RA=RB=7.2 kΩ (a 6.8 kΩ resistor in series with a 1 kΩ trimmer), C=0.1μF, and 0.01 µF from pin 5 to ground. Then f=1/(2×0.693×7.2k×0.1μ)≈1.0 kHz.

t_HT2V_CC/3V_CC/3v_Cv_ot
Waveforms for RA = RB with the diode.

The diode’s forward drop slows the charging slightly, so RA 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.

↑ Back to the question list

Design an astable multivibrator with LM 555. Calculate also the duty cycle and frequency of oscillation.

1999 · Paper I · Q2b(ii) · 10 marks

Solution

Circuit. The LM555 astable: RA from VCC to pin 7, RB from pin 7 to the capacitor C, pins 2 and 6 joined to C, pin 4 to VCC, and 0.01 µF from pin 5 to ground.

2TRIG6THR7DIS3OUT8VCC4RST1GND5CV555+VCCRARBCvo
LM555 astable multivibrator.

Operation. The two comparators inside the 555 keep the capacitor voltage between VCC/3 and 2VCC/3.

  • Charging. The output is HIGH and the discharge transistor is off. C charges through RA+RB from VCC/3 towards VCC. It reaches 2VCC/3 after tH=(RA+RB)ClnVCC−VCC/3VCC−2VCC/3=0.693(RA+RB)C.

  • Discharging. The output goes LOW and pin 7 grounds the RA–RB junction. C discharges through RB from 2VCC/3 to VCC/3 in tL=RBCln2=0.693RBC.

t_HT2V_CC/3V_CC/3v_Cv_ot
Waveforms: C swings between VCC/3 and 2VCC/3.

So f=1tH+tL=1.44(RA+2RB)C,D=tHtH+tL=RA+RBRA+2RB.

Design. The question gives no specification, so we design for f=1 kHz with a duty cycle of 60%.

  • D=0.6 gives RA+RB=0.6(RA+2RB), so RB=2RA.
  • Then f=1.44/(5RAC)=1000. With C=0.1μF, RA=2.88 kΩ and RB=5.76 kΩ.
  • With standard values RA=2.7 kΩ, RB=5.6 kΩ and C=0.1μF: tH=0.693×8.3k×0.1μ=0.575 ms and tL=0.693×5.6k×0.1μ=0.388 ms.

Result. f=1/(0.963 ms)≈1.04 kHz and D=0.575/0.963≈60%.

The duty cycle of this circuit is always above 50%; a diode across RB (as in the 2010 question above) allows 50% or less.

✓ Checked by computer We checked the derived formulas and the component values in code.

↑ Back to the question list

More on Digital Electronics

Questions: UPSC Civil Services (Main) Examination, Electrical Engineering Paper I, 1999–2019. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted