The first boards are ready for assembly and the crystal quote says 20 MHz, CL = 10 pF. The two capacitor positions next to the microcontroller are still open. What goes into those positions? The 10 pF on the crystal specification describes the load seen between the crystal terminals. Each capacitor on the board is connected from one terminal to ground, and some microcontrollers add programmable pin capacitance. Start by identifying what each value in the schematic or data sheet represents.
Work back from the load to a first assembly value
In a common Pierce oscillator, the two capacitors provide a series path between the crystal terminals through AC ground. For a first estimate, use CL ≈ C1 × C2 ÷ (C1 + C2) + Cs. Suppose the chip has no internal load capacitors enabled and the remaining parasitics have already been lumped into an equivalent 2 pF between the crystal terminals. The 10 pF target leaves 8 pF for the series path. Two equal 16 pF capacitors provide that 8 pF. With two 10 pF capacitors, the same assumptions give 7 pF.
Read the host oscillator section before you treat all parasitics as a single number. If each pin has a separately specified 2 pF to ground, add it to its own branch first. Two external 14 pF capacitors would then give two branches of 16 pF. If the remaining terminal-equivalent parasitic is still 2 pF, the total again works out to 10 pF. This assumes the two pin capacitances are already accounted for in the branches. An allowance that also includes those same pin capacitances would count them twice. Some host manuals give an effective load versus register setting. Use that mapping before deciding whether to fit external parts.
Try adjacent sizes, then put the original pair back
Keeping the assumed equivalent parasitic at 2 pF, a pair of 15 pF capacitors gives about 9.5 pF, a pair of 16 pF gives 10.0 pF, and a pair of 18 pF gives 11.0 pF. One 16 pF and one 18 pF gives about 10.47 pF. These figures are assembly estimates. If the pin branches are unequal, also check the host's oscillator recommendations and see whether swapping the positions changes the measurement or startup.
Use a supported buffered clock output and confirm its relationship to the crystal frequency. On the same board, record the base result, fit the next capacitor pair, and reinstall the original pair. Keep the supply, clock selection, firmware, measurement point and temperature consistent. Allow the board to cool after each rework. For example, suppose the counter shows 20,000,060 Hz before the swap, 19,999,920 Hz with the higher load, and 20,000,058 Hz after restoration. The difference between the first two readings is 140 Hz, or 7 ppm. The return reading is important because it helps distinguish a load change from drift over the course of the experiment.
A correctly configured parallel-load crystal will usually move down in frequency as load capacitance increases within the tuning region. If the result does not repeat, check the board temperature, the counter reference, and the loaded register settings. If the direction is unexpected, verify that the output has not switched to a PLL, a corrected clock, or a different source. A probe placed directly on a crystal pin adds capacitance to that branch. The buffered test point helps keep the measuring setup out of the oscillator loop. Document the counter reference and resolution if the difference between settings is close to the instrument's capability.
How much frequency budget could the capacitor pair consume?
Assume both 16 pF capacitors have ±5% tolerance. If they reach the same extreme, their series contribution ranges from 7.6 pF to 8.4 pF. Now assume the remaining parasitics could range from 1.6 pF to 2.4 pF. The estimated load is then 9.2 pF to 10.8 pF. With a hypothetical tuning slope of −7 ppm per pF near the target, that variation uses about ±5.6 ppm, or ±112 Hz at 20 MHz. Under a worst-case linear budget with a ±20 ppm system limit, 14.4 ppm remains for initial crystal tolerance, temperature, aging and measurement allowance. Replace the example slope with a value applicable to the selected crystal, or measure the local slope at the approved operating point. A single slope may be inadequate across a large load range.
After centering the frequency, repeat true power-off startups at the project's temperature limits and lowest supply, using a representative power ramp. Record power-off dwell, the observable clock-ready event, and the timeout criterion. A first application packet can arrive much later because software initialization and PLL acquisition take time too. If a capacitor setting improves the room-temperature result but causes slow or failed cold starts, review ESR at the selected frequency, host drive settings, and startup margin before approving that assembly option.
Make the quote match the board being qualified
On the crystal request, give the frequency, complete order code, specified load capacitance, ESR limit for that frequency, and tolerance conditions. On the board BOM, give the left and right capacitor values and tolerances. Link the approved combination to the board revision, oscillator settings and startup evidence. If a second source quotes the same frequency and footprint, ask which load option and data-sheet row apply to the exact code. Recheck the existing board before releasing the candidate. If a capacitor change is needed, tie the alternate crystal to that assembly variant so a production buyer can order the combination engineering actually validated.
ST AN2867 describes the load network and frequency pulling. Epson gives the crystal vendor's perspective on oscillator margin and drive. For chip-specific settings, use the oscillator section of the actual host manual. STMicroelectronics AN2867 oscillator design guide · Epson oscillator design precautions.
