To measure the loop gain (T = Aβ) of an op-amp in LTspice, insert an AC source in series with the feedback loop, usually using an LC circuit to maintain DC bias. The loop gain is the ratio of the feedback signal V(fb) to the injected stimulus V(in) simulated using an .ac command to analyze stability and phase margin.
We can use LTSpice to simulate these things and check the result. We can plot the loop gain in several ways, but the easiest is to break the loop at the inverting input, and plot the difference between the nodes on either side of the break. This method is not completely fool proof, because it relies on there being a high impedance node on one side of the break, however with the input to an op amp on one side of the break, its hard to go wrong. Here’s what the circuit looks like with the loop broken and an AC source added to drive signals around the loop:
What we are essentially doing here, is to try to plot vout/vin for the loop itself (i.e, the classic gain equation). we have to keep the loop connected though, since otherwise the feedback network wont do its job, and the circuit wont resemble the normal operating conditions. so our zero volt voltage source allows us to inject a signal into the loop without compromising the DC operating points because the feedback network is still connected to the inverting input of the op-amp.
Another way to plot the loop gain involves adding an inductor so huge it looks open circuit at anything above DC, then injecting a signal into the feedback node via a huge capacitor. essentially setting up a different circuit for the DC operating point analysis.
Steps: