Electronic – How to calculate this LDO regulator, and how to prevent it from oscillating

ldo

I am further playing around this PMOS LDO circuit I designed and attempted to test and rate (the Edit 3 schematic, simplified by removing the protection circuit). After I dropped in a NJM4559 op amp in place of LM358 it started oscillating (previous record was none of LM324, LM358, TL084 or OPA2134 oscillated). Is this a blessing from TI? (kidding)

How to calculate this circuit, since I have one more MOSFET than what I found in TI's application notes. If it was oscillating, how to stop it from doing it?

My way of determining whether the circuit is oscillating is checking for the Moire pattern on DMM readings since it is difficult to have the LDO oscillate at the frequency (or a harmonic) of the DMM's internal clock frequency. Is this way of checking for oscillations reliable? Don't yell at me about oscilloscopes as I don't have one to start with. Donations are welcome.

Here I replicate the circuit I tested. The op amp can be any one of the following: LM324, LM358, TL084, OPA2134 or NJM4559, and the last of which oscillated. R6 is a load resistor I attach when testing and value options are 10 ohms and 1 kiloohm. Respect the part numbers as those are exactly what I used.

schematic

simulate this circuit – Schematic created using CircuitLab

Best Answer

You just cannot add gain to the output of an op-amp (extra transistors) and expect this to not oscillate without the appropriate compensation.

Look also at the data sheet of the NJM4559 op-amp that was giving you problems. There is nothing in that data sheet that even hints at what the phase margin is. I would expect to see a graph like this: -

enter image description here

This is for a TL084 op-amp and you need to study it in detail; at low frequencies the phase difference between output and input is about 180 degrees - this is what you'd expect from an amplifier i.e. it is largely inverting. As frequency rises there is usually a mini plateau were the phase angle has shifted about 90 degrees i.e. it is behaving like an integrator.

As frequency rises further, gain drops to unity and the phase margin is about 50 degrees i.e. it's 50 degrees away from being an oscillator.

Some op-amps are a bit tighter than this and for many op-amps, the unity gain point (the highest frequency that oscillation could occur) is a lot higher. For the NJM4559 this is about 6MHz. For the TL084 it's only 3MHz.

So, wiring an op-amp with regular resistive feedback and no transistors is fine for the TL084 and maybe it is for the NJM4559 but, the data sheet doesn't give any indication that it is. I would be very mistrusting of this device given the spec that I read.

Now, adding gain into the feedback loop (the two transistors) is going to cause problems nearly every single time - you are basically shifting the unity gain point of the op-amp up (maybe 20 dB or more) and this might very well move the actual unity gain point on the graph by up to 10x in frequency. You'll probably also be degrading the phase characteristics and now you have an oscillator because the phase margin has massively fallen thru 0 degrees at unity gain.

So, then re-assess what the gain is at 0 degrees and you'll find out that it's several dB above unity = oscillator.

Lower the gain of the two transistors is a good start - put a source resistor into M1 of maybe 4k7 and reduce R2 to 4k7 - this is a start but by no means might this be the only thing you need to do.

Related Topic