Electronic – ATmega328 decoupling caps: are they in right position

decoupling-capacitorpcb

I'm designing a PCB layout with an ATmega328 + NRF24. I know perfectly the need of the decoupling caps, C1 and C2 in my image.

My trouble is following: VCC coming from battery (with a 0.1 µF in parallel).

You note that VCC cross C1 (1206 ceramic 0.1 µF) and goes to pin 20. From C1 VCC goes to pin 7 and from pin 7 on the other decoupler capacitor (C2, again 1206 ceramic 0.1 µF).

Is it right OR I need divide the VCC in two branches, every one "going" to one cap?

Enter image description here

To explain, this is other layout:

Enter image description here

Best Answer

Use the first layout. There is no need to split the Vcc feeds like that.

Other issues:

  1. The ground connection to each cap is also important, in many cases even more important, than the power connection. You haven't show that at all. Getting that right should be your first concern. There should be a short trace directly back to the nearest ground pin without running across the ground plane. Since this is a thru hole part (haven't you heard about the 1990s yet?), the ground pin is a good place for the part to connect to the global ground net or plane.

  2. 100 nF is skimpy. Nowadays, there is little reason to go below 1 µF. 100 nF was the common bypass size back in the Pleistocene because of available technology, not because of being optimum. Today's 1 µF multi-layer ceramic caps are smaller, have less series inductance, and have lower impedance over a wider frequency range than the 100 nF thru hole caps of ancient times.

  3. 1206 package is silly. Why deliberately pick something unusual when the more mainstream 0805 would be at least as good electrically, and cause less space constraints in layout? 0805 is still easy to hand-solder. 0603 is easy too, although handling parts that tiny can be more of a hassle. 0402 can be done by hand, but I'd rather not.