RC circuit
From Wikipedia, the free encyclopedia
A resistor-capacitor circuit (RC circuit), or RC filter or RC network, is one of the simplest analogue electronic filters. It consists of a resistor and a capacitor, either in series or in parallel, driven by a voltage or current source.
Contents |
[edit] Introduction
There are three basic, linear analog circuit components: the resistor (R), capacitor (C) and inductor (L). These may be combined in four important combinations: the RC circuit, the RL circuit, the LC circuit and the RLC circuit with the abbreviations indicating which components are used. These circuits, between them, exhibit a large number of important types of behaviour that are fundamental to much of analog electronics. In particular, they are able to act as passive filters. This article considers the RC circuit, in both series and parallel as shown in the diagrams.
- This article relies on knowledge of the complex impedance representation of capacitors and on knowledge of the frequency domain representation of signals.
[edit] Complex impedance
The complex impedance ZC (in ohms) of a capacitor with capacitance C (in farads) is
The angular frequency s is, in general, a complex number,
where
- j represents the imaginary unit:
- j2 = − 1
- is the exponential decay constant (in radians per second), and
- is the sinusoidal angular frequency (also in radians per second).
Note: the identity j2 = − 1 is correctly written as such, and not as . The second expression is usually avoided, since the right-hand side has two possible values, one the negative of the other, and it is not desirable for the constant j to have two values at once.
[edit] Sinusoidal steady state
Sinusoidal steady state is a special case in which the input voltage consists of a pure sinusoid (with no exponential decay). As a result,
and the evaluation of s becomes
[edit] Series circuit
By viewing the circuit as a voltage divider, we see that the voltage across the capacitor is:
and the voltage across the resistor is:
- .
[edit] Transfer functions
The transfer function for the capacitor is
- .
Similarly, the transfer function for the resistor is
- .
[edit] Poles and zeros
Both transfer functions have a single pole located at
- .
In addition, the transfer function for the resistor has a zero located at the origin.
[edit] Gain and phase angle
The gains across the two components are:
and
- ,
and the phase angles are:
and
- .
These expressions together may be substituted into the usual expression for the phasor representing the output:
- .
[edit] Current
The current in the circuit is the same everywhere since the circuit is in series:
[edit] Impulse response
The impulse response for each voltage is the inverse Laplace transform of the corresponding transfer function. It represents the response of the circuit to an input voltage consisting of an impulse or delta function.
The impulse response for the capacitor voltage is
where u(t) is the Heaviside step function and
is the time constant.
Similarly, the impulse response for the resistor voltage is
where δ(t) is the Dirac delta function
[edit] Frequency domain considerations
These are frequency domain expressions. Analysis of them will show which frequencies the circuits (or filters) pass and reject. This analysis rests on a consideration of what happens to these gains as the frequency becomes very large and very small.
As :
- .
As :
- .
This shows that, if the output is taken across the capacitor, high frequencies are attenuated (rejected) and low frequencies are passed. Thus, the circuit behaves as a low-pass filter. If, though, the output is taken across the resistor, high frequencies are passed and low frequencies are rejected. In this configuration, the circuit behaves as a high-pass filter.
The range of frequencies that the filter passes is called its bandwidth. The point at which the filter attenuates the signal to half its unfiltered power is termed its cutoff frequency. This requires that the gain of the circuit be reduced to
- .
Solving the above equation yields
or
which is the frequency that the filter will attenuate to half its original power.
Clearly, the phases also depend on frequency, although this effect is less interesting generally than the gain variations.
As :
- .
As :
So at DC (0 Hz), the capacitor voltage is in phase with the signal voltage while the resistor voltage leads it by 90°. As frequency increases, the capacitor voltage comes to have a 90° lag relative to the signal and the resistor voltage comes to be in-phase with the signal.
[edit] Time domain considerations
- This section relies on knowledge of e, the natural logarithmic constant.
The most straightforward way to derive the time domain behaviour is to use the Laplace transforms of the expressions for VC and VR given above. This effectively transforms . Assuming a step input (i.e. Vin = 0 before t = 0 and then Vin = V afterwards):
and
- .
Partial fractions expansions and the inverse Laplace transform yield:
- .
These equations are for calculating the voltage across the capacitor and resistor respectively while the capacitor is charging; for discharging, the equations are vice-versa. The equations can be modified for current and charge due to Ohm's Law and C=q/V, respectively.[verification needed]
Thus, the voltage across the capacitor tends towards V as time passes, while the voltage across the resistor tends towards 0, as shown in the figures. This is in keeping with the intuitive point that the capacitor will be charging from the supply voltage as time passes, and will eventually be fully charged and form an open circuit.
These equations show that a series RC circuit has a time constant, usually denoted τ = RC being the time it takes the voltage across the component to either rise (across C) or fall (across R) to within 1 / e of its final value. That is, τ is the time it takes VC to reach V(1 − 1 / e) and VR to reach V(1 / e).
The rate of change is a fractional per τ. Thus, in going from t = Nτ to t = (N + 1)τ, the voltage will have moved about 63.2 % of the way from its level at t = Nτ toward its final value. So C will be charged to about 63.2 % after τ, and essentially fully charged (99.3 %) after about 5τ. When the voltage source is replaced with a short-circuit, with C fully charged, the voltage across C drops exponentially with t from V towards 0. C will be discharged to about 36.8 % after τ, and essentially fully discharged (0.7 %) after about 5τ. Note that the current, I, in the circuit behaves as the voltage across R does, via Ohm's Law.
These results may also be derived by solving the differential equations describing the circuit:
and
- .
The first equation is solved by using an integrating factor and the second follows easily; the solutions are exactly the same as those obtained via Laplace transforms.
[edit] Integrator
Consider the output across the capacitor at high frequency i.e.
- .
This means that the capacitor has insufficient time to charge up and so its voltage is very small. Thus the input voltage approximately equals the voltage across the resistor. To see this, consider the expression for I given above:
but note that the frequency condition described means that
so
- which is just Ohm's Law.
Now,
so
- ,
which is an integrator across the capacitor.
[edit] Differentiator
Consider the output across the resistor at low frequency i.e.
- .
This means that the capacitor has time to charge up until its voltage is almost equal to the source's voltage. Considering the expression for I again, when
- ,
so
Now,
which is a differentiator across the resistor.
More accurate integration and differentiation can be achieved by placing resistors and capacitors as appropriate on the input and feedback loop of operational amplifiers.
[edit] Parallel circuit
The parallel RC circuit is generally of less interest than the series circuit. This is largely because the output voltage Vout is equal to the input voltage Vin — as a result, this circuit does not act as a filter on the input signal unless fed by a current source.
With complex impedances:
and
- .
This shows that the capacitor current is 90° out of phase with the resistor (and source) current. Alternatively, the governing differential equations may be used:
and
- .
For a step input (which is effectively a 0 Hz or DC signal), the derivative of the input is an impulse at t = 0. Thus, the capacitor reaches full charge very quickly and becomes an open circuit — the well-known DC behaviour of a capacitor.