Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Passive Crystals and Oscillator Circuits

How should you group ESP32 samples to diagnose RF offset after changing the 40 MHz crystal?

An ESP32 prototype connects after a change to its 40 MHz crystal, and the buyer is considering a second source. The next question is whether the part works with the original capacitors and board, or requires a new combination. An RF frequency check can distinguish these cases when the sample groups are kept separate. The example here concerns an original ESP32 chip on a board. If purchasing a packaged module, ask its supplier which internal components changed and obtain verification for the module version being offered.

Change one variable between each pair of groups

Use the same board and chip revisions, firmware and RF path. Group A is the existing crystal with its existing capacitors. Group B uses the candidate crystal on the original capacitor values and tests direct interchangeability. If group B shows a consistent offset, create group C using the candidate crystal with adjusted load capacitors. Where group C reuses boards from group B, preserve a separate before and after pair for each board and record the rework. These results will be used to approve different BOM combinations.

Boards from a single panel can help identify a shift in the first trial. A production decision also needs samples from multiple crystal lots and board assemblies. Record the board ID, complete crystal code, lot and actual capacitor values and codes. If the candidate was soldered onto a reworked board, include an existing part installed with the same rework process as a control. Measure a stable control board at intervals to detect a change in the instrument reference or connection.

Measure the carrier using the ESP32 TX tone mode

Espressif’s external clock guidance specifies a 40 MHz crystal for ESP32. The guide uses TX tone mode with the certification and test tool and a radio communication analyzer or spectrum analyzer observing the 2.4 GHz signal. Espressif recommends adjusting the load for an offset within ±10 ppm. Keep the expected tone frequency, channel, test mode, supply, warm-up time, fixture and instrument reference fixed. Use a suitable conducted or shielded setup. Measuring at RF allows the crystal network to retain its intended load. A probe directly at a crystal pin can add capacitance and shift the result.

Suppose the nominal test signal is at 2,412 MHz. One ppm then represents 2.412 kHz and ±10 ppm is ±24.12 kHz. The same fraction at 40 MHz is ±400 Hz. A positive RF reading about 31.36 kHz above the assumed tone is about +13.0 ppm. In the record give both the actual instrument reading and the frequency used as the denominator. A deviation in kilohertz only has meaning for the point at which it was measured.

GroupFrequency errors for five boards in ppmMean in ppmWhat it shows
A. Existing part and capacitors−5, −2, 0, +3, +40.0Baseline in the same setup
B. Candidate and original capacitors+10, +12, +13, +14, +16+13.0Four readings above +10 ppm
C. Candidate and adjusted capacitors−4, −2, −1, 0, +3−0.8A distinct combination for further qualification

In this hypothetical data set, groups A, B and C have ranges of 9, 6 and 7 ppm respectively. Group B is shifted high. A different candidate lot with −13, −8, 0, +8 and +13 ppm would have a mean of zero and a range of 26 ppm. Moving the average of that lot leaves the wide spread. The next step would be to expand the sample and review crystal limits, assembly and measurement repeatability. A few passing boards say little about production yield. If an individual result is +9.2 ppm with expanded uncertainty of ±1.1 ppm, its interval reaches +10.3 ppm. Apply the agreed acceptance rule or obtain a more precise measurement before releasing a borderline unit.

If the whole candidate group reads high, check the run order. Measure one stable control board before and after a block of group B measurements. If the control moves in the same direction, investigate the timebase, instrument warm-up and board supply. Interleave baseline and candidate boards where practical. When rechecking the adjusted group, retain an unmodified group B board as a same-session control. Preserve per-unit traces or logs so an apparent shift can be traced to a particular batch, board or setup.

Qualify a capacitance change as a new combination

For a starting estimate using Espressif’s series-equivalent formula, two 12 pF capacitors and an assumed 2 pF of effective stray capacitance give about 8 pF of load. Two 14 pF capacitors with the same stray assumption give about 9 pF. For the specified parallel-load circuit, Espressif recommends increasing load capacitance to bring a high reading down. The 1 pF increase in this estimate does not predict the 13.8 ppm mean shift in the table. Crystal pullability and the actual board parasitics determine the outcome. Choose values using the candidate’s rated load and board measurements, then recheck frequency over supply and temperature, cold starts, sleep recovery and product RF performance.

Give purchasing separate conclusions for group B and group C. Approval of group B permits the original assembly values, while approval of group C applies to the recorded crystal and capacitor combination. List the part code, tolerance, footprint and height, drive limit and temperature specification. For a module change, request the matching module revision, change notice and supporting RF test records. A successful connection remains useful as a functional test alongside the measured frequency data.

See Espressif’s ESP32 external crystal guidance and the ESP32 RF test documentation. For initial capacitance calculations, see MERLIN’s load capacitance reference (Chinese).

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.