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

Why retest DP83826 Ethernet latency after moving to RMII with the same 25 MHz oscillator?

An industrial acquisition device changes the interface between its controller and DP83826 from MII to RMII to save pins. It uses the mode in which the PHY provides the interface reference, so the board can retain its 25 MHz active oscillator. Throughput tests pass, yet the delay of an individual frame changes. Matching input frequency and carrying the same traffic do not establish packet timing through a different interface path. Define both measurement events before comparing the results.

Both buses carry 100 Mbit/s through different interface timing

For 100 Mbit/s MII, the board transfers four bits per cycle at 25 MHz, for a nominal 40 ns cycle. RMII leader mode can also use a 25 MHz active oscillator at the PHY. The MAC interface uses 50 MHz and two bits per cycle. Four times 25 and two times 50 yield the same nominal rate, 100 Mbit/s. That establishes the transfer capacity of the interface. It does not specify when a particular frame reaches the physical line. If the board instead uses RMII follower mode with a shared external 50 MHz source, identify that different topology before applying timing data.

For MII transmission, TI measures from the rising TX_CLK edge with TX_EN asserted to the start-of-stream delimiter at MDI. In RMII leader mode, the starting event is the leader clock rising edge with TX_EN asserted. Both are hardware events at the interface. Starting a timer at a software send call adds controller scheduling and queuing. Stopping at the receiver at the far end of the cable adds more path delay. Keep the PHY-level and full-system endpoints explicit.

Carry the documented conditions into the budget

Under the listed timing conditions, the data sheet gives a 40 ns maximum for 100 Mbit/s MII transmit latency and 96 ns for RMII leader transmit latency. The relevant rows mention FAST RX_DV and a 100 meter cable. The difference between these maxima is 56 ns. It is a difference between two budget terms, not a predicted change for every captured frame. In an example system with an 80 ns allowance for one PHY transmit path, the MII maximum meets that allowance and the RMII maximum calls for reviewing the requirement or architecture. A single prototype result under 80 ns does not qualify worst-case use.

The receive direction also has its own markers. The MII measurement ends with the appropriate receive clock and RX_DV. RMII refers to its applicable clock and CRS_DV. Software notification occurs elsewhere in the complete path. Capture the PHY boundaries first, then perform a separate end-to-end test with a recognizable frame. Use the correct rate and interface row when entering a budget.

Verify reference, reset, and function on the installed board

Confirm the 25 MHz active oscillator at XI, using the appropriate external clock levels, edges and startup timing. If it becomes available late, use TI's power-up and reset guidance for an already stable reference and account for actual rail timing. Once the device is ready, verify the effective interface mode and probe the associated clock and control pins. Use a common time base, account for probe path differences, and identify the physical observation points. A counter showing correct frequencies does not qualify the first frame.

Repeat after hardware reset and cold power cycling. Save initialization and link recovery separately from latency of a frame after startup. If functional traffic passes but end-to-end timing has changed, inspect how the MAC and its buffers were configured after the interface migration. A substitute surface-mount oscillator needs input qualification and the loaded board needs its packet and latency checks. Keep the two records aligned to the final circuit.

If a receive clock interval is occasionally longer near the first received data, do not attribute it immediately to the reference. For the applicable receive timing, TI notes a possible change from the local clock to the recovered clock. Compare the first receive control event with the actual reference and check the scope of that data sheet note. It can guide diagnosis of a particular transition without qualifying unrelated anomalies.

A production record should distinguish the physical-layer start-of-stream delimiter from a higher-layer frame marker. Identify the physical event from the data sheet diagram, then associate it with the frame in the protocol capture. Triggers on different fields can create a constant timing offset. If the fixture can only probe beyond the magnetics, identify the extra path relative to the documented endpoint rather than aligning results by changing trigger thresholds. Keep the same marker when repeating tests over temperature and reset.

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.