# distance between linear and non-linear function of op-amp system

I have a circuit which I have taken a picture of as you can see, in which i have values of

$$R1=1k\Omega,R2=10k\Omega,R3=10k\Omega.R4=10k\Omega,R5=20k\Omega$$

and sine input signal with off-set value=0, amplitude value = 0.1V and frequency=1kHz.

1. How can I calculate the voltage gain in this circuit with pspice? Beacuse when I calculate it myself, I get voltage gain = 20, but when I divide the Vo by Vi in pspice, it shows a very large number. So how can i calculate it with pspice?

2. How can I calculate the distance between linear and non-linear behavior of this circuit?

• oh, then how should that be calculated ? Jul 2, 2020 at 12:09
• Av=20 looks right to me, the positive feedback raises the gain by a factor of 2, and the input resistor is 1k into the virtual earth node giving that first stage a gain of 10. Jul 2, 2020 at 12:13

Second opamp has a voltage gain of -R4/R3 = -1. First opamp is a virtual earth current to voltage stage, having a gain of -R2 mho. The overall gain has two inversions so the voltage across R5 is trivially Vo because it feeds a virtual earth, making the current in R5 Vo/R5.

Input current is Vi/R1 as first opamp inverting input is a virtual earth, so total current at that node is Vi/R1 + Vo/R5.

Gain of first opamp is -R2 mho, and gain of second one is -1, so effective forward path gain is R2 mho.

Vo = (Vi/R1 + Vo/R5)R2 = ViR2/R1 + VoR2/R5.

Vo - VoR2/R5 = ViR2/R1 Vo(1-R2/R5) = ViR2/R1 Vo = Vi(R2/R1)/(1 - R2/R5) Vo = Vi (10k/1k)/(1 - 10k/20k) = 10 * Vi / 0.5

Gain Av = 20 = +26dB.

Someone check my arithmetic!

Note that while each individual opamp is running at a noise gain of at least 2, the overall positive feedback may hurt phase margins and some care may be required to avoid HF instability.

What individual voltages does pspice show, I mean if you measure input and output voltages separately do you get what you expect? Spice can have issues with numerical convergence sometimes, I would be surprised to see it here, but it is not impossible.

For the second bit, look at the datasheets for the output swing in terms of supply voltages, divide by Av, not hard.

You are asking for the "distance" between linear (stable amplification) and unstable:

The gain of the complete circuit is (asuming ideal opamps):

Acl=R2R4R5/[R1(R3R5-R2R4)]

Therefore, stable operation is possible as long as R3R5>R2R4.

If this condition is not fulfilled, positive feedback drives the output into saturation.