A good reference and working Ethernet ports do not prove the KSZ8563R PTP clock is enabled. Microchip states that time-stamp units (TSU) and trigger-output units (TOU) require the PTP clock even without IEEE 1588 network synchronization. If the application only records local GPIO edges, first check whether local PTP time advances, then verify the selected unit and event input.
1. Separate the reference, counter, and protocol
The 25 MHz crystal or appropriate driven reference supplies hardware timing. PTP time is a local counter that can be enabled, read, and adjusted. IEEE 1588 synchronizes time over the network. Installing the reference does not enable every clock consumer. A local timestamp likewise does not prove synchronization with other devices.
| Observation | What it does not prove |
|---|---|
| 25 MHz reference present | Local PTP time is running |
| Ethernet traffic works | GPIO timestamp unit is configured |
| Local timestamp exists | The system is synchronized to network time |
| Timestamp capture works after enabling the clock | Every timestamp came from the intended edge |
Identify whether the requirement is a relative interval or absolute alignment between devices. The first may only need local capture and continuous timing. The second needs protocol and accuracy checks. Do not let a network-data test substitute for local timestamp acceptance.
2. Check the local clock enable, not just synchronization settings
The Global PTP Clock Control register distinguishes Enable PTP Clock from other operations. Read it back first and confirm initialization and reset behavior. A board can initialize switching without configuring timestamp capture. Use a controlled sample and preserve existing events rather than starting by resetting a live clock.
Distinguish the running counter from a snapshot
The manual says PTP Clock Read copies current time into a register group. Repeatedly reading an old snapshot can look like a stopped clock; one good snapshot does not show continuity either. Take separate snapshots at comparable times and interpret the seconds and nanoseconds from the same capture. Do not combine pieces from different updates across a rollover.
Record both the stimulus and the readout time. Slow host polling does not change when a hardware event occurred. Check unit ownership and edge configuration using repeatable input. Avoid diagnostics that disturb synchronization or discard events that are still needed.
3. Use a staged comparison to locate the failure
On a dedicated bench sample, verify that local time advances, then apply compliant low-voltage edges at known intervals. Check the actual GPIO and input conditions. If time does not advance, investigate enable and readout. If it advances but there are no captures, investigate the unit, route, edge, and status. If captures occur with unexpected intervals, examine the reference and time adjustment.
A 40 ns reference period is not a system accuracy guarantee
At 25 MHz one period is 40 ns. Microchip describes continuous and temporary PTP rate adjustments applied on each 25 MHz cycle. This helps explain rate control, but does not establish end-to-end timestamp accuracy or a counter limited to integer cycles. Input events, capture, readout, and synchronization all matter. Local elapsed time and absolute time alignment are different tests.
If a recorded interval jumps, check for an adjustment at the same time. The manual lists load, step, and continuous rate changes separately. Mark when synchronization correction or a time set took place rather than interpreting every change as crystal drift.
4. Revisit the crystal only with appropriate evidence
Investigate exact crystal, effective load, startup, and steady frequency when evidence points to the reference. Epson FA-238 Q22FA23801853xx is an example of 25 MHz at 10 pF for identifying an ordering requirement, not a qualification for every KSZ8563R board. Check the switch's reference conditions and validated oscillator margin rather than assuming a common footprint makes parts interchangeable.
Measure without disturbing the passive circuit where possible. A good reference reading cannot replace enable and event-path checks. Conversely, getting a timestamp once does not establish reference behavior across all operating conditions. A failed replacement experiment is not evidence that selecting a more accurate crystal will solve the capture problem.
5. Report local and network behavior separately
Record the exact switch and reference part, clock enable, snapshots, input settings, and timestamps. If the product needs network time, record its synchronization result and end-to-end error separately. A local-only test does not qualify IEEE 1588 operation. Verify restart behavior when required.
In production testing, use a known repeating stimulus and compare captured and expected counts first. Distinguish no captures, occasional omissions, and ordering errors before comparing intervals. Qualify one input at a time before testing coincident edges. Record whether background software adjusts time or clears flags, since that can make a bench test differ from the customer setup.
The timestamp unit still needs local PTP time even with no IEEE 1588 synchronization. Verify that it advances before debugging the edge capture.
