# putting the decoupling capacitor merely/only near the vcc line [duplicate]

I know I am wrong, this question is just to understand logically why, I am not an engineer but an hobbist

While designing a pcb for a mcu I should put a decoupling capacitor near each power lines. We do it because the current draw of the ic could change and the capacitor will supply it immediately

Until here i hope we all agree

but why can't i put this cap only near the Vcc?

this is a hyperbole/example of what i am trying to say:

I heard that the answer could be: "Because the electrons moves from - to +" but i don't think that this is correct logic, because this could bring me to make the board in the opposite situation: the cap near gnd and a very long track until vcc

I hope that i m not going to "shock" anyone with this dumb question, please it is just a curiosity

## marked as duplicate by Olin Lathrop capacitor StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 19 '17 at 19:12

• What do you mean "only near the VCC"? Does your MCU only have one VCC pin? – The Photon Dec 19 '17 at 19:03
• it is just an example, in this situation yes, immagine that the mcu just have one vcc/vss couple of pin, by the way i am not going to power it with a 9V battery – aster94 Dec 19 '17 at 19:08
• If the question is, "why near Vcc rather than near the Ground line?" then nowadays, most layouts have a layer dedicated to a ground plane, while not all have another layer devoted to a power plane. – Brian Drummond Dec 19 '17 at 19:15

There is no difference between VCC and GND, both provide a voltage rail, and they are both defined only by the difference in voltage between them.

When you decouple VCC, the IC cannot pull the VCC pin down with a hard transient.

When you decouple GND, the IC cannot pull the GND pin up with a hard transient.

Either way would reduce the difference between VCC and GND.

An alternative view is to ignore the DC voltage, and treat the IC as the source of high-frequency noise that you want to stop from reaching the other components or the power supply. Having a capacitor on a short path between the supply pins shorts the high-frequency noise (remember that capacitors pass high frequency components and block lower frequencies), however the inductance of the traces to the capacitors form a low pass filter, and together with the capacitor, you get a band pass. Ideally you want a fairly wide band here, so you want high capacitance and low inductance on this path.

• I think that this perfectly answer to my question, thank you! – aster94 Dec 19 '17 at 19:19

Having a long ground connection to the decoupling capacitor will increase its effective inductance, making it less effective at doing what it is prescribed for: handling sudden power bursts. The inductance slows down the current change, starving the chip and potentially causing it to misbehave.

• Read the first sentence of the question again . – Harry Svensson Dec 19 '17 at 19:13
• @HarrySvensson: I'm not sure that I'm picking up what you're getting at. The asker posted a layout with a degenerate example of what he meant, and my answer attempts to explain what is wrong with said layout. – Ignacio Vazquez-Abrams Dec 19 '17 at 19:19
• "a degenerate example" ? Not sure what you mean there – TonyM Dec 19 '17 at 22:11
• @TonyM: Look at the ground trace in the layout. – Ignacio Vazquez-Abrams Dec 20 '17 at 0:31
• I did look but it didn't tell me what 'degenerate' means when referring to an example. – TonyM Dec 20 '17 at 6:47