Rules | Recent posts | topic RSS | Search | Register  | Log in

how to plot open-loop gain vs frequency

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design
Author Message
cjupiter



Joined: 10 May 2004
Posts: 45


Post20 Oct 2004 5:43   how to plot open-loop gain vs frequency

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?
Back to top
Fom



Joined: 10 Mar 2004
Posts: 759
Helped: 56
Location: Taiwan


Post20 Oct 2004 5:50   Re: how to plot open-loop gain vs frequency

If you have no feedback from output to input in your simulation circuit no need to change anything.
Back to top
sunking



Joined: 25 May 2004
Posts: 914
Helped: 46


Post20 Oct 2004 7:20   Re: how to plot open-loop gain vs frequency

Add a Big RI(1G or so) between output and input, then simulate.
plot with db
Back to top
Hughes



Joined: 10 Jun 2003
Posts: 712
Helped: 84


Post20 Oct 2004 9:29   Re: how to plot open-loop gain vs frequency

cjupiter wrote:
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.
Back to top
cjupiter



Joined: 10 May 2004
Posts: 45


Post20 Oct 2004 12:00   Re: how to plot open-loop gain vs frequency

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?


Sorry, but you need login in to view this attachment

Back to top
Hughes



Joined: 10 Jun 2003
Posts: 712
Helped: 84


Post20 Oct 2004 13:51   Re: how to plot open-loop gain vs frequency

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.


Sorry, but you need login in to view this attachment

Back to top
hanjiemy



Joined: 11 Jun 2004
Posts: 54


Post21 Oct 2004 6:12   how to plot open-loop gain vs frequency

I think that u have sth. wrong with your circuit.
Every problem must have a more simple than it , need be solved.
Back to top
devrimaksin



Joined: 13 Oct 2004
Posts: 93
Helped: 9
Location: Dallas, Texas, USA


Post21 Oct 2004 19:45   how to plot open-loop gain vs frequency

Instead of an inductor put a resistor
this way you can simulate
DC gain also
Back to top
hawkin



Joined: 05 Jul 2004
Posts: 10


Post24 Oct 2004 12:33   how to plot open-loop gain vs frequency

which tool do you use?
when i use spectre,it's easily to plot the bode curves in the direct plot fuction.
Back to top
anadigi



Joined: 01 Oct 2004
Posts: 31
Helped: 1


Post24 Oct 2004 13:53   Re: how to plot open-loop gain vs frequency

devrimaksin wrote:
Instead of an inductor put a resistor
this way you can simulate
DC gain also

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
Back to top
VSWR



Joined: 07 Feb 2002
Posts: 640
Helped: 53


Post25 Oct 2004 21:56   Re: how to plot open-loop gain vs frequency

Here is a good article:

http://www.spectrum-soft.com/news/winter2001/loopgain.shtm
Back to top
Ipanema



Joined: 27 Oct 2004
Posts: 41


Post28 Oct 2004 4:20   Re: how to plot open-loop gain vs frequency

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.

Thanks
Back to top
yakyao



Joined: 12 Oct 2004
Posts: 8


Post28 Oct 2004 4:54   how to plot open-loop gain vs frequency

maybe the DC bias is wrong
Back to top
cjupiter



Joined: 10 May 2004
Posts: 45


Post28 Oct 2004 4:59   Re: how to plot open-loop gain vs frequency

yakyao wrote:
maybe the DC bias is wrong


So youre saying i should bias my input transistors first with a DC source before performing the AC frequency sweep?

Thanks
Back to top
Hughes



Joined: 10 Jun 2003
Posts: 712
Helped: 84


Post05 Jan 2005 23:55   Re: how to plot open-loop gain vs frequency

cjupiter wrote:
yakyao wrote:
maybe the DC bias is wrong


So youre saying i should bias my input transistors first with a DC source before performing the AC frequency sweep?

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).
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap