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

Diodes PI7C9X762 Crystal UART: Why Is There No Four-Character Timeout Even Though RX Is Idle?

The PI7C9X762 can report a receive timeout when received bytes remain below the FIFO trigger threshold. The manufacturer defines four character times after the last received character and says the counter resets at the center of each received stop bit and whenever the receive FIFO is read. Even if nothing new appears on RX, a background data read changes this test. Emptying the FIFO also removes the pending-data premise. Correlate serial frames, FIFO state and host reads before blaming the clock.

Four Character Times Are Not Four Bit Times

ItemPublished or calculated meaningCommon mistake
Timeout contextReceived data below the FIFO triggerIdle line alone does not guarantee a timeout
IntervalFour complete character timesNot four bit times or a fixed duration for all formats
Stop-bit centerEach received stop-bit center resets the timerNot an arbitrary RX edge
Receive FIFO readThis also resets the timerBackground reads are not invisible to timing

A character includes its programmed start, data, parity and stop bits. At an actual 9,600 baud, 8N1 uses ten bits per character, so four characters are forty bits, about 4.167 ms. With 8E1 it is eleven bits per character and about 4.583 ms. Four bit times at 9,600 would be only about 0.417 ms. These calculations describe the chosen formats, not an unconditional system interrupt latency.

Distinguish serial RX, the crystal or external reference that ultimately establishes UART timing, and the host interface. An idle line does not show that the FIFO contains data below the threshold. A valid baud clock does not prove that a concurrent task left the FIFO alone. Measure actual bit duration separately when checking UART timing rather than inferring it from IRQ alone.

Establish the FIFO Premise and Any Read Activity

Verify the threshold, operating mode and interrupt enable. In an approved fixture, place a small amount of data in the FIFO without reaching the ordinary trigger. Stop sending and capture the relevant signals for an adequate period. Do not let a diagnostic task consume data while claiming the FIFO was untouched. Keep host transactions aligned to the line capture. If all data was removed, absence of a residual-data timeout is not evidence of failure.

Identify exactly what was read. Page 13 describes a receive FIFO read, not every register read. Preserve actual transaction context to distinguish data access from status polling instead of relying on host function names. A read on the other UART is not evidence of a read on the affected channel. Capture channel and board identity with the FIFO observations.

Compare an Untouched Window With a Deliberate Read

A repeatable test can use two cases. In A, retain a few bytes, send no more characters and do not read the FIFO. Observe timeout under the applicable conditions. In B, start with the same conditions but add an approved FIFO read, recording its timestamp, the data taken and any residual bytes. If data remains, observe the new timing. If the FIFO is empty, classify the result separately. An empty FIFO does not validate a rule that idle always causes timeout.

When a new character arrives, reference the timer to the received stop-bit center, not a transmit request, arbitrary transition, or application receipt time. A scope observation should retain frame timing and the project's uncertainty. Device timeout and a host operating system discovering it are not necessarily simultaneous. Do not label that difference crystal drift without clock evidence.

Preserve Enough Evidence to Explain a Missing Interrupt

Keep the last observed frame, FIFO access and remaining content, and the interrupt and host-service timing. Two recordings can both show quiet RX but disagree on whether data remained: in one no one read it, while in the other a background reader removed it. If only a line screenshot survives, leave the evidence incomplete rather than rejecting the hardware.

Use offline validation to distinguish a four-bit timer estimate from four character times. Use another case with a mid-window data read and verify that the analyzer accounts for reset or an empty FIFO. These are checks of software reasoning, not unapproved work on production equipment. Record the actual baud rate and frame format. A milliseconds threshold copied across a port reconfiguration may reject correct behavior.

When code supports polling and interrupts, identify which path consumes data and which merely observes status. A diagnostic logger that reads bytes from the FIFO to display them has changed the condition. Do not directly compare that run to an uninstrumented one. Keep approved fixture captures and add parsing offline when possible. If a live diagnostic read is necessary, record it and do not combine that interval with untouched evidence.

Separate device IRQ from eventual application handling. Mark the last RX stop bit, authorized FIFO accesses and the IRQ node on a common timeline. A timestamp logged by a service thread can include scheduler delay. If the interrupt line is shared with other causes, verify that the event corresponds to this receive timeout. The resulting evidence helps direct the investigation toward baud configuration, FIFO ownership or interrupt dispatch.

Keep exact manufacturer and revision in any reused service procedure. Do not generalize that all reads reset every UART, and retain a common board state across hardware and software records rather than stitching unrelated observations into a contradiction.

Frequently Asked Questions

Must RX idle longer than four characters always produce receive timeout?

No. The rule applies to pending receive data below the trigger threshold. Verify remaining data, any new received stop bit, FIFO reads and the operating configuration.

Can background polling hide the timeout?

If it actually reads the receive FIFO, it resets the counter and may empty the FIFO. Status-only polling should not be assumed equivalent. Use the actual register transactions as evidence.

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.