Electronic – Crystal oscillator on custom ATMega2560 board is at the wrong frequency

atmegaclockcrystaloscillator

I have designed a custom board using an ATMega2560. The board works fine when configured to use the internal oscillator. The board stops working when I configure it to use the the external 16MHz crystal oscillator. When I place an o-scope probe at R4, the oscillator measures ~680Hz. What am I doing wrong? I even tried re-soldering the clock chip.

Here is the clock chip:

enter image description here

enter image description here

enter image description here

enter image description here

Best Answer

If the XTAL2 pin is an output (as indictaed on your schematic) then R4 needs to be in series with this pin and not XTAL1 (appears to be an input on your schematic). Without a proper value of R4 in the right place you may never get oscillations to occur. See my answers here and here explaining the various components surronding a crystal that make it oscillate.