Decoupling capacitor via placement

Do you only wont to make your job as good as possible (I always wont it) or you really have IC with so high dI/dt as were mentioned in resources you linked?

Till now I used only 2 layer PCBs (just to inform you that I have no practical experience).
There are PCBs with VCC and GND layers very close to each other and with special material between them increasing capacity. At such PCBs the PCB capacity is the source for the highest frequency components of IC current pulses so the VCC and GND pins should be connected as close as possible to planes. I think that suggestions you read may come (partially) from such designs.
I have read that in standard PCBs the capacitance between VCC and GND layers are too small to have important effect. So I would look mainly at connection length between capacitor and IC. And keep in mind that vias also have their length.
As I know (never used it) vias in pads have to be small enough (less then 0.3mm, better probably 0.2mm) to not stole the tin during soldering.
I have many times placed vias such that their copper just touches the capacitor pads (but I think of vias having 1mm copper diameter and 0.5mm via diameter). In my opinion the risk you write of placing too close via to pad is the question what is the tolerance PCB manufacturer drills the holes to avoid that via hole to stole the tin. So in another words to be sure that there is at least a thin line of solder mask between pad and via hole.
Conclusion: I suggest your option 1.

1 Like

“'Via in pad” is a special technique for high density designs. It’s a very small via which is capped so that the solder doesn’t flow into the hole. Very expensive. If you assemble and solder manually you can put normal vias in pads and the manufacturer won’t probably have any objections. But you have to know what you are doing. Solder paste goes into the normal 0.3…0.5mm via hole if soldering is automated and there’s no good connection between the pad and the component.

1 Like

I just want to make my job as good as possible, especially here since the proper placement does not increase the workload but could have major difference on the functionality. So I was curious what the best practice is.

Thanks a lot for that advice! I think that solved the issue for me. Placing the vias as you described results in really short traces. That way the connection described in the resources I linked above starts to makes more sense.

Also thanks a lot for the clarification that the via in pad problem definitely is no fabrication but only a solder issue! :slight_smile:

I think you’ve received some great advice here.

Remember the goal is to make the impedance between the bypass capacitor and the IC as small as possible. Since this impedance is most important at high frequencies, trace/lead inductance is especially worth avoiding. Therefore, the bypass cap gets placed as close as possible to the IC lead, and has vias placed as close as possible to this pad, connected to the power plane. In really sensitive/higher power designs you can even use multiple vias to reduce inductance.

So usually it’s [VIA]-[BYPASS PAD]-[IC].

I would also caution against putting vias too close to pads. In addition to tolerance from drilling, you also have to worry about the via stealing solder paste from the pad. This can be avoided to some degree by tenting the via, but now you have to worry about soldermask tolerance and drill tolerance to ensure the hole is really plugged. Easier just to move the via away from the pad slightly. 4mil or so is enough usually.

In what frequency range are your components working?
For the AVR microcontrollers I use (Upto 20MHz or so) I just slapped on some decoupling caps with relatively short wires and never had a problem with them (In this regard at least)
I have some experience with the “Blue Pill” boards from china, and though layout looks like barely adequate, and they have no decent GND plane they still “work”. I have not used it’s ADC yet. I’ve read on forums you can not get more then 9 or so noise free bits out of the ADC due to bad PCB layout, while with a better layout 11 clean bits should be possible.

The quality of decoupling gets more important if analog and digital is mixed, and also with higher frequency of the chips. Those GHz arm cores, DDR chips and FPGA’s are a whole different beast then some smallish uC.

“Info” from the internet is soo opinionated, and without hard data or real measurements (Just like this post) I’ve also read those opinions of connecting the caps directly to the pins, and place the via a bit further for “filtering” purposes, but don’t know what’s true of it.

Generally speaking lower impedance is better.
Shorter tracks have lower impedance.
Multiple tracks parallel also have lower impedance.

So for what I can get from your screenshot, I would both use 2 via’s and directly connect the capacitor to the uC pin.

For what I’ve read about Via-in-Pad, the trouble is with the cappilary action of the via which sucks away too much solder from the pad. Possible solutions are:

  • Don’t use them.
  • Use small via’s, so les solder is sucked in.
  • Have the via’s filled by your PCB Fab.
  • Expand the solder mask cutouts with the approximate volume of the via for those pads.
  • Use Wave soldering.
1 Like

I have collected some links for decoupling (bypass) capacitor layout in Does the connected trace to VCC matter here?.

Another good reference is the " Printed Circuit Board Design Techniques for EMC Compliance: A Handbook for Designers" by Mark I. Montrose from the IEEE press. Chapters three and four give some practical advise on capacitor decoupling, trace layout and termination. Being from the IEEE press, it walks through the “why” if you want to underlying theory and real measurements.

I try to keep vias close to the pad and lead traces very short. Be aware that vias to the power plane may be lower impendace than a trace, as pointed out in the sigcon.com reference. Here’s one of my layouts for reference:

1 Like

Thanks a lot for pointing me to all this further information! It seems, that there is no right or wrong regarding the placement while different opinions exist… :crazy_face:

I will try to get my hand on this book but I could not find a free PDF of it online. Never the less they have the printed version in the library.

Frequency should not be a problem but I am using a digital isolators (ADuM1201) and in the AN-1109 application note for the board layout guidelines they deal in detail with the topic of EMI mitigation. That’s where I started to look into proper decoupling again.

I didn’t read that book but I suppose you can replace it with:










I think it is enough for most pcb designers.
3 Likes

This is a lot. Thank you for sharing this. I couldn’t find them online as well.

I can also share links for article series about EMC design not directly aimed at pcb design but don’t know if KiCad forum is right place to do that.

3 Likes

I see no harm! I’d enjoy reading it, it’s important material.

This is excellent @Piotr, I have not seen this before. It lists the Montrose book, @HaLed’s first link and IEEE transactions as references.

Regarding @HaLed original questions, Figure 1D and Part 5 of @Piotr’s references are a great place to start looking.

I would not say it this way. I would suggest it is like selecting the acceptable trace width given the required current for that trace. It just has a few more variables to understand. If I have an IC’s switching rise time (from it’s datasheet), operating frequency, power draw, number of power pins and size of the PCB, I can come up with a capacitor decoupling array strategy. Understanding the fundamentals shown in @Piotr’s references is the difference between using rule-of-thumb opinions and engineering a robust design solution.

1 Like

About 2004 I found an interesting serie of EMC articles by Keith Armstrong (for many years I didn’t know if Keith is a woman or men name). Later they became no accessible, but when I tried to find them few years ago I found them once more:
http://www.compliance-club.com/pdf/DesignTechniquesPart1.pdf
http://www.compliance-club.com/pdf/DesignTechniquesPart2.pdf
http://www.compliance-club.com/pdf/DesignTechniquesPart3.pdf
http://www.compliance-club.com/pdf/DesignTechniquesPart4.pdf
http://www.compliance-club.com/pdf/DesignTechniquesPart5.pdf
http://www.compliance-club.com/pdf/DesignTechniquesPart6.pdf

I wonder why previously my links were changed to rectangles (in source they were just lines) and now it looks my links are lines in source and in result. In both cases these are links to pdf-s.

And probably the same but modified:

Change 1 in ‘part_1’ in address to 2,3,4,5,6 to get the rest.

I found those time many, many pdfs googling for EMC, but these in my opinion are the best compendium of all EMC subjects.

3 Likes

The problem with current ICs is that even you use classic 74HC00 serie you can’t be sure if (to reduce production costs) they are not manufactured with smallest possible technology with the result that slopes are much faster than in the same circuit from the same manufacturer made decades ago.

I’m guessing totally out of my league here, but it seems unlikely there would be much of a die shrink for bog standard HC TTL.

First there is the room needed for the pads for the wire bonding. Then there are the output transistors which need to have a certain size for the drive current, and on top of that it needs to be compatible with 5V (max 6.5V even I think) which makes the 3.3V processes unsuitable.
Combine that with very simple chips with just a handful of transistors and a certain minimum size for cut dies to be able to handle them reliably.

Such changes could also introduce complexity and hard to find bus of insufficient decoupling if they’re used for repair and those logic families have both guaranteed maximum and minimum timing.

Recently I’ve been dabbing some toes into STM32. 3V3 I/O, (most pins 5V tolerant), but internally it runs on 1.8V to get to it’s72MHz. See upper right corner of Page 11 of the 117 page datasheet:
image

For me, emc is the bigger concern. I want noise to stay within the boarders of my card/unit.

The first FPGA card I did over a decade ago had a nasty oscillation on the 3v3 rail. It wasn’t due to a lack of decoupling but the wrong sort. I was using cheap and nasty Traco’s to provide isolated power and then some reference buck designs … a combination of poor input filtering contributed to the ringing. Did the design work? Yup 5kW FOC motor-drive on a bench but that was all it was meant todo. It wasn’t like it was marginal either.

These days after taking a number of units through EMi testing and the cost & time involved, I spend more time worrying about this. Plane shapes of different voltages do not overlap as this is a stray capacitance that bypasses any impedance. Caps are carefully placed to try to keep the noise local to the generation.
Decoupling is there to “decouple” any inductance on the rail to ensure the load received it’s needed charge when it requires BUT it also provides a lower impedance loop.

I have some links I’ll post later.

I like to have one layer solid ground plane. Then I place 0603 or 0402 decoupling capacitors close to the Vdd pins and link.the GND pads to the plane with vias. The ground plane is a much lower impedance than the Vdd tracks.
I rarely have enough layers for a Vdd plane

1 Like

I completely don’t know the internal IC technology, but can imagine that very old ICs can have so big dies that after 20…30 years die shrink can give enough cost save to be legitimate to perform specially that competitor manufacturers offer them cheaper and cheaper.
We have got into that trap about 10 years ago but not with standard HC but with small serial EEPROMs. In our educational microprocessor system (designed in 1995) we had several attachments. They were connected by 10cm flat cable. One of them contained serial EEPROM. It worked well till about 2010. Suddenly stopped. The EEPROMs were exactly the same from the same manufacturer but with the current delivery. The problem was slopes of EEPROM output being too fast end crosstalked to clock line.

E2 and Flash are unusual cases where a lot is going on at internally generated power supply voltages using charge pumps. This allowed some true die shrinks by thinning gate oxide and dropping these supplies

1 Like