Electronic – Calculated crystal capacitance is out of range

atmegacapacitorcrystal

I know, another question about crystal capacitor values.

I would like to use
this crystal in the 20 MHz version to clock an ATmega1284.

According to the crystal's datasheet, it has a load capacitance of 20 pF.

Using the formula \$C = 2(C_L – C_S)\$ and assuming a stray capacitance of 2 pF or 5 pF, I get a value for each capacitor of 36 pF or 30 pF, respectively.

However, this is outside the recommended range for the capacitors of 12-22 pF according to page 46 of the ATmega1284 datasheet.

So, can I even use this crystal, and if so, with what capacitors?

Best Answer

It will probably work with 22pF capacitors, however the frequency will be a bit off (high). Maybe 50ppm or 75ppm, not enough to worry about the maximum frequency of the MCU.

Better to buy a part that is calibrated with a lower load capacitance.