Electronic – Why crystal capacitors have to be close to each other

crystalmicrocontrollerpcb-design

Atmel's AVR186 document shows in page 2 a layout of two capacitors very close to each other and pointing in the same direction, also in page 3 they say: "The load capacitors should be placed close to each other." (despite "Reduce the parasitic capacitance between Xtalin and Xtalout pins by routing them as far
apart as possible." which sounds contradictory).

I wanted to know why to place them like this, so close to each other. My guess is since there is apparently an inversor amplifier inside the MCU, the current in them is always in opposite direction so the induced magnetic fields will cancel with each other and it's inductance will better. But I am not sure this is the reason and if the current is circulating in them in the same direction, this can be twice as worse since the fields will couple adding each other.

Best Answer

Yes, there is a strong RF current flowing through the capacitors of a crystal oscillator. In order to keep this current from coupling to/from free space (EMI considerations), it is necessary to keep the loop area of this circuit as small as possible.

In this case, the "loop" is the complete path through the crystal and the two capacitors. If you don't keep these components as close together as possible, the loop area will be larger than it needs to be.