A board receives a replacement 16 MHz passive crystal. Firmware consistently reports clock ready at about 125 milliseconds. The original is similar, so 125 milliseconds goes into the report as crystal startup time. This can mainly reflect the controller's configured wait. For substitution, measure the formation of usable oscillation, ready status, and the moment firmware starts using the clock separately.
Check the controller's startup counter
The Microchip SAM D20 data sheet defines the STARTUP field in the XOSC control register. The internal OSCULP32K clocks the startup counter, with additional XOSC synchronization cycles before ready status. The table lists approximate times and identifies the synchronization contribution. For a 16 MHz passive crystal, the programmed interval is not itself the resonator's startup result. A successful control write also does not show that a peripheral can use the clock.
Assume the low-power oscillator runs at 32768 Hz. STARTUP code C counts 4096 cycles, about 125 ms. Three additional cycles at 16 MHz total about 187.5 ns. Code B counts 2048 cycles, about 62.5 ms. If firmware ready moves earlier by about 62.5 ms and separately observed oscillator buildup stays unchanged, the configured wait explains the main difference. Current low-power clock tolerance and startup conditions affect measurements.
A longer delay allows more settling time but cannot increase oscillator margin. A crystal whose amplitude lingers near the usable threshold in the cold may look acceptable with a long wait. Shortening the wait does not accelerate physical oscillation. Make configuration comparisons only in supported test modes and repeat the intended shipping setup.
Build a timeline with independent markers
While firmware uses an independent clock, mark the XOSC request, first observed ready state, and actual system clock switch. Capture those markers with supply voltage. Polling, logging, and interrupt delay can move a timestamp after the underlying event. Characterize that delay for fine comparisons. Use an external timestamp or unaffected resource if the DUT clock is unavailable during part of the test.
Observe the source by a method supported for the controller. A routed clock output may only become active after switching. It shows what the system receives, but can miss earlier analog buildup. If probing near the crystal is necessary, minimize loading and compare behavior with and without the probe. Document the amplitude or frequency condition called established, and verify sustained operation after the first few cycles.
Check on-demand, standby, and gain settings. Routing a monitoring output can introduce a clock request and start the oscillator earlier. A software reset can also leave oscillation present. Start with a complete power-off control with the specified off time, then separately test software reset and low-power wake. One interval may not describe all three.
Qualify the first useful clock in the actual product
Compare original and replacement 16 MHz passive crystals at identical supply, temperature, load, and configuration. Save enable, observable stable oscillation, ready state, and first valid peripheral response. Both can report ready at 125 ms while one barely establishes oscillation before that limit. Retain raw records from lowest supply, temperature extremes, and separate cold starts, then verify margin before use.
Record both time to valid board oscillation and time to the required system action. A product with a tight wake deadline can spend all its budget in the configured wait even when its crystal starts early. Reducing the wait requires repeating both parts and checking retry or fallback behavior with the intended firmware.
Give purchasing the source selection, gain, wait code, loading, off interval, and temperature. A two-setting control on one retained part shows why ready time changes. If two parties need to compare physical startup, agree on the board measurement, then keep the software and electrical conditions reproducible.
If analog buildup cannot be observed directly, add an independent frequency check for the peripheral. Count a confirmed XOSC-derived output in an external time window and check the first interval after switching for missing edges or large offset. Verify the source selection and divider with a settled oscillator. This can establish when the clock is already usable, while the first onset of oscillation remains unmeasured. State that boundary in the report.
If ready logging uses a serial debug channel, keep the state-read and transmission times separate. Verify them with a hardware marker where needed. Printing can wait on another clock and make one delayed boundary look like two.
