On a production test rig, a sensor edge is reported to the network through a LAN9252. The logged time is stable with the host idle but shifts when the host processes serial traffic and logs data. The 25 MHz oscillator still looks steady. Check whether the log records the time at the input edge or the time when software handles the event. The latter includes interface transfers and scheduling.
Identify the reference, the distributed clock and the host reading
Microchip documents a fixed 25 MHz physical clock, supplied by a crystal circuit or an appropriate single-ended clock at OSCI. LAN9252 also has a distributed clock and hardware inputs LATCH0 and LATCH1 for external event timestamps. The host's service time is another quantity. Keep separate observations for these three points.
LATCH0 shares a physical pin with SYNC0. LATCH1 shares one with SYNC1. The role must be configured as an input for latching or an output for synchronization. The device initializes the relevant configuration from EEPROM. Compare the actual configuration and board routing, not just the net label, and check both ends before connecting a driven signal to a shared pin.
Capture the sensor edge, an interrupt or software marker, and the end of the readout. Verify the reference clock through an appropriate test point. For each value, document the time base and units. Do not subtract a host-clock timestamp from a distributed-clock timestamp unless their origins and scales have been aligned. Use a common instrument trigger for physical timing.
Compare hardware timestamps against service times
Start with an external edge every millisecond. Suppose the host timestamps two events after software delays of 240 µs and 40 µs. Its reported interval is 200 µs shorter than the real interval. Reversing the delays gives an interval 200 µs longer. This example describes how service delay enters the subtraction. It says nothing about the crystal frequency.
For the second run, enable event latching in the approved test configuration. Compare the captured event intervals with the times at which the host reads them. Stable hardware timestamps with shifting read completion point toward the software path. If the input edges or captured time also move, check the input waveforms and distributed-clock synchronization. A shared source is useful for a controlled timing experiment, while an independent reference can test absolute rate. Document which one was used.
Assign records to the right edge. The hardware can capture rising and falling edges, so one physical pulse can produce two timestamps. If a test sends ten pulses, count the ten edges of the intended polarity. Check the minimum event spacing and the specified readout behavior before increasing the event rate. Begin with a single pulse and keep both the input capture and the record produced by the host.
The nominal 25 MHz reference period is 40 ns. The timestamp units, timing accuracy and minimum spacing between latch events have separate definitions. Report the minimum and maximum error as well as the average. Use pulse sequence numbers to match input edges with records and count missing or repeated records separately.
Write separate oscillator and timing acceptance criteria
Confirm the exact 25 MHz part and its circuit. A passive quartz crystal requires its specified load and startup conditions, while an active oscillator needs the appropriate supply, output format and input thresholds. For network timing, also record synchronization state and the delays from the physical sensor edge to the captured event and host readout. For scale, a 50 ppm rate error over one millisecond is 50 ns, much smaller than the example service-time variation. Use actual system measurements and applicable data-sheet conditions to qualify the hardware time error.
A useful handoff includes physical oscillator frequency, event timestamp error on a shared time base, and the distribution of readout delays. Repeat clock and event checks when approving a new 25 MHz oscillator. A captured waveform and its corresponding timestamp can show customers which event the product actually records.
