**Stray Capacitance Effects:**

Stray Capacitance Effects (C_{s}) at the input terminals of an operational amplifier effectively introduces an additional phase-lag network in the feedback loop, (see Fig. 15-17), thus making the op-amp circuit unstable.

Stray capacitance problems can be avoided by good circuit construction techniques that keep the stray to a minimum. The effects of stray capacitance also depend upon the resistor values used in the feedback network. High resistance values make it easier for small stray capacitances to produce phase lag. With low-resistances, small stray capacitances normally have little effect on the circuit stability.

Analysis of an RC phase lag circuit shows that the capacitor voltage lags the input voltage by 45Â° when the capacitor impedance (X_{c}) equal the series resistance (R). Also, whenÂ X_{c} = 10 R, the phase lag is approximately 10Â°, and it is this 10Â° of additional phase lag that might make the circuit oscillate if its phase margin is already close to the minimum for stability. If the phase margin is known to be large at the frequency where A_{v}B = A_{CL} (the frequency at which the circuit is likely to oscillate), the stray capacitance might be unimportant. Where the phase margin is small, for circuit stability the op-amp input stray capacitance should normally be much less than,

where R is the equivalent resistance in series with the stray capacitance. In Fig. 15-17, R = R_{3} + (R_{1} + r_{s})||R_{2}.

From Eq. 15-4 it is seen that (as already mentioned) the larger resistor values the smaller the stray capacitance that can produce circuit instability. If the signal source is disconnected from the circuit, R becomes equal to (R_{2} + R_{3}), which is much larger than [R_{3} + (r_{s} + R_{1})||R_{2}]. In this situation, extremely small stray capacitance values can make the circuit unstable.

Miller-effect compensation can be used to compensate for stray capacitance at an op-amp input, as shown in Fig. 15-18. To eliminate the phase shift introduced by the stray capacitance the division of the output voltage produced by C_{s} and C_{2} in series should be equal to the division produced by R_{1} and R_{2}. Therefore,

This gives,

Note that Eq. 15-5 does not allow for r_{s} or R_{3} in Fig. 15-17. Where r_{s} is not very much smaller than R_{1}, it must be added to R_{1}. Also, resistor R_{3} could be bypassed with another capacitor to reduce the total series resistance.