How to chose the right decoupling/bypass capacitor variant for opAmp power rails?
There is a difference between op-amp decoupling and, for example, logic chips decoupling.
The purpose of bypass capacitors is to provide sufficiently low impedance on power rails in the whole frequency range of the op-amp. Different types of op-amps have very different frequency range: Gain Bandwidth Product (in fact, it typically defines the bandwidth) varies from 1 MHz to 4 GHz, at least. So - decoupling of 4 GHz op-amp by 22 uF capacitors is really weird idea. They have too high impedance in GHz range. They just do nothing for decoupling. Most likely, op-amp would not be stable with such decoupling.
Decoupling requirements of more common op-amps depend on a quality of supply rails. Low inductance and low impedance rails do not need much capacitance for decoupling. You can do perfectly with 68 nF or even 47 nF. It is a good choice on 4 (or more) layers PCB with power plains.
However, on 2 layers PCB the active and reactive impedance of supply wires may be high; it may require 100 nF in parallel with few uF capacitor.
Another purpose is to filter out some AC interference or similar voltages found on supply rails. To get this effect, you need to use ferrite beads (or resistors) between the power rail and OP AMP. Resistors are not a good choice as they increase voltage drop on DC.
So the optimal bypass capacitors depend on:
- Gain Bandwidth Product of your OP AMP;
- The quality of your PCB;
- "Purity" of your power rails.
The basic rules are:
- Use small (10 nF - 68 nF) 0402 capacitors for really fast op-amps
- Use 68 nF - 100 nF on "normal" op-amps with reasonably good PCB design
- Use 68 nF - 100 nF in parallel with larger capacitors (> 2.2 uF) if the power rails are long;
- Use 100 nF and ferrite beads if you expect some interference from power rails;
- Use larger capacitors for op-amps with high output current: no less than 100 nF on 500 mA of output current.
The purpose of the capacitors at the rails is to decouple (smooth out or short out) any AC from DC.
0.1 or 100nF is generally used to smooth out the higher frequencies and transient edges (glitches) that might find their way to the output of the op amp.
Sometimes it is important to ensure that the lower frequencies (such as 50Hz) are eliminated or substantially reduced . In this case a large value (usually electrolytic) capacitor is used, sometimes with a small series resistor to give the smoothing required.
Why not just use one larger capacitor rather than two?
Larger values tend to have a greater loss at the higher frequencies (become more resistive/reactive) so by placing two different (types of) capacitors in parallel (say 10uF, 0.1uF) it increases the effective frequency range of the decoupling.