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

W5500 with a 25 MHz KDS Crystal: Why Is an Event Still Pending While INTn Is High?

A high INTn does not always mean all socket interrupts have been serviced. WIZnet's INTLEVEL waveform shows that socket 0 can assert INTn before socket 1 develops its own event. When the host clears the first event, INTn can return high while the second event remains pending. The interrupt line asserts again after the configured interval. On a board with a 25 MHz KDS crystal, firmware that equates a high pin with an empty event set can mistake this deliberate separation for a lost interrupt.

Use the internal clock in the calculation

For INTLEVEL values greater than zero, WIZnet calculates the reassertion wait as the programmed value plus one, times four periods of the 150 MHz internal PLL clock. A decimal setting of 149 therefore corresponds to 4 microseconds. Do not substitute the period of the external 25 MHz crystal in this formula. The output-pin interval is also not the allowed time to complete an application operation. Record the pin level and pending socket state separately.

Reproduce overlapping events on the bench

Use two independently controlled sockets on an isolated board. Trigger the second event before the host clears the first, and capture INTn and the SPI clear transaction together. Read SIR and the relevant socket status around the intervening high interval. A pending second event followed by a correctly timed falling edge points to host interrupt handling rather than crystal replacement. If the second status bit was never set, verify the stimulus and interrupt masks. Where appropriate, recheck pending status before leaving the handler rather than declaring all work done from one high sample. Investigate the clock only if separate evidence points to a reference fault.

Related selection guide: MERLIN Crystal Timing: Can a 12 pF crystal replace the 18 pF crystal on a 25 MHz W5500 board?

Resource link: https://www.mecxtal.com.cn/en/handbook/new-0785.html

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.