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

Diodes PI7C9X762 Crystal Clock: Why Can a Byte Survive a TX FIFO Reset?

On the PI7C9X762, FCR bit 2 discards characters that are still waiting in the transmit FIFO. It does not clear the transmit shift register (TSR), which serializes the current character onto the TX line. If the far-end receiver still sees a character after cancellation, do not treat that observation alone as a failed FIFO clear or a crystal clock fault. Establish which stage held the byte when the register write took effect.

Discarding queued bytes does not recall a byte in progress

The FCR register table separates the queue clear and level-logic reset from the TSR. For a bench check, leave FIFO operation enabled and stop other writers from refilling it. Send a few distinguishable bytes and issue the clear after the first start bit becomes visible while the following test bytes are still queued. Capture the host register write and TX waveform on a common timebase. The byte already being serialized can finish even though bytes confirmed to be waiting in the queue are discarded. If host write latency allowed a second byte to reach the shift register, repeat with a better-separated capture instead of treating that second byte as proof of a bad clear.

When is it safe to begin the next exchange?

Do not use LSR bit 5 alone as proof of a quiet TX line. The transmit holding register can be empty after the last byte transfers to the TSR. LSR bit 6 reports transmitter idle; compare that state with the end of the character on TX. A driver should separate discarding queued work from waiting for the line to go idle. If the far end must reject content already sent, it needs its own protocol-level cancel or resynchronization rule. A FIFO clear cannot recall bits already placed on the wire.

The receive path has a corresponding but separate boundary. FCR bit 1 clears the receive FIFO but leaves the receive shift register (RSR) intact. Transmit idle is not a receive status. When abandoning a receive sequence, establish a quiet interval or recognizable protocol boundary and check the RX trace alongside subsequent FIFO reads. That separates residual in-flight data from a real crystal or sampling problem.

Related Articles

Related selection guide: MERLIN Crystal Timing: Programming SC16IS752 Divisors for 115200 Baud from a 22.1184 MHz Crystal with Prescaling

Resource link: https://www.mecxtal.com.cn/en/handbook/sc16is752-crystal-predivider-baud.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.