Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

why the transient and DC analyses yields different results on Ibias generator circuit

Status
Not open for further replies.
the AC analysis will run only at one specific DC point, not sure which one it will pick in this case (I guess the first). Please try to run AC with vdd at one single value e.g. 2.7V
 
Hi allennlowaton,
may I ask you if you know what you are doing - and why?
There are several forum members who are trying to help you.
Why don't you follow their recommendations?
* You are doing an ac analysis by sweeping the power supply? What do you expect by doing this?
* For stability analyses you need the loop gain. Why don't you show us this gain? In one of your graphs there was only the voltage at one node (instead the ratio of two node voltages); the same for the phase response.
* The last graph shows a curve designated as "gain" - however the axis is named as a current: "result I(in)" . Confusing!
* Something is wrong since the gain curve does not cross the frequency axis.
* Therefore, you have been asked to simulate the bias point. No answer!
* It was recommended to start simulations at lower frequencies. No response.
__________________
It's really not easy to help you.
LvW
 
the AC analysis will run only at one specific DC point, not sure which one it will pick in this case (I guess the first). Please try to run AC with vdd at one single value e.g. 2.7V

This is the AC simulation result using Vdd = 2.7V.


At zero crossing of the phase, the gain is greatly reduced from ~19dB(without big cap) to ~2dB(with big cap).

---------- Post added at 08:58 ---------- Previous post was at 08:44 ----------

Hi allennlowaton,
may I ask you if you know what you are doing - and why?
There are several forum members who are trying to help you.
Why don't you follow their recommendations?
* You are doing an ac analysis by sweeping the power supply? What do you expect by doing this?
* For stability analyses you need the loop gain. Why don't you show us this gain? In one of your graphs there was only the voltage at one node (instead the ratio of two node voltages); the same for the phase response.
* The last graph shows a curve designated as "gain" - however the axis is named as a current: "result I(in)" . Confusing!
* Something is wrong since the gain curve does not cross the frequency axis.
* Therefore, you have been asked to simulate the bias point. No answer!
* It was recommended to start simulations at lower frequencies. No response.
__________________
It's really not easy to help you.
LvW

Hello LvW..
I would like to apologize for the inconveniences I caused.
As much as possible I'm trying hard to keep track on the recommendations of the forum members.
I need more time to squeeze in all of them.
 

Hi LvW

post #37 shows the loop gain, the graph y-axis says (lin) I am guessing for linear scale
i am also guessing that the simulator will pick the first value of the DC sweep to do the OP of the AC analysis but we'll see if that's the case in a coming post
allennlowaton is a student so we need to cut him some slack ;)

it is quite an interesting problem for stability as there is both a positive and a negative feedback loop and even though the negative loop should be completely dominant (much higher output impedance on that side), the loop gain still manages to rise at high frequencies.

You are welcome to weigh in because as far I can see it is not simple to stabilize this with practical values of capacitance... I am probably missing something simple...

---------- Post added at 01:08 ---------- Previous post was at 01:04 ----------

This is the AC simulation result using Vdd = 2.7V.

At zero crossing of the phase, the gain is greatly reduced from ~19dB(without big cap) to ~2dB(with big cap)....

Hi allennlowaton

it looks like my simple recipe for stability does not work: the high frequency limit does not change

It is time to sleep in this part of the world, hopefully LvW can give you a hand

I will have another look tomorrow
 
Hello LvW
* You are doing an ac analysis by sweeping the power supply? What do you expect by doing this?
I made a mistake on this but I already showed a simulation result using a fixed Vdd.

* For stability analyses you need the loop gain. Why don't you show us this gain? In one of your graphs there was only the voltage at one node (instead the ratio of two node voltages); the same for the phase response.
* The last graph shows a curve designated as "gain" - however the axis is named as a current: "result I(in)" . Confusing!


The "result (lin)" is the resulting axis when using the function f(x,y) feature of the Avanwaves. It's the only way I can display the vdb(n5x) - vdb(n5) and the same with the phase also.

*you have been asked to simulate the bias point. No answer!
---do you mean the DC(currents and voltage) graphs?

* It was recommended to start simulations at lower frequencies. No response.
---I don't know how to execute this one. Please teach me.

Thank you very much...



--
 
Last edited:

*you have been asked to simulate the bias point. No answer!
---do you mean the DC(currents and voltage) graphs?

* It was recommended to start simulations at lower frequencies. No response.
---I don't know how to execute this one. Please teach me.


Hi allennlowaton,

1.) In case the ac analysis does not show the expected results the first item to be checked is the bias point.
As you know, each active device (transistor, opamp) needs a suitable operating point that is determined by dc voltages/currents through the circuit. Otherwise its output cannot swing around this point if excited with an ac signal.
Perhaps you remember that in my first posting I have asked for the kind of opamp power supply.
Your answer was: Single supply.
Because, in this case, it is sometimes a bit tricky to bias the opamps I have recommended to you to check the opamp bias points. That means: Determine the dc opamp output voltages. Each simulator program calculates such a bias point before starting an ac analysis - and it should be able to display these voltages.
In your case (single supply) the opamp output dc voltages should be app. Vdd/2. I wonder if this is the case. Therefore, I have asked you to check these voltages.
2.) Your ac analysis starts at 100 Hz. I suppose, this was specified by you in an appropriate box. Or not? It should be possible without any problem to start at 1Hz or even below.
3.) Here is my recommendation for simulating the loop gain:
Do NOT use the method with a large L and a large C. Drop these parts and do nothing else that to place an ac source (1 volt) BETWEEN the nodes N5 and N5x, respectively. Then, the loop gain is Vdb(N5x)-VDB(N5) and the phase P(N5x)-P(N5).
This method is (a) more simple than the LC method and (b) more exact in the lower frequency range.
4.) Comment (for specialists): This method is the first part of the method as proposed by Middlebrook (the second part needs a current source). However, if applied at the opamp output this method is good enough because the loading error is sufficiently small.
_________
Good luck, regards
LvW
 
Last edited:
  • Like
Reactions: allennlowaton

    V

    Points: 2
    Helpful Answer Positive Rating

    allennlowaton

    Points: 2
    Helpful Answer Positive Rating
Hello LvW..
Thank you.
Shown below are the OP DC output sweep and the AC analysis which include the low frequency(0.1Hz).



---------- Post added at 11:59 ---------- Previous post was at 11:57 ----------

The y-axis for the AC analysis as shown as "Result (lin)" is the Vdb(N5x)-VDB(N5) for the gain and P(N5x)-P(N5) for the phase.
 

for the OPA, at the VDD= 1.7V up to 5.5V, the output stays at 1.7V...
 

From now on I would suggest to use a fixed supply of 5 or 5.5 volts.
From your information above I conclude that the dc gain of OP-A is 1.7/0.6=2.8
Watch the dc output of OP-A when slightly changing the dc voltage (0.6 V) at the pos. input node.
Does the output vary accordingly? For example: For dc input= 0.7 V the output should be app 2 volts.
 
I did the simulation with Vdd= 5.5V, the input dc voltage is changed to 0.7V and its DC output is now 1.87V~1.9V
 

OK, it seems that the operating points are in the quasi-linear region of the opamps.
Another question - independent on foregoing stability discussions: What kind of basic malfunction did you observe?
That means - what was the reason for you to perform stability analyses?

Added somewhat later:
My question is because I don't know the present state of your circuit. And - more than that - why are you always ramping the supply voltage? Don`t you operate with a fixed supply?
 
Last edited:
  • Like
Reactions: allennlowaton

    V

    Points: 2
    Helpful Answer Positive Rating

    allennlowaton

    Points: 2
    Helpful Answer Positive Rating
Hello LvW..I just want to obtain an IBIAS which is constant as much as possible.
But simulations shows some oscillations.
The circuit should work on the 2.7~5.5V range (Li-ion battery).
Anyways, the graphs below shows the result of adding a 10pF in between N5 and N3(as dgnani suggested).
But I can't explain what happened..

With 10pF: ripple~10mV


Without 10pF: ripple~100mV


Thank you...
 
Last edited:

Comparing the above results with the diagrams presented with posting #22 I see a big difference.
What has been changed ? The former transient simulations looked better, didn't they?
 
post #54 shows a graph with a smaller graduation as compared with #22. Moreover, #22 has Vdd from 0~5.5V while #54 has Vdd(2.7V~5.5V)
 

Pls post your schematic of OPb. I recommend single-stage opamp (like current mirror OTA. cascode can be added for higher gain).
 

    V

    Points: 2
    Helpful Answer Positive Rating
Pls post your schematic of OPb. I recommend single-stage opamp (like current mirror OTA. cascode can be added for higher gain).

I just used a standard two-stage OP (p-input pairs).
 

More stages will introduce more poles and it makes stability worse usually. Generally, every stage will contribute one pole.
For stability, the loop is compensated to a one pole system that will be stable. So first, it is better to reduce pole number.
Then generate zero to compensate high frequency zero and leave the lowest pole as the dominate pole.
 
More stages will introduce more poles and it makes stability worse usually. Generally, every stage will contribute one pole.
For stability, the loop is compensated to a one pole system that will be stable. So first, it is better to reduce pole number.
Then generate zero to compensate high frequency zero and leave the lowest pole as the dominate pole.

Hi leo

while reducing the number of poles and zeros is definitely the way to go, notice that here the biggest problem here is actually the presence of 2 complex conjugate zeros that create that 'notch' feature in the loop gain, even when we reduce the opamp to a single stage I am not sure that will go away.

I am not sure what creates them (it is basically a gyrated cap somewhere) but adjusting the relative bandwidth of the 3 amplifiers (OPb and the 2 common source amps in the feedback loops) might be key.

One way out of this is too add 2 poles on top of the zeros but it would be nice to understand if there is a more elegant (and practical) way to fix this

_________ CORRECTION

it's 2 zeros not necessarily complex and most likely related to the Cgd of the two PMOS's in the feedback loop
 
Last edited:
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top