Electronic – PCB layout for decoupling capacitors

decoupling-capacitorpcb

I've read some very good answers on this subject in questions such as this one and also here.

I'm just a hobbyist designing a very simple PCB, however I still have a few questions about how best to layout the decoupling capacitors on my PCB. It's primarily for WS2811 chips which are LED drivers. I'm using 0805 sized capacitors as I'm not short of space. I could even put the caps on the underside of the board if necessary.

Currently my design stands at this:

PCB Design

The top layer is VCC and the bottom layer is GND. The VCC and GND pins are on different sides of the chip (U1). Currently I've run the data signal (maximum 2MHz) to layer 2 and back. This probably isn't the best way to do it?

Is it even necessary for the GND of the decoupling capacitor to be connected to the same via as the GND of the chip?

Best Answer

As TomCarpenter says, in this scenario, a good solution would be to move the capacitor near the VCC pin (pin 8 of U1, I think), then connect its ground side to the thermal pad under the chip, and connect thermal pad directly to the ground pin (pin 4).

Is it even necessary for the GND of the decoupling capacitor to be connected to the same via as the GND of the chip?

Ideally, the ground pin/pad of the capacitor should be connected by as short a trace as possible to the ground pin of the chip, and the VCC pin of the capacitor connected by as short a trace as possible to the VCC pin of the chip.

The idea is to make as small a loop as possible from VCC, through the chip to GND, and through the capacitor back to VCC. This will generally minimize the equivalent inductance of the connection between the chip and the capacitor.

If your soldering process is capable of it, you might prefer to use smaller capacitors than 0805, because they have lower internal equivalent inductance. (on the other hand, using a larger package will allow getting a capacitor with higher voltage rating, and thus generally less reduction of capacitance due to applied voltage)

Reducing the inductance (in the connection to the chip, and internal to the capacitor itself) increases the resonant frequency of the connection to the capacitor, so it increases the frequencies at which the capacitor continues to provide a low impedance for currents drawn by the chip.