One 50 MHz active oscillator drives a LAN8670 and a host MAC through separate branches. Both pins show the correct frequency and regular periods. Receive data nevertheless fails occasionally on one board lot or at one temperature. A shared source does not make the receiver's clock edges arrive together. Compare clock skew, data propagation, and actual receive margin on one time axis.
Measure at the device pins
The LAN8670/1 data sheet specifies a 50 MHz clock on REFCLKIN in RMII mode. Under the listed conditions, high and low time are each forty-five to fifty-five percent of the period. For twenty nanoseconds, each is about nine to eleven nanoseconds. The data sheet also specifies latest receive output validity and earliest loss of old data. Both are relative to the PHY clock edge. The MAC samples relative to its own edge. Timing numbers from the two data sheets do not already share a reference plane.
Provide suitable test points on PHY REFCLKIN, MAC reference clock, and one receive data line. Deskew probes first with the same signal. Confirm supply, ground reference, loading, and threshold definitions on the board. For the clock branches, subtract the PHY edge time from the matching MAC edge time. A positive value means later MAC sampling. Pair edges by cycle or a common trigger marker before comparing levels at the actual receiver thresholds.
Positive skew trades hold time for setup time
Suppose data propagation from PHY to MAC is 2.5 nanoseconds and the matching MAC clock arrives 1.2 nanoseconds later. The PHY requires no more than twelve nanoseconds to make receive output valid. Starting from the launching PHY clock edge, data reaches the MAC by 14.5 nanoseconds. The next MAC clock edge samples it at 21.2 nanoseconds. Available setup is 6.7 nanoseconds. With an illustrative four-nanosecond setup requirement, margin is 2.7 nanoseconds. The route delay and MAC requirement are examples; use documented and measured values for the actual board.
For hold, the PHY can stop presenting old data three nanoseconds after the following clock edge. Add 2.5 nanoseconds of data travel and subtract the 1.2-nanosecond MAC clock delay. That leaves 4.3 nanoseconds available. A two-nanosecond requirement implies 2.3 nanoseconds of margin. If the MAC clock arrives four nanoseconds later on another board, setup improves but only 1.5 nanoseconds of hold remains, below the illustrative requirement. An average frequency reading does not reveal this tradeoff.
Use minimum and maximum data paths in the budget. Setup uses the latest data arrival, hold uses the earliest new data, and both need worst relevant clock skew and threshold error. If a logic analyzer supplies digital crossings, check whether its thresholds represent the two actual devices. Use analog captures when margin is small to see whether edge shape shifts the apparent crossing.
A four-nanosecond shift is not the only diagnostic. Try several smaller settings around the existing one and record worst setup and hold together. An extra 300 picoseconds of positive skew should buy roughly 300 picoseconds of setup while giving up the same hold margin. If only one side moves, check thresholds and confirm edge pairing. Repeat at the hot and cold points because receiver and buffer delays need not drift together. A wide room-temperature margin does not establish the cold or hot result.
To reduce production test time, characterize which receive data line most often has the smallest hold margin. Sample that line alongside a real receive test and identify the path in the test log.
Align the waveform with actual traffic
Apply repeatable receive traffic that exercises multiple data transitions. A data line that stays high or low does not provide an edge for this timing measurement. At the PHY, measure launch timing. At the MAC, examine arrival and sampling for the same frame. Also retain the receive valid signal when identifying frames. LAN8670/1 combines carrier sense and validity on CRSDV. Interpret its transitions and receive tail according to RMII before drawing conclusions about clock glitches.
Change one condition on an engineering sample, such as delay on an appropriate buffered branch. Capture the actual skew change. If errors follow a loss or gain of one margin, address clock routing or data timing. If measured margins improve and errors remain, check the media link, receive mode, and stimulus separately. Changing both clock branches and drive resistors simultaneously would obscure which change mattered.
Repeat the pin-level comparison with a replacement 50 MHz active oscillator. A new output edge can shift effective delay and threshold timing even at the same frequency. Record skew range, minimum receive setup and hold margin, loading, temperature, and frame errors. When margin is insufficient, identify which side failed and which numbers were observed or assumed. That information makes the repair verifiable.
