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

One PCB for a crystal and a powered oscillator: Which parts must be mutually exclusive?

A controller board needs two production versions. The standard one uses a passive crystal. The other uses a powered oscillator as an external clock. Sharing the same controller clock input takes three things: support for both modes, electrical isolation of the unused branch, and matching firmware and assembly. Listing both footprints as optional can still leave load capacitors or a harmful trace stub connected.

Draw both complete signal paths

A passive crystal oscillates with the controller's internal amplifier and external or internal load capacitors. Two traces connect the crystal across the oscillator pins. A powered oscillator generates the clock itself and feeds the device's permitted external input. It needs a supply, decoupling, and correct enable state. This controller mode is often called bypass. Check the exact input pin and what the other oscillator pin can do. ST's AN5373 shows an external clock on STM32U5 OSC_IN and describes using OSC_OUT as GPIO in the applicable bypass mode. Other STM32 families or digital bypass modes may require a different connection, including grounding the other pin. Use documentation for the part and mode being built.

Use two explicit schematic population options with isolation links near the controller. Fit the crystal and its specified passives on the crystal build and leave the powered branch link out. A long unused copper trace can otherwise load an oscillator node. For bypass, select the vendor's external clock mode and omit the crystal and both load capacitors. Fit the oscillator enable and power parts. Even one leftover crystal capacitor can exceed the stated load on a powered source. Start each review at the receive pin and nearest isolation point. Removing power at the source alone does not disconnect its trace.

Walk the assembly table component by component

Suppose the design includes crystal Y1, load capacitors C1 and C2, oscillator U2, and two links to the controller. Both branches must follow the manufacturer's connection rules. The crystal build fits its link, Y1, C1, and C2 and uses the crystal-mode firmware. The powered build fits only the U2 link, supply, decoupling, and enable, leaving Y1, C1, C2, and the crystal link out. If the controller requires the other oscillator pin grounded, open, or configured for another function, list its wiring and firmware state explicitly. Assembly instructions should prohibit fitting both source paths.

Walk through four mistakes at the production review: a leftover load capacitor in the powered build, both links fitted, U2 fitted with undefined enable, and crystal hardware loaded with bypass firmware. Layout, BOM, and power-off continuity can expose the first two. The third requires checking actual startup pin levels, and the fourth calls for firmware version and startup logs. Record which source generated the measured frequency. A controller can sometimes keep running from an internal clock when its external source fails.

For the crystal build, use an appropriate buffered output to observe startup and frequency. In bypass, measure level, duty cycle, edges, and startup at an allowed receiver test point. If both use a common buffered output, document its source selection and divider. Otherwise the same measured output frequency cannot show that the right source is active. Include true power cycling, supported resets, and maximum startup current in the test plans.

Preserve separate production baselines

Save distinct BOMs and pick-and-place files, with identifiable firmware versions or production configurations. A shared PCB still permits separate traceability. When a supplier interruption demands a quick substitution, use a previously validated complete variant. A message asking only for a powered oscillator can miss unpopulated components, supplies, firmware, and treatment of the second pin.

If isolation links cannot fit near the controller, reassess the cost of a common layout. Stubs can add parasitics to the crystal, reflections to the powered line, and coupling to unpopulated pads. Export the connected geometry for each option and review connection length and reference planes. A later frequency or package change can then be reviewed against the path actually approved.

Keep separate fault indications for the variants. If production flags an abnormal oscillator period, identify the programmed assembly variant and confirm it matches the hardware. For the powered build, verify that its supply links and bypass parts are fitted. For the crystal build, check the two capacitors and any internal capacitance configuration. Point test labels back to the source on the schematic so a debug input at the board edge is not mistaken for the main clock.

Preserve a reliable way for updated firmware to identify the hardware variant and report an unavailable external clock. Boot defaults and application clock setup can differ, so validate both. If the shared observation pin is static, distinguish a crystal that failed to start, a disabled powered oscillator, and a test output that was never enabled.

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.