Crystal oscillator on board: installation and testing

 Crystal oscillator on board: installation and testing 

2026-07-07

On-board crystal oscillator: critical aspects of installation and initial testing

The stability of the clock frequency determines the reliability of the entire electronic device. In our practice of engineering support for B2B clients, we regularly encounter situations where expensive microcontrollers do not work correctly due to errors in wiring a simple quartz resonator.Crystal oscillator on board: installation and testingis not just a technical procedure, but a fundamental step in ensuring electromagnetic compatibility (EMC) and product durability. Incorrect selection of load capacitors or violation of the topology of ground buses can lead to a frequency drift of 0.5–1%, which is unacceptable for communication systems, industrial automation and medical devices.

Many designers make the mistake of relying solely on the chip's datasheet recommendations, ignoring the parasitic capacitances of the printed circuit board (PCB) itself. We have seen batches of devices fail EMC certification due to harmonics generated by an unstable clock signal. This article is based on real experience in debugging more than 500 different projects for the Russian, CIS and European markets. We'll walk you through the physics of the circuit, step-by-step soldering algorithms, and instrumentation techniques that will allow you to avoid common design pitfalls.

Physics of the process: why installation affects the frequency of the quartz oscillator

The quartz resonator in the circuit operates as a high-quality oscillatory circuit. However, it is not a stand-alone signal source; it requires the correct load to start and maintain oscillations. The key parameter here is Load Capacitance (CL). If the actual capacitance in the circuit differs from the calculated one, the generation frequency is shifted. This phenomenon is called “pulling effect”.

In real installation conditions, parasitic capacitances of tracks and pads are added to the printed circuit board. They are typically 2 to 5 pF (picofarads), but can reach 8 to 10 pF in dense multilayer installations. Ignoring this factor leads to the fact that the generator either does not start at low temperatures or goes beyond the frequency tolerance when heated. In our laboratory, we recorded cases where replacing capacitors rated 22 pF with 15 pF solved the problem of a “floating” start of the device in winter, although the prototypes worked perfectly in summer.

Another critical aspect is the Negative Resistance (Rneg) provided by the chip's inverter. For reliable startup, the gain headroom must be at least 5 times the equivalent series resistance (ESR) of the resonator. Poor mounting, such as using long conductors instead of surface mount design (SMD), increases inductance and reduces this margin, leaving the system vulnerable to external noise.

Recommendation:Before ordering a batch of PCBs, always calculate the parasitic capacitance of your topology in CAD (for example, Altium Designer or KiCad) and make room for selecting capacitors (footprint under 0603 or 0402).

Preparation for installation: selection of components and quality control

Installation success begins before the solder paste is applied. Choosing the right type of quartz resonator and passive components determines 80% of the success of the entire operation. For industrial applications, we strongly recommend using resonators in sealed packages (HC-49/SMD or miniature 3.2x2.5 mm), meeting the AEC-Q200 standard if the device will be used in a car, or the industrial temperature range (-40°C...+85°C).

However, even ideal circuit design will not save the project if the components are unreliable. This is where professional distributors come to the rescue, such asWuhan Xinhualong Technology LLC. Founded in 2009 in China's Optical Valley, the company specializes in providing high-tech semiconductor solutions and provides a transparent supply chain for original components. Their expertise in lot number verification and incoming quality control is especially important when purchasing sensitive components such as quartz resonators and precision capacitors. Cooperation with trusted partners who guarantee 100% product compliance with technical specifications minimizes the risk of receiving defective or counterfeit parts that could cause hidden defects in the generator.

Selection criteria for passive components

Load capacitors must have dielectric class NP0 (C0G). The use of popular capacitors X7R or Y5V is unacceptable in generator circuits, since their capacitance is highly dependent on the applied voltage and temperature. A 10-15% change in capacitance as the board heats up will cause frequency drift, which can take the device out of specification for the communication protocol (such as USB or Ethernet).

  • Capacitor Accuracy:No worse than ±5% (class J) or ±2% (class K). The standard ±10% is too large for fine tuning.
  • Resistor Rd (optional):Sometimes a series resistor is required between the inverter output and the resonator to limit the drive current and prevent the chip from overloading (drive level). Its presence must be confirmed by calculations.
  • Solder paste quality:Use silver paste for lead-free processes (SAC305) to ensure mechanical contact strength, especially for large resonator housings.

Particular attention should be paid to storing components. Quartz resonators are sensitive to moisture. If the package has been opened more than 24 hours ago, the components must be dried according to IPC/JEDEC J-STD-033. Otherwise, when heated in the reflow oven, the moisture inside the case will expand and can destroy the crystal or cause delamination of contacts (“popcorn effect”).

Tip:Check the Date Code on the resonator packaging. Old stocks (>1 year) require mandatory incoming inspection on a test bench before installation into the main batch.

Step-by-step guide: mounting a crystal oscillator on a board

The process of installing a quartz resonator requires strict adherence to technological discipline. Below is an algorithm tested in production. Deviation from these steps often leads to hidden defects that only become apparent after several months of use.

  1. Preparing the seat and applying paste.
    Make sure that the pads on the PCB have clear boundaries and are free of oxidation. For automatic installation, use a stencil with a thickness of 100–120 microns. The paste should be applied evenly. Excess paste under the resonator housing may result in a short circuit to the metal base of the housing (if not insulated) or misalignment of the component. Insufficient paste will cause “cold soldering”. Important: the area under the metal body of the resonator (ground pad) must have thermal barriers to avoid heat dissipation during soldering, which may interfere with heating the main contacts.
  2. Installation of components and fixation.
    When installing the resonator, observe polarity if indicated (although most crystal oscillators are non-polar, some active oscillators are polar). For passive resonators, position relative to the chip is critical. Place the resonator as close as possible to the XTAL_IN and XTAL_OUT pins of the microcontroller. A distance of more than 10–15 mm significantly increases the risk of interference. Capacitors CL1 and CL2 should be located directly next to the resonator terminals, and their ground connections should go to the ground via the shortest path.
  3. Reflow Profile.
    Strictly follow the soldering temperature profile recommended by the resonator manufacturer. A typical profile for lead-free paste includes a preheat of 150–180°C, a soak zone, and a peak temperature of 245–250°C. Exceeding temperatures above 260°C or prolonged exposure to high temperatures may degrade the crystal's internal mounts, resulting in frequency variations or complete failure. We saw a 3% increase in defects when using profiles optimized for large solid components instead of the delicate profile for quartz.
  4. Cleaning and visual inspection.
    After soldering, remove any remaining flux, especially if active flux was used. Residues can create leakage currents between the high-resistance terminals of the generator, which shunts the signal. Perform visual inspection under a microscope (magnification 10x–20x). Check for jumpers, solder balls and cracks in the ceramic resonator body. Pay attention to the shape of the solder fillet: it should be concave and shiny. A matte surface indicates poor cooling or contamination.
  5. Ground localization and shielding.
    Make sure that there are no signal lines of other interfaces (USB, HDMI, motor power lines) under the generator location area. The ideal solution is to create a “guard ring” of ground around the resonator and capacitors, connected to the main ground via several vias. This reduces the influence of external noise. If the board is two-layer, there should be no traces under the generator on the reverse side - only a solid layer of ground.

Common mistake:Placement of vias directly in the contact pad of the capacitor. This leads to solder flowing into the hole and unreliable contact. Vias should be located next to the site, connecting to it with a separate short path.

Test Methodology: From Oscilloscope to Spectrum Analyzer

The installation is complete, but the work is not finished. Testing a crystal oscillator is the most critical stage. Many engineers make the fatal mistake of touching the oscilloscope probe directly to the resonator pin. The input capacitance of the probe (even in 10:1 mode it is 10-15 pF) immediately changes the load capacitance of the circuit, stopping generation or distorting the waveform. You are getting a false picture.

Proper Measurement Methods

For correct testing, use one of the following methods:

  • Buffer output measurement:Many modern microcontrollers allow you to output the clock signal to a special pin (CLKOUT, MCO). This is the safest method. The signal at this pin is already amplified and buffered, so connecting an oscilloscope does not affect the oscillator circuit itself. Compare the frequency at CLKOUT with the reference.
  • Active differential probe:If there is no buffer output, use a high-impedance active probe with a capacitance of less than 1 pF. Connect it as carefully as possible, using a ground spring instead of a long alligator wire to minimize ground loop inductance.
  • Spectrum analyzer method:To evaluate signal purity and presence of harmonics, use a spectrum analyzer with a near probe. This allows EMC problems to be identified at an early stage. The presence of side peaks near the main frequency indicates instability or modulation by power supply noise.

What exactly should I check?

Don't limit yourself to checking the frequency. The full test includes:

  1. Frequency accuracy:The deviation must be within the tolerance of the resonator (usually ±10, ±20 or ±30 ppm). Measure at room temperature and at the edges of the operating range.
  2. Voltage range (Amplitude):Make sure the signal reaches logic levels “0” and “1”. Too small a swing can cause CPU clock reading errors.
  3. Start-up Time:Measure the time from power on until the oscillations stabilize. It must be less than the minimum reset time of the microcontroller. If the processor starts running before the_clock_ has stabilized, it will cause a hang.
  4. Gain Margin:A professional test involves a temporary increase in series resistance in the circuit until generation fails. This allows you to calculate the actual safety margin of the circuit.

Source:IEEE Standards Associationrecommends testing on a representative sample of at least 5% of the first production batch to confirm the statistical significance of the results.

Diagnostics of typical faults

Even if all the rules are followed, failures may occur. Below is a table of the most common problems our customers encounter and how to solve them.

Symptom Probable Cause Solution
Generation does not start Incorrect load capacity (CL too large or small); damage to the resonator during soldering. Replace capacitors with values ​​lower/higher by 5-10 pF. Check the integrity of the resonator by replacing it with a known good one.
Frequency is highly deviated (>50 ppm) The board's stray capacitance is not taken into account; capacitors type X7R instead of C0G. Recalculate CL taking into account the track capacity. Replace capacitors with class NP0/C0G.
The signal has a noise “cap” Poor grounding; interference from power lines. Improve the topology of the earth. Add a 0.1uF filter capacitor near the VDD power pin of the microcontroller.
The device is unstable when heated Thermal drift of capacitors; insufficient gain margin. Use heat-stable components. Check Drive Level and add resistor Rd if necessary.

One of our clients, a smart meter manufacturer, was faced with a massive return of devices from the northern regions. The problem was that at -30°C the generator stopped. The analysis showed that cheap Y5V capacitors were used, the capacity of which dropped by 40% in the cold. Replacing it with C0G and adjusting the denominations solved the problem completely, saving the company hundreds of thousands of rubles on warranty replacements.

Standards and Certification: Meeting Market Requirements

To enter international markets, including Russia and the EAEU countries, your devices must meet strict regulations. Installation and testing of crystal oscillators directly affects the passage of EMC (electromagnetic compatibility) certification.

In Russia and the countries of the Customs Union, compliance with the requirements of technical regulations TR CU 020/2011 “Electromagnetic compatibility of technical equipment” is mandatory. An unstable generator produces broadband interference, causing conducted and radiated emissions tests to fail. It is also important to take into account GOST 15150-69 for the design of products in terms of climatic conditions. If your generator fails tests at extreme temperatures, you will not receive a certificate of compliance.

For the European market, the key is the EMC Directive 2014/30/EU and the EN 55032 standard. The presence of harmonics at the quartz frequency and its multiples may cause a sales ban. Therefore, the testing stage described above is not just a technical formality, but a legal necessity.

We recommend including generator test reports in the Technical File for the certificate. This demonstrates the manufacturer's competence and speeds up the audit process by certification bodies.

Conclusion and next steps

Correctcrystal oscillator on board: installation and testingwhich are carried out in compliance with the rules described above, is a guarantee of stable operation of your device. Don't skimp on the quality of passive components and time spent debugging the board topology. Mistakes made at this stage cost more than the rest of the project combined, considering the costs of product recalls and loss of reputation.

Whether you are facing generator startup issues or are preparing a new series of devices for production, our team of engineers is ready to audit your circuit design and PCB layout. We also recommend using reliable component supply partners such asWuhan Xinhualong Technology LLC. With its location in the Chinese microelectronics hub (Optical Valley) and full-time application engineers (FAE), the company not only helps ensure the supply of original components (from Loongson processors to custom controllers), but also provides technical support during the design stages. This comprehensive approach - from the selection of quality parts to final testing - allows us to create a truly reliable product.

Contact us today for a consultation on your project. Our experts will help you optimize your design for maximum reliability and compliance with international standards.

Read also:High Frequency PCB DesignandSelecting Microcontrollers for Industrial Applications.

Frequently Asked Questions

What capacitor value should I choose for 16 MHz quartz?

There is no universal meaning. Typically start with 18-22 pF for C0G capacitors. However, the exact rating depends on the parasitic capacitance of your board and the required load capacitance (CL) of the resonator. Calculation formula: CL = (C1 * C2) / (C1 + C2) + C_stray. Start with 22 pF and, if necessary, reduce the value if the frequency is too low, or increase if it is too high.

Is it possible to wash a board with a quartz resonator installed?

Yes, but with caution. Use ultrasonic cleaning only if the resonator has a sealed housing. For resonators in unsealed packages or with exposed elements, ultrasonic cleaning may damage the crystal due to cavitation. It is better to use a soft brush and isopropyl alcohol by hand.

Why does the generator work on a breadboard, but not on a finished board?

On the breadboard, the parasitic capacitances and inductances of the connections are completely different than on the compact PCB. In addition, the breadboard often lacks high-quality shielding and power supply isolation. The transfer to the board changes the impedance of the circuit. It is necessary to recalculate the load capacitors taking into account the actual ground and power topology on the final board.

Home
Products
About Us
Contacts

Пожалуйста, оставьте нам сообщение

Privacy Policy

Thank you for using this site (“we”, “us” or “our”). We respect your rights and interests in personal information, comply with the principles of legality, legitimacy, necessity and integrity, and protect your information security. This policy describes how we process your personal information.

1. Collection of information
Information you provide voluntarily, such as name, mobile number, email address, etc., is completed during registration. Information such as device model, browser type, access logs, IP address, etc. is automatically collected to optimize service and security.

2. Use of information
provide, maintain and optimize website services;
account verification, security protection and fraud prevention;
Send necessary information such as service notifications and policy updates;
Comply with laws, regulations and applicable regulatory requirements.

3. Protection and exchange of information
We use security measures such as encryption and access controls to protect your information and only store it for the minimum period necessary to complete the task.
Do not sell or rent personal information to third parties without your consent; Share only if:
Get your explicit permission;
third parties entrusted to provide services (subject to confidentiality obligations);
Respond to legal requests or protect legitimate interests.

4. Your rights
You have the right to access, correct and supplement your personal information, and you can also apply to cancel your account (after cancellation, the information will be deleted or anonymized according to the rules). To exercise your rights, you may contact us using the contact details provided below.

5. Policy Updates
Any changes to this policy will be notified by posting on the site. Your continued use of the services means your acceptance of the amended rules.