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

Why does the LAN8720A clock output become an interrupt pin with a 50 MHz active oscillator?

An Ethernet board has two assemblies. The first uses a 25 MHz crystal at the LAN8720A and lets the PHY produce the MAC's 50 MHz. The second adds a 50 MHz active oscillator as a common source for PHY and MAC. On the second board, software still waits for a continuous waveform on the old pin. Installing the oscillator alone does not establish the new topology. Microchip uses that pin for either clock output or interrupt output, according to a strap sampled at startup or reset. Both variants use 50 MHz at the interface, but their pin assignments and startup conditions differ.

Clock direction determines the shared pin function

The data sheet describes two nINTSEL settings. A low strap configures REF_CLK Out mode. With the documented 25 MHz crystal, the PHY sends 50 MHz to the MAC via nINT/REFCLKO and the interrupt function is unavailable. A high strap selects REF_CLK In mode. An external 50 MHz active oscillator feeds the PHY at XTAL1/CLKIN and supplies the MAC with the same reference under its own input requirements. The former clock output then serves as an active-low interrupt. Check the schematic and assembly options to see what actually drives each net. A link that used to carry the PHY clock may need to be disconnected when changing builds.

A board can pass traffic even if the interrupt path is wrong. Traffic shows that the MAC and PHY can exchange data in that configuration. Software depending on notifications still needs the interrupt connection, event enables and clearing behavior verified. A build that retains the PHY clock output needs a supported management path for the events it cares about. Enabling a GPIO interrupt where the pin is carrying a clock does not recover link events. Identify the real build through the assembly and documented device status rather than one successful link test.

Sample the strap at reset, before it acts as an LED signal

Microchip says nINTSEL is latched at power-on and on the rising edge of nRST. It shares a pin with LED2. Changes to LED polarity or its connection can affect the voltage during reset. LED behavior after startup cannot establish the value sampled earlier. Capture nRST, the shared strap node, and the multiplexed output; establish the sampled level, then test a known link event. Check whether the reset path used by the test is the one the documentation calls out.

At 50 MHz each clock period spans 20 ns. A 1 microsecond acquisition should include roughly fifty periods. If the former clock pin has no continuous clock and instead makes a meaningful low transition on a link event, that agrees with its role in REF_CLK In mode. This acquisition length is an example, not a required interrupt duration. Capture the independent continuous reference as well so that interrupt behavior is not mistaken for a stopped oscillator.

Verify timing separately for both assemblies

Microchip notes that its REF_CLK Out timing is outside the mode defined by the RMII specification. Check the MAC and PHY timing together. Both configurations have 20 ns periods, yet the source, propagation path, and relative arrival times differ. A 1 ns arrival difference uses 5% of one period in a simple comparison. Setup and hold limits determine whether that difference is acceptable. Frequency at the driver cannot establish arrival alignment at both loads.

Record the two assemblies distinctly. For the external 50 MHz version, check both input waveforms, then use a link change to verify the interrupt and management status. In the original build, check the PHY clock output, MAC reception, and supported polling of link changes. Include real cold starts and external reset, especially where the strap is re-latched. When approving a substitute 50 MHz active oscillator, test its loading and timing in the intended topology. Correct frequency, working indicators, and correct host pin function each have their own evidence.

Limit the interrupt test to one expected event initially. Check what was written to Interrupt Mask Register 30, record the idle pin, and create a known link transition. Read the flags in Register 29 and service the result according to the configured interrupt mode. Microchip describes the primary mode as the hardware-reset default. The alternate mode requires setup and clears nINT differently. A diagnostic register read can affect the event you are trying to capture. Correlate the nINT arrival at the host, the management transaction, and deassertion to distinguish a missing event from one the host did not see or service correctly.

Leave a way to identify the driver and load in the prototype clock routing. Capture the PHY and host together through nRST and check that a different assembly cannot connect two outputs to one line during the transition. Include the enable of any fanout buffer. Verify a stable reference before testing repeatable link events so that transient clock contention is not misdiagnosed as an interrupt problem.

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.