RC Circuits
Interview Questions
Comprehensive Q&A covering Low-Pass Filters, High-Pass Filters, RC timing circuits, differentiators, integrators, and AC/DC transient analysis β with waveforms and full explanations.
Low-Pass Filter (LPF)
Passes low-frequency signals, attenuates high-frequency signals. Output taken across the capacitor.
β¦ Full Answer
β¦ Full Answer
- The voltage divider gives: Vout/Vin = Xc / (R + Xc) where Xc = 1/(jΟC)
- Magnitude: |H| = 1 / β(1 + (ΟRC)Β²) = 1 / β(1 + (f/fc)Β²)
- At f = fc: |H| = 1/β2 β 0.707 β Power = (0.707)Β² = 0.5 = -3 dB
- Setting ΟRC = 1: Οc = 1/RC β fc = 1/(2ΟRC)
β¦ Full Answer
- At f βͺ fc: Ο β 0Β° (output in phase with input)
- At f = fc: Ο = βarctan(1) = β45Β°
- At f β« fc: Ο β β90Β° (output lags input by 90Β°)
β¦ Full Answer
- Ο βͺ T/2 (or fc β« fsquare): Almost no filtering β output is nearly identical to the square wave input.
- Ο β T/2 (or fc β fsquare): Corners are rounded, rise/fall times are slowed. Overshoot may appear at low Ο values.
- Ο β« T/2 (or fc βͺ fsquare): Only the DC component and the fundamental survive. Output becomes a triangular or sawtooth-like waveform with small amplitude.
β¦ Full Answer
- Using voltage divider: H(jΟ) = Vout/Vin = Zc / (R + Zc)
- Zc = 1/(jΟC), so: H = [1/(jΟC)] / [R + 1/(jΟC)]
- Multiply numerator and denominator by jΟC: H = 1 / (1 + jΟRC)
- Let Οc = 1/RC: H(jΟ) = 1 / (1 + j(Ο/Οc))
- Equivalently in frequency: H(jf) = 1 / (1 + j(f/fc))
| Condition | Gain |H| | dB | Phase |
|---|---|---|---|
| f = 0 (DC) | 1.000 | 0 dB | 0Β° |
| f = fc | 0.707 | β3 dB | β45Β° |
| f = 10 fc | 0.0995 | β20 dB | β84.3Β° |
| f β β | 0 | ββ dB | β90Β° |
β¦ Full Answer
- Anti-aliasing filter: Placed before ADC (Analog-to-Digital Converter) to remove frequency components above the Nyquist frequency, preventing aliasing artifacts in digital audio and measurement systems.
- Power supply decoupling: RC LPFs remove high-frequency ripple and noise from DC power rails. Often placed near IC power pins (e.g., 100Ξ© + 100nF) to filter switching noise.
- Audio tone control & speaker crossover: Routes low-frequency audio signals to woofers while blocking high frequencies. Bass-boost circuits use LPF characteristics.
- Noise filtering / signal smoothing: Smooths out rapid fluctuations in sensor outputs (e.g., temperature sensors, potentiometers) to give stable readings before MCU input.
- PWM to analog conversion: A PWM signal’s high-frequency switching component is filtered away, leaving only the average DC value β converting digital PWM to a smooth analog voltage.
β¦ Full Answer
- Roll-off: Increases from β20 dB/decade to β40 dB/decade at high frequencies β steeper attenuation.
- New β3 dB frequency: Due to loading effects, the overall β3 dB point shifts DOWN. For two identical stages (Rβ=Rβ, Cβ=Cβ), the new effective fc is reduced: f_c_new β f_c Γ (β(2^(1/n) β 1)) where n=2, giving f_c_new β 0.644 Γ f_c_original.
- Phase shift: Reaches β90Β° at fc instead of β45Β° β the phase budget doubles.
- Loading problem: The second R loads the first stage, altering the response. Buffer amplifiers (op-amps) between stages prevent loading and allow true cascading.
β¦ Full Answer
- fc = 1/(2ΟRC) β C = 1/(2Ο Γ fc Γ R) = 1/(2Ο Γ 1000 Γ 10,000)
- C = 1 / (62,831,853 Γ 10β»Β³) β 15.9 nF (use standard 15 nF or 16 nF)
- Verify at 5 kHz: |H| = 1 / β(1 + (5000/1000)Β²) = 1 / β(1+25) = 1/β26 β 0.196 β 19.6% of input (β14.1 dB)
- Phase at 5 kHz: Ο = βarctan(5) β β78.7Β°
High-Pass Filter (HPF)
Passes high-frequency signals, blocks DC and low frequencies. Output taken across the resistor.
β¦ Full Answer
| Property | LPF | HPF |
|---|---|---|
| C position | Shunt (to GND) | Series (in signal path) |
| R position | Series (in signal path) | Shunt (to GND) |
| Output taken across | Capacitor | Resistor |
| Passes | Low freq (DC to fc) | High freq (fc to β) |
| Blocks | High freq | DC and low freq |
| Gain below fc | High β drops | Low β rises |
| Roll-off direction | β20 dB/dec (high f) | +20 dB/dec (low f) |
β¦ Full Answer
- Voltage divider: H(jΟ) = R / (R + Zc) = R / (R + 1/jΟC)
- Multiply by jΟC/jΟC: H = jΟRC / (1 + jΟRC)
- Let Οc = 1/RC: H(jΟ) = j(Ο/Οc) / (1 + j(Ο/Οc))
- Magnitude: |H| = (f/fc) / β(1 + (f/fc)Β²)
| Frequency | |H| | dB | Phase |
|---|---|---|---|
| f = 0 (DC) | 0 | ββ dB | +90Β° |
| f = fc | 0.707 | β3 dB | +45Β° |
| f β β | 1 | 0 dB | 0Β° |
β¦ Full Answer
- Ο βͺ T/2 (small time constant, high fc): The capacitor charges/discharges very quickly. Only the sharp transitions survive as brief positive or negative spikes (“impulse-like” or “needle” pulses). This is the differentiator mode β the HPF differentiates the square wave, producing spikes at each edge.
- Ο β« T/2 (large time constant, low fc): The capacitor barely charges before the next transition. The output looks almost identical to the input but with DC removed β the average value is zero. The waveform tilts slightly (called “tilt” or “sag”), showing slight exponential decay during flat portions.
- Ο β T/2: The output shows partial spikes with visible exponential decay back toward zero between transitions.
β¦ Full Answer
- At the start of the pulse (t=0): Vout = Vβ (full amplitude)
- At end of pulse (t=T): Vout = Vβ Β· eβT/Ο
- Tilt ΞV = Vβ β VβeβT/Ο = Vβ(1 β eβT/Ο)
- Percentage tilt = (ΞV/Vβ) Γ 100 = (1 β eβT/Ο) Γ 100%
- For small tilt (T βͺ Ο): % tilt β (T/Ο) Γ 100% = (T/RC) Γ 100%
β¦ Full Answer
- AC coupling / DC blocking: Removes DC bias from audio signals before amplification. Common between stages in audio amplifiers (coupling capacitor). Prevents DC offset from saturating the next stage.
- Treble/high-frequency boost: Audio equalizers use HPF characteristics to emphasize high-frequency content (cymbals, treble). Speaker crossovers route high frequencies to tweeters.
- Edge detection in digital signals: With small Ο, acts as a differentiator. Used in trigger circuits to detect rising/falling edges and generate narrow clock pulses.
- Removing 50/60 Hz hum: Setting fc above 60 Hz blocks power-line interference from audio and instrumentation signals, while passing voice/music frequencies (300 Hz+).
- Oscilloscope input coupling (AC mode): The AC coupling switch inserts a series capacitor, blocking DC from the display while showing AC waveforms clearly.
β¦ Full Answer
| Property | LPF Step Response | HPF Step Response |
|---|---|---|
| At t = 0βΊ | Vout = 0 (C is short) | Vout = Vβ (C passes step) |
| As t β β | Vout β Vβ (C charges) | Vout β 0 (C blocks DC) |
| Shape | Exponential rise | Exponential decay |
| V at t = Ο | 0.632 Γ Vβ | 0.368 Γ Vβ |
| Time constant | Ο = RC | Ο = RC |
β¦ Full Answer
- Frequency domain: DC has frequency f = 0. The capacitive reactance Xc = 1/(2ΟfC) β β as f β 0. With infinite impedance in series, no current can flow through R, so Vout = 0. The transfer function |H| = (f/fc)/β(1+(f/fc)Β²) β 0 as f β 0.
- Time domain: Under steady-state DC, the capacitor fully charges to the input voltage. Once fully charged, it acts as an open circuit β no current flows, no voltage drop across R, so Vout = 0.
- Energy perspective: A capacitor stores charge Q = CV. In steady state, dV/dt = 0, so i = CΒ·dV/dt = 0. No current means no voltage across R.
β¦ Full Answer
- C = 1/(2Ο Γ fc Γ R) = 1/(2Ο Γ 500 Γ 4700) = 1/14,765,485 β 67.7 nF (use 68 nF standard)
- At 50 Hz: |H| = (50/500) / β(1 + (50/500)Β²) = 0.1/β(1.01) β 0.0995 β 9.95%
- At 5000 Hz: |H| = (5000/500) / β(1 + 10Β²) = 10/β101 β 0.995 β 99.5%
Transient Analysis
Time-domain charging, discharging, initial conditions, and time constant behaviour.
β¦ Full Answer
- Apply KVL: Vβ = V_R + V_C = iR + Vc. Current i = CΒ·dVc/dt
- So: Vβ = RCΒ·(dVc/dt) + Vc β dVc/dt + Vc/RC = Vβ/RC
- This is a first-order linear ODE. Homogeneous solution: Vc_h = AΒ·eβt/RC
- Particular solution: Vc_p = Vβ
- General: Vc = Vβ + AΒ·eβt/RC. Apply IC: Vc(0) = 0 β A = βVβ
- Final result: Vc(t) = Vβ(1 β eβt/Ο) where Ο = RC
- Current: i(t) = (Vβ/R)Β·eβt/Ο
β¦ Full Answer
| Time | Formula (1βe^βn) | % Charged | Remaining |
|---|---|---|---|
| 1Ο | 1 β eβ»ΒΉ | 63.2% | 36.8% |
| 2Ο | 1 β eβ»Β² | 86.5% | 13.5% |
| 3Ο | 1 β eβ»Β³ | 95.0% | 5.0% |
| 4Ο | 1 β eβ»β΄ | 98.2% | 1.8% |
| 5Ο | 1 β eβ»β΅ | 99.3% | 0.7% |
β¦ Full Answer
- Using the superposition of the forced and natural response:
- The capacitor voltage approaches Vs as t β β (forced response)
- The natural response decays from (Vβ β Vs) with time constant Ο
- Vc(t) = Vs + (Vβ β Vs) Β· eβt/Ο
- If Vs > Vβ: capacitor charges up toward Vs
- If Vs < Vβ: capacitor discharges down toward Vs
- If Vs = 0 (discharge to ground): Vc(t) = Vβ Β· eβt/Ο
β¦ Full Answer
- Energy stored in capacitor at full charge: EC = Β½CVβΒ²
- Total energy supplied by source: Esource = Q Γ Vβ = CVβ Γ Vβ = CVβΒ²
- Energy dissipated in resistor: ER = Esource β EC = CVβΒ² β Β½CVβΒ² = Β½CVβΒ²
- Remarkable result: Exactly half the energy from the source is dissipated in R, regardless of R’s value!
- This is independent of the time constant β whether R is 1Ξ© or 1MΞ©, half the energy is always wasted.
β¦ Full Answer
- Step 1 β Identify the capacitor: Remove the capacitor from the circuit. Mark the two terminals A and B.
- Step 2 β Find V_th: Calculate the open-circuit voltage across A-B with no capacitor. This is the Thevenin voltage (= the final steady-state voltage of the capacitor).
- Step 3 β Find R_th: Zero all independent sources (short voltage sources, open current sources) and calculate the resistance looking into terminals A-B.
- Step 4 β Write the solution: The equivalent circuit is V_th in series with R_th and C. Apply: Vc(t) = V_th + (Vβ β V_th)Β·eβt/Ο where Ο = R_th Γ C.
β¦ Full Answer
- Resistors in series with C: R_total = Rβ + Rβ + β¦ β Ο = R_total Γ C. Adding series resistance slows down the charging/discharging (larger Ο).
- Resistors in parallel with C: The parallel resistance R_p = (RβRβ)/(Rβ+Rβ) forms the effective discharge path. Ο = R_p Γ C. Parallel paths provide faster discharge (smaller Ο).
- Multiple capacitors in series: 1/C_eq = 1/Cβ + 1/Cβ β smaller C_eq β smaller Ο.
- Multiple capacitors in parallel: C_eq = Cβ + Cβ β larger Ο.
- General rule: Use Thevenin resistance (R_th) seen by C. Ο = R_th Γ C_eq always works.
β¦ Full Answer
- Key principle β Continuity of capacitor voltage: Vc cannot change instantaneously. Vc(0βΊ) = Vc(0β»). The capacitor voltage just after switching equals the voltage just before.
- Step 1: Find Vc(0β») = voltage before switch operates (DC steady state β capacitor = open circuit).
- Step 2: At t=0βΊ, replace capacitor with a voltage source equal to Vc(0β»). Find initial currents.
- Step 3: Find Vc(β) = new steady-state voltage after switch (new DC steady state).
- Step 4: Find R_th seen by C in the new circuit (sources zeroed).
- Step 5: Write: Vc(t) = Vc(β) + [Vc(0βΊ) β Vc(β)] Β· eβt/Ο for t β₯ 0.
RC Differentiator
Produces output proportional to the rate of change of the input. HPF with Ο βͺ T.
β¦ Full Answer
- Condition: Ο = RC βͺ T (or equivalently, fc β« f_input)
- Derivation: Vout = i Γ R = CΒ·(dVin/dt) Γ R (since Vc β Vin when RC βͺ T)
- Output equation: Vout β RC Β· (dVin/dt)
- Differentiates the input β output is proportional to the slope (rate of change) of the input.
β¦ Full Answer
| Input | Mathematical Derivative | Output Waveform |
|---|---|---|
| Sine: AΒ·sin(Οt) | d/dt[sin] = cos | Cosine wave (90Β° phase lead), amplitude = AΟRC |
| Triangle wave | d/dt[ramp] = constant | Square wave (alternating +/β pulses) |
| Square wave | d/dt[step] = impulse | Narrow positive & negative spikes at edges |
| Ramp (linear rise) | d/dt[at] = a | Constant DC level |
| Constant (DC) | d/dt[const] = 0 | Zero (nothing passes DC) |
β¦ Full Answer
- Edge detection & pulse sharpening: Converts slow rise/fall transitions into sharp trigger pulses. Used in clock conditioning circuits.
- Schmitt trigger input: The spike output from a differentiator is fed to a Schmitt trigger to generate clean, well-defined digital pulses from slow analog edges.
- Rate-of-change measurement: In analog computing and control systems, the derivative of a sensor signal (velocity from position) can be obtained with an RC differentiator.
- TV sync separation: In older CRT TV circuits, RC differentiators helped separate horizontal sync pulses from vertical sync using different time constants.
- Sawtooth to square wave conversion: A sawtooth or ramp input produces square wave output, useful in signal generation.
β¦ Full Answer
- An RC differentiator is an HPF. At high frequencies, the gain does NOT increase infinitely β it is bounded at unity (0 dB). A true mathematical differentiator would have gain increasing without bound: |H| = ΟΒ·RC β β.
- The RC HPF gain: |H| = (f/fc) / β(1 + (f/fc)Β²) β 1 as f β β. The gain saturates at 1.
- This means at very high frequencies, the circuit acts as a wire (unity gain) and is no longer differentiating.
- Noise amplification: High-frequency noise is amplified relative to lower-frequency signals (HPF behavior), making RC differentiators noise-sensitive. Active differentiators typically add a series resistor to limit high-frequency gain.
β¦ Full Answer
| Property | Differentiator | Integrator |
|---|---|---|
| Circuit type | HPF (R output) | LPF (C output) |
| C position | Series (in path) | Shunt (to GND) |
| R position | Shunt (to GND) | Series (in path) |
| Condition | Ο βͺ T (RC βͺ 1/f) | Ο β« T (RC β« 1/f) |
| Output eqn | Vout β RCΒ·dVin/dt | Vout β (1/RC)β«VinΒ·dt |
| Gain slope | +20 dB/dec (low f) | β20 dB/dec (high f) |
| Square β ? | Spikes at edges | Triangular wave |
| Triangle β ? | Square wave | Rounded/sine-like |
RC Integrator
Output is the integral of the input. LPF with Ο β« T.
β¦ Full Answer
- Condition: Ο = RC β« T (or equivalently, fc βͺ f_input)
- Derivation: Since Ο β« T, the voltage across C is very small β Vin β V_R = iΒ·R β i β Vin/R
- But Vc = (1/C)β«iΒ·dt β (1/C)β«(Vin/R)dt = (1/RC)β«VinΒ·dt
β¦ Full Answer
| Input | Mathematical Integral | Output Waveform |
|---|---|---|
| Square wave | β«constant = ramp | Triangular wave (ramps up/down) |
| Triangle wave | β«ramp = parabola | Parabolic / sine-like curve |
| Sine: AΒ·sin(Οt) | β«sin = βcos | Cosine (90Β° phase lag), amplitude = A/(ΟRC) |
| Ramp (at) | β«at dt = atΒ²/2 | Parabolic rise |
| Impulse (spike) | β«Ξ΄(t) dt = step | Step function |
β¦ Full Answer
- Waveform shaping (square β triangle): Generating triangular waveforms for function generators, sweep circuits, and testing. Much simpler than using dedicated circuits.
- Analog computing: Solving differential equations in real time. Integrators were the core building block of analog computers (now replaced by op-amp integrators with better accuracy).
- ADC averaging: Integrating (averaging) the input over a fixed time window reduces noise in dual-slope ADC converters used in digital multimeters.
- Low-pass filtering / smoothing: Removes high-frequency ripple from rectified power supplies. The capacitor integrates the current pulses, resulting in a smooth DC output.
- Motor speed control (back-EMF integration): In DC motor drives, the back-EMF is integrated to estimate rotor position or smooth command signals.
β¦ Full Answer
- Gain loss: RC integrator Vout = Vin/(ΟRC) β gain is always less than 1 (attenuates signal). Op-amp integrator can have higher gain.
- Loading effect: The output impedance of the RC integrator is high (capacitive). Connecting a load changes the time constant. Op-amp integrators have low output impedance.
- Accuracy: RC integration is only approximate (requires Ο β« T). Op-amp integrators compute the true integral mathematically.
- DC drift: Any small DC offset in the input integrates over time and causes the output to drift to the rail (“wind-up”). Op-amp integrators use a reset switch or feedback resistor to control this.
- Frequency-dependent accuracy: RC integrator only works well at high frequencies relative to fc. Op-amp integrators work at low frequencies too.
β¦ Full Answer
- Ο = RC = 10,000 Γ 1Γ10β»βΆ = 10 ms
- T = 1/f = 1/1000 = 1 ms
- Ο/T = 10 ms / 1 ms = 10. Since Ο β« T (10Γ), the integrator condition IS met. β
- Output is a triangular wave. Ramp slope = Vin/Ο = 5V / 10ms = 500 V/s
- During half-period T/2 = 0.5ms: ΞV = slope Γ T/2 = 500 Γ 0.5Γ10β»Β³ = 0.25 V peak
- Peak-to-peak output β 0.5V (triangular wave)
Mixed RC Topics
Band-pass/stop filters, AC analysis, power factor, and design comparisons.
β¦ Full Answer
- A BPF is created by cascading a HPF (with cutoff fL) and an LPF (with cutoff fH), where fL < fH.
- Passband: fL to fH. Signals within this range pass through.
- Bandwidth: BW = fH β fL
- Center frequency: fβ = β(fL Γ fH) (geometric mean)
- Q factor: Q = fβ / BW (selectivity). Higher Q = narrower, more selective filter.
- With RC alone, the loading between stages shifts the actual response β buffers (op-amps) are needed for accurate cascading.
β¦ Full Answer
- In an AC RC circuit, voltage and current are not in phase. The capacitor causes current to lead voltage.
- Impedance: Z = β(RΒ² + XcΒ²), where Xc = 1/(2ΟfC)
- Phase angle: Ο = βarctan(Xc/R) (current leads voltage by Ο)
- Power factor: PF = cos(Ο) = R/Z = R / β(RΒ² + XcΒ²)
- True (active) power: P = Vrms Γ Irms Γ cos(Ο) (Watts)
- Reactive power: Q = Vrms Γ Irms Γ sin(Ο) (VAR) β stored and returned by capacitor
- Apparent power: S = Vrms Γ Irms (VA)
β¦ Full Answer
- A band-stop (notch) filter blocks a specific range of frequencies while passing all others. It is the complement of a BPF.
- RC notch filter: Can be built using a “twin-T” RC network β two T-networks of RC components connected in parallel. One T passes high frequencies, the other passes low frequencies. At the notch frequency, their outputs cancel (180Β° apart, equal amplitude).
- Twin-T notch frequency: f_notch = 1/(2ΟRC) β with specific component ratios (Rβ=Rβ=R, Cβ=Cβ=C, Rβ=R/2, Cβ=2C).
- Applications: Eliminating 50 Hz/60 Hz power line hum from audio recordings and medical ECG signals; removing a specific interference frequency from measurement instruments.
β¦ Full Answer
- Time constant Ο: The time for the output to reach 63.2% of its final value. Characterizes the speed of the exponential response. Ο = RC.
- Rise time t_r: Conventionally defined as the time for the output to rise from 10% to 90% of its final value (in step response).
- Derivation of t_r: From Vc(t) = Vβ(1βeβt/Ο):
At 10%: 0.1 = 1βeβt1/Ο β t1 = ΟΒ·ln(10/9) β 0.1054Ο
At 90%: 0.9 = 1βeβt2/Ο β t2 = ΟΒ·ln(10) β 2.303Ο
t_r = t2 β t1 β 2.197Ο β 2.2Ο - In terms of bandwidth: t_r β 0.35 / BW (BW = fc for first-order RC LPF)
β¦ Full Answer
- Source resistance R_s: The source is never ideal β it has internal resistance R_s. This appears in series with the filter R, increasing the total series resistance. The effective cutoff becomes: fc = 1 / (2Ο(R + R_s)C). Larger R_s β lower fc β shifts the filter response down.
- Load resistance R_L: A finite load in parallel with the capacitor (LPF) acts as an additional discharge path. The effective shunt impedance at the capacitor is (Xc β R_L). At DC, R_L forms a divider with R, reducing gain. The effective time constant decreases, raising fc.
- Rule for LPF with load: fc = 1 / (2Ο Γ (R β R_L + R_s) Γ C) β approximately, for R_s βͺ R_L.
- Best practice: Drive the filter from a low-impedance source (R_s βͺ R) and load it into a high-impedance input (R_L β« R) to minimize loading effects. Buffer amplifiers (voltage followers) solve both problems.
β¦ Full Answer
| Property | RC Filter | RL Filter | LC Filter |
|---|---|---|---|
| Components | R + C | R + L | L + C |
| Losses | R dissipates power | R dissipates power | Lossless (ideal) |
| Size/Cost | Small, cheap | Medium | Large, expensive |
| Roll-off | β20 dB/dec | β20 dB/dec | β40 dB/dec |
| Resonance | No | No | Yes |
| Best for | Signal filtering, coupling, decoupling, audio | RF chokes, noise suppression at high freq | RF tuning, power filters, sharp filters |
| Frequency range | DC to ~MHz | DC to GHz | kHz to GHz |
β¦ Full Answer
- The Wien bridge oscillator uses an RC network in the positive feedback path of an amplifier (typically op-amp) to produce a stable sinusoidal output.
- The frequency-selective RC network consists of a series RC (Cβ, Rβ) and parallel RC (Cβ, Rβ) β forming a bandpass network that has unity gain and zero phase shift at the oscillation frequency.
- Oscillation frequency: For Rβ=Rβ=R and Cβ=Cβ=C: fβ = 1/(2ΟRC)
- Barkhausen criterion: The loop gain must equal 1 and the total phase shift must be 0Β° (or 360Β°). At fβ, the RC network provides 0Β° phase shift with 1/3 attenuation, so the amplifier must have gain = 3.
- Gain condition: Rf/R1 = 2 (so total gain = 1 + 2 = 3) in the inverting amplifier configuration.
- Applications: Audio signal generators, function generators, test equipment. The HP 200A, one of HP’s first products (built by Bill Hewlett), was a Wien bridge oscillator.
