3

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: enter image description here

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

aster94
  • 163
  • 1
  • 6
  • 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. –  Dec 19 '17 at 19:15

2 Answers2

3

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.

Simon Richter
  • 12,031
  • 1
  • 23
  • 49
1

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.

Ignacio Vazquez-Abrams
  • 48,282
  • 4
  • 73
  • 102