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

Why do LAN8650 headers look misaligned after enabling receive timestamps?

Check the host's SPI parser before changing the 25 MHz oscillator on a LAN8650 board. With receive timestamping enabled, when the receive footer asserts both Start Valid and Receive Timestamp Added, Start Word Offset points at the first timestamp word, not the first Ethernet header word. The frame follows that prefix. The FTSS setting selects one 32-bit word or two 32-bit words on the SPI transport. A driver that treats the offset as the destination MAC address will appear to corrupt packet headers even when the reference clock is correct.

For a 64-byte SPI payload block, suppose SWO is 15. The timestamp begins at byte offset 60. If FTSS selects two words, only the first four bytes fit in that block. The parser must take the remaining four bytes from the next data block before it reaches the Ethernet header. In the one-word case, the timestamp finishes at the block end and the frame can start at the beginning of the next payload. This example isolates the boundary case. Carry the number of outstanding prefix words across blocks. Do not always skip four bytes in the next block and do not attach SPI footer bytes to the Ethernet payload.

Use test frames with a recognizable destination address. Capture raw SPI traffic with timestamps off, in short format and in long format. Record SV, RTSA, SWO, RTSP and the first six decoded frame bytes. Include cases with the end of the timestamp or the start of the frame in the next block, and check timestamp parity separately from Ethernet framing. If the address is stable with timestamping off, and errors occur only near a block boundary with RTSA set, fix the parser's continuation state first. Only when framing is correct and timestamps still drift over time should you return to the oscillator and local counter error budget.

Related selection guide: MERLIN Crystal Timing: Estimating 10BASE-T1S PLCA wait from node order and frames already on the wire | Crystal & Oscillator Handbook

Resource link: https://www.mecxtal.com.cn/en/handbook/lan8650-plca-burst-opportunity-latency.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.