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

Why observe a LAN9252's 25 MHz crystal through IRQ?

An EtherCAT subdevice is occasionally absent at cold power-up and responds on a later retry. Its 25 MHz passive crystal sits next to the LAN9252, but touching the crystal pin with a scope probe changes the symptom. The crystal and oscillator form a sensitive circuit. Probe capacitance can change startup. Microchip provides a buffered observation path through IRQ, once the host can write the LAN9252 registers.

Record two stages of readiness

The reset chapter distinguishes host-interface availability from full chip readiness. Poll BYTE_TEST until the expected byte-order test value appears. Then check READY in HW_CFG or PMT_CTRL. Microchip specifies that writes are invalid while READY is clear and restricts what can be read. An early IRQ_CFG write may never take effect, so the lack of an IRQ waveform after the write alone gives little information about the crystal.

Log reset release, the first valid BYTE_TEST response, and READY assertion. Capture chip select and the host transactions to confirm whether the firmware log describes the first attempt or a retry. If a board with a 25 MHz passive crystal never returns the expected BYTE_TEST value, inspect reset, clock supply, interface straps, and byte order. If BYTE_TEST usually succeeds but READY takes much longer than on a good board, continue along the device initialization and power path. The IRQ monitor is available only after its settings can be written.

Verify how the IRQ pin is connected

With the device ready, set IRQ_CFG.IRQ_CLK_SELECT as described in Section 8.2.7. Microchip recommends push-pull drive using IRQ_TYPE. If other open-drain drivers share the interrupt line, isolate them or use a separate test board before changing the drive mode. Mask the host interrupt during capture, read back the setting, and use a high-impedance probe. Save the original configuration for restoration.

A 25 MHz passive crystal has a nominal period of 40 nanoseconds. An illustrative ±25 ppm limit corresponds to ±625 Hz, or 24,999,375 through 25,000,625 Hz. That changes the period by only about one picosecond in either direction. A general-purpose scope can verify nominal rate and continuity. A frequency counter with a suitable reference or a calibrated multi-cycle time measurement can assess the tight tolerance. Use the actual project's limits, temperature conditions, and observation interval in acceptance.

The IRQ waveform includes the effects of the driver, board load, and probe. A 50-ohm instrument input may load an ordinary digital output excessively. If the amplitude drops, recheck probe loading, the supply, and the push-pull setting. A separate test is needed to measure crystal drive level.

Trace cold startup through reset and host access

The IRQ test requires a register write and cannot show the earliest events on a board that never becomes accessible. Start with the power rails, RST#, and the first host transaction. Include an isolated clock observation point if the board provides one. Compare to a known-good unit, and record warm reset separately from cold power-up. Use consistent time between tests so residual supply charge does not favor one run.

If IRQ delivers a stable 25 MHz waveform while PHY or EtherCAT remains unavailable, trace PHY supply, port state, configuration loading, and controller logs. Record the crystal part number, load capacitors, measurement reference, and reset interval when comparing two 25 MHz passive crystals. A change in first-boot readiness and a change in running frequency call for different evidence.

Define when a fixture may repurpose IRQ and when to restore the normal interrupt. A later board revision may share the line even if the original has a dedicated connection. After clock observation, read back the original configuration and generate an ordinary interrupt to verify response. Preserve at least one baseline with test mode disabled so you can see whether the test itself alters startup or retry behavior.

Document the frequency counter's gate time. In a direct edge-counting example, a 100-millisecond gate contains a nominal 2.5 million edges. An offset of ±25 ppm produces approximately ±62.5 counts. At a one-millisecond gate, the nominal count is 25,000 and the same deviation is below one count, making a single reading sensitive to the gate boundary. Include gate accuracy and reference error in the limit. Keep a separate uninterrupted edge capture if the acceptance test also requires proof that the running clock never briefly stopped.

If the failure occurs only after a low-power interval, record which power state was entered. The data sheet distinguishes recovery of the host interface from stabilization of the internal clocks. Keep these timings separate from cold-start measurements, and check that IRQ multiplexing still matches the intended test.

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.