Author Topic: Planning ahead: compensation capacitor footprints  (Read 2012 times)

0 Members and 1 Guest are viewing this topic.

Offline cellularmitosisTopic starter

  • Supporter
  • ****
  • Posts: 1111
  • Country: us
Planning ahead: compensation capacitor footprints
« on: April 13, 2017, 06:44:51 pm »
Howdy!

I'm going to be taking a swing at some projects involving op-amp feedback loops in the near future (e.g. a high-side current source).

Ideally I'd like to plan ahead and add some optional footprints to my PCB design so that I can add a compensation capacitor here or there as needed.

Where would you place such just-in-case footprints in a typical op-amp circuit?

For example, here's an Intersil appnote about compensation: http://www.intersil.com/content/dam/Intersil/documents/an94/an9415.pdf

They show a few examples of where you might want a compensation capacitor (see attachment)
LTZs: KX FX MX CX PX Frank A9 QX
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14594
  • Country: de
Re: Planning ahead: compensation capacitor footprints
« Reply #1 on: April 13, 2017, 07:53:00 pm »
The more common capacitor at an OP is in direct feedback, thus output to the inverting input. However this only applies to voltage feedback OP - it does not work with current feedback OPs.

The other place that is sometimes used is between the inputs.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22165
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Planning ahead: compensation capacitor footprints
« Reply #2 on: April 13, 2017, 08:34:43 pm »
Add an R+C.  This way you can always use the lone C (R = zero ohm jumper), or add a "shelf" or pole-zero compensation.

If this is more about signals than control loops, it may be desirable to add filtering or bypass at the signal input and/or output, away from the op-amp itself.

Consider,
Q: When is an op-amp not an op-amp?
A: Near GBW.

An active filter only works while the amp gain is high.  As amp gain drops to 1 (and below), the compensation capacitor ceases to compensate, and becomes a feed-forward capacitor instead.  Typically, for the circuit shown, the frequency response has a low-pass response, where gain falls from nominal (below fc) to maximum attenuation at some modest frequency, then rising again.  This is accompanied by a notch, where phase reversal occurs.  Above that frequency, gain is determined by the resistor ratios between input and output (including the op-amp's output impedance, which is nonzero, despite what the textbooks say).

So, you can't get unlimited, asymptotic response from a GBW limited amplifier.  But you can get close with a passive filter.  Keep this in mind when you need squeaky clean filters!

Also, filter RFI away from any wires that leave the board.  Only use the bandwidth you need, and filter away the rest.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: julian1

Offline cellularmitosisTopic starter

  • Supporter
  • ****
  • Posts: 1111
  • Country: us
Re: Planning ahead: compensation capacitor footprints
« Reply #3 on: April 14, 2017, 02:10:21 am »
Thanks guys!  That explanation is really helpful Tim (a short at high freq).

I was just toying around with a high-side current source in LTSpice and was able to fix some oscillation with 1pF across the feedback capacitor!

LTZs: KX FX MX CX PX Frank A9 QX
 

Offline cellularmitosisTopic starter

  • Supporter
  • ****
  • Posts: 1111
  • Country: us
Re: Planning ahead: compensation capacitor footprints
« Reply #4 on: April 14, 2017, 02:12:22 am »
(oops, that should be 1pF on the cap, not 1pC)
LTZs: KX FX MX CX PX Frank A9 QX
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22165
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Planning ahead: compensation capacitor footprints
« Reply #5 on: April 14, 2017, 08:20:47 pm »
You should probably compensate the error amplifier U2 instead.  Note also that the limited speed of U2 (with or without compensation) will make the output characteristic capacitive at high frequencies (i.e., the output impedance is dropping with rising F).

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline cellularmitosisTopic starter

  • Supporter
  • ****
  • Posts: 1111
  • Country: us
Re: Planning ahead: compensation capacitor footprints
« Reply #6 on: April 14, 2017, 09:41:40 pm »
Actually I tried that (a cap from U2 output to inverting input), but I had to make the cap ridiculously large to stop the oscillation (like 100uF)
LTZs: KX FX MX CX PX Frank A9 QX
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22165
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Planning ahead: compensation capacitor footprints
« Reply #7 on: April 14, 2017, 10:06:26 pm »
You didn't forget to put a resistor in series with U1's output, right..?

Also, a R+C gives you control over phase margin, so you can get much higher cutoff frequency than with just a C.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline cellularmitosisTopic starter

  • Supporter
  • ****
  • Posts: 1111
  • Country: us
Re: Planning ahead: compensation capacitor footprints
« Reply #8 on: April 14, 2017, 10:47:11 pm »
Ah, I did forget to do that, thanks :)
LTZs: KX FX MX CX PX Frank A9 QX
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14594
  • Country: de
Re: Planning ahead: compensation capacitor footprints
« Reply #9 on: April 15, 2017, 07:36:17 am »
In this circuit, there should be compensation at U2, and the circuit around U1 should be rather fast.

 To make the part around U1 fast, the resistor values should be considerably lower than 100 K, to reduce the effect of parasitic capacitance. The amplification around U1 is usually stable without an extra capacitor.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf