Im not sure how to plot the open-loop gain of my opamp in spice. I want it so i have the gain in decibels on y-axis and log frequency on the x-axis. Do i have to configure my circuit in order to achieve correct plot?
Im not sure how to plot the open-loop gain of my opamp in spice. I want it so i have the gain in decibels on y-axis and log frequency on the x-axis. Do i have to configure my circuit in order to achieve correct plot?
I'm not very sure about what's the matter with you. If the problem is about the simulation tool, providing the tool name your are using may be helpful. In hspice, you may get the gain vs. frequency curve by ac analysis and a probe statement like this:
.probe ac gain=vdb(out)
If the problem is about circuit configuration, a feedback network may or may not be needed to set the opamp's operating point. In hspice, you may set the AC resistance different from DC value for a resistor. Thus, a feedback network can be constructed to set the DC operting point of the op amp while the opamp is almost 'OPEN-CIRCIRT' in AC analysis.
Thanks for all the feedback everyone. I have plotted the gain by doing a frequency sweep and plotted Vout in db. I have a result but im pretty sure it is wrong. My response is in the negative decibel range instead of the positive range. I have a flat response across - 60dB and then it drops off steeply after 1MHz, becoming more negative. Is there a common reason for this?
Maybe your op amp didn't work with proper DC operting point. You may check the operating of each active devices. If this is the case, you may try to use the attached configuration to do a frequency sweep. The inductor and capacitor should have a large enough value.
Inductor (very high value) will be the better choice..
If u use resistor, u need to be careful..It may cause a false information of 1st pole in ur o/p response..
I hav also seen a T-network(RCR) been used in feedback..but never tried..
Regards
Pls check if any transistor is in cutoff with .op command. If your circuit is OK, then you can compare the AC analysis gain with that obtained from transient anlaysis for comparison in order to make sure that your AC analysis method is correct.
It may or may not be a DC source. If you use a transient function (such as SIN, PWL, PULSE), the value at time 0 is used for calculate the operating point (DC bias).