Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Does a crystal need a separate ground underneath it? Start by tracing the return current

On a four-layer PCB, a crystal and its two load capacitors sit next to the microcontroller. To copy the local ground shown in an application note, the designer cuts a thin slot in the second layer and leaves a connection near a microcontroller ground pin. A nearby clock trace from a powered oscillator then crosses that slot to get around a connector mounting hole. The schematic gives no hint of a conflict. Overlaying the trace and reference layers exposes it. The crystal circuit needs protection from interference, while the fast edge on the clock trace needs a continuous return path. The layout has to provide both.

Identify the local ground for the crystal circuit

A typical Pierce oscillator has a crystal between the oscillator input and output, with a load capacitor to ground on each side. The same board may also have a powered oscillator that sends a clock to a distant receiver. The crystal belongs to a closed oscillator loop, where stray capacitance and coupling affect oscillation. The other circuit distributes a digital or differential signal, whose edges depend on trace impedance and the return path. Both nets may be called clocks, so identify what each one does before reviewing the layout.

Section 7 of STMicroelectronics AN2867 gives layout advice for certain STM32 and STM8 oscillators. Figures 13–15 show a dedicated local ground plane tied to a nearby microcontroller ground. The goal is to reduce coupling between the oscillator and the rest of the circuit. Follow the load capacitor returns, note the traces the figures keep away from the oscillator, and identify where local ground rejoins the microcontroller ground. Microchip's AVR watch-crystal guide covers short traces, a ground plane and guard ring, and keeping digital traces away from the area underneath. Use the reference board, application notes, and pinout for the actual chip and package as the starting point.

Top-layer guard copper and a ground plane beneath it also do different work. The guard keeps some interfering conductors away from the oscillator nodes. The plane changes the electric field and provides a reference for neighboring traces. Confirm the guard copper is connected to ground, then consider the capacitance it adds near the two crystal traces. With a watch crystal that takes only a few picofarads of load, a copper change can shift the frequency even if the old load capacitors are unchanged. Starting from the reference-board geometry keeps the number of variables down when evaluating a prototype.

A CAD continuity check cannot tell you how far the return current has to go

The fields between a high-speed trace and its reference plane change as the edge travels. With a solid plane, most of the return current stays near the trace. At a slot, high-frequency return current has to detour to a conductive path or cross through parasitic capacitance to nearby structures. The effective impedance and loop geometry change. Common consequences include a distorted edge at the receiver and higher emissions. TI's SPRAAR7J section on high-frequency return current illustrates a differential pair crossing a gap in its reference plane. Check the plane under both traces even when the pair has matched lengths.

Being on the same ground net establishes DC continuity. A fast edge also needs a return path close to the signal. A connection several centimeters from the crossing cannot give the same return geometry as copper right next to the trace. For a clock moving from the top to the bottom layer, identify the reference plane on each side of the transition and look for a nearby return path between them. A ground via next to a signal via serves a different purpose from a row of vias at a distant board edge.

When reviewing the board, also show analog supply copper, thermal pads, connector shell isolation, and mounting-hole keepouts. A mechanical keepout or a row of via antipads can leave a narrow neck in the reference plane even if nobody intentionally cut a slot for the crystal. Hand the next reviewer a record of each clock segment's routing layer, reference layer, transitions, and termination. If the impedance values came from the PCB supplier's stackup, identify its revision so reviewers use the one that matches the board.

Compare two layouts before choosing one

Suppose layer 2 was originally a solid ground plane and the microcontroller reference design calls for a controlled local ground under the crystal. In the first layout, the island boundary extends into the interface area, so a 45 mm digital clock trace on the right crosses the slot. The second confines the island to the region around the crystal, two capacitors, and adjacent microcontroller ground pin. The clock detours over an intact plane. Hide other layers in the PCB tool and project the trace onto the plane. If the timing constraints allow the added length, the second layout satisfies this return-path check. If the detour exceeds the timing budget, revisit placement and layer transitions.

Arrange prototype measurements to isolate the two concerns. Keep the crystal, capacitors, and software settings fixed, then record startup and frequency before and after the nearby load operates. Hold the powered oscillator and termination constant for the second check, compare edges at the receiver, and mark what changed in the reference plane. If trace lengths also changed, record that separately. An acceptable layout protects the local oscillator circuit and maintains a usable reference under each clock that passes through the area.

Show keepouts on all affected layers in the production files. A short “crystal isolation” note on the top layer may leave the next designer free to route a debug UART, a switching regulator control signal, or a board-to-board clock underneath the island. Mark the actual area and identify the local ground connection by component pin or coordinates. A package change that moves the microcontroller ground pin then points reviewers straight to the connection they need to check.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.