Time for some electronics basics post. Tbh, this should not come as a surprise to anyone with electronics knowledge, but still I find that actual measurement results help reinforce that knowledge. I often see decoupling/bypass capacitors that are badly placed. (Before people here feel stepped on their toes, let me add that I’m not talking about a specific board I’ve seen in this forum. It’s more of a general observation.)
Anyway, here is the capacitance over frequency of a typical 100 nF decoupling capacitor (SMD, 0805 type, nothing special about it) connected to a ground plane like you would do it on your PCB. It’s roughly 100 nF, as you can see:
(The effects of the measurement probe were calibrated out beforehand.)
Now, here is the same capacitor, but connected to about 1.5 cm of PCB trace:
In this configuration, it stops being a capacitor between 7 – 8 MHz and becomes an inductor instead! (Inductance is shown in orange and on the right-hand y-axis.) This is because the inductance of the PCB trace dominates the overall behavior. Recall that decoupling capacitors are supposed to filter out high-frequency current spikes. This one won’t do so above a few MHz!
While the actual resonance frequency will vary depending on the exact capacitor type and PCB layout, these exemplary measurements show why you should always place your decoupling caps as close as possible to the IC that needs them.
Placement of decoupling/bypass caps
-
czietz
- Posts: 586
- Joined: 14 Jan 2018 13:02
Placement of decoupling/bypass caps
You do not have the required permissions to view the files attached to this post.
-
rubber_jonnie
- Site Admin

- Posts: 14888
- Joined: 17 Aug 2017 19:40
- Location: Essex
Re: Placement of decoupling/bypass caps
That is really interesting, and whilst I am not an electronics expert, it is nice to see this sort of thing and enhance my knowledge.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
-
exxos
- Site Admin

- Posts: 28350
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Placement of decoupling/bypass caps
Totally agree. A lot of people spend time getting capacitors physical sizes down ( which causes other issues) and totally ignore PCB trace lengths which just adds to the lumped sum of ESL/ESR. In some cases it makes what capacitor is used irrelevant as the PCB issues dominat. And of course, you can end up with a oscillator with the L&C values.
Who is online
Users browsing this forum: ClaudeBot and 1 guest