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

Both UART bit widths are correct. Why does an SC16IS752 drop data when both ports receive?

A dual-channel serial board uses a 14.7456 MHz active oscillator. Either port receives complete messages when tested alone, but sequence numbers go missing when both external devices run together. Check the physical UART input waveform, then ask whether a receive queue can fill before the host reads it. An accurate clock establishes the bit timing. The bridge still has to buffer characters from two ports for one host interface. Sufficient service in a single-port test does not establish simultaneous operation.

A higher receive threshold leaves less time to act

NXP specifies a 64-character receive FIFO per channel. Ordinary FCR thresholds are eight, sixteen, fifty-six, and sixty characters. An illustrative 14.7456 MHz reference in 16-times mode with unity overall division gives 921600 baud. With eight data bits, no parity and one stop bit, each character occupies ten bit intervals including start, arriving about every 10.85 microseconds. At fifty-six queued characters there are eight spaces, which fill in about 86.81 microseconds under continuous traffic. At sixty there are four spaces and roughly 43.40 microseconds. These are ideal times until full at the stated occupancy. Leave margin for interrupt delivery, the character already being shifted in, and the delay to the first actual read.

A normal threshold of sixteen leaves forty-eight spaces and about 520.83 microseconds in the same example. That can increase the interrupt or transaction rate by reducing batch size. Measure the interrupt and actual receive level to make sure the intended setting took effect. Enhanced controls have their own threshold settings, so verify which one the driver uses. Once servicing begins, the queue also needs a sustainable drain rate. Removing only a few bytes can postpone overflow without preventing it.

A sufficient average interface rate can hide long service delays

The data sheet gives the SC16IS752 a 4 Mbit/s SPI limit. That is an ideal raw 500000 bytes per second before commands, status reads, chip-select intervals, and channel changes. Two continuous 921600 baud 8N1 streams supply about 184320 data bytes per second. This fits within the ideal average but does not bound how long either channel remains unserved. As a scale comparison, clocking fifty-six SPI byte times at 4 Mbit/s takes 112 microseconds. This does not mean a FIFO read must wait for that full transaction before removing a character. It shows why servicing one channel can occupy the same time scale as the other channel's shorter budget. Measure the interrupt-to-first-removal delay and both peak occupancies during the actual transfer.

Run both peers with identifiable, incrementing sequence data. Capture the case where both FIFOs reach their thresholds close together. Record which channel gets served first. A driver that completely empties the first queue before looking at the second can create excessive delay under continued traffic. Adjust thresholds, service batching, or supported flow control according to the actual products at both ends. A toggling flow-control output is only useful if the sender honors it in time.

Distinguish malformed bytes from bytes lost to overflow

NXP reports overrun, framing and parity errors separately in the line status register. Preserve the corresponding status and byte indexes and compare with complete frames captured on the wire. Valid waveforms followed by full FIFO occupancy and an overrun point toward service time. Framing errors even under light load require inspecting levels, bit timing, and configuration. Trace the interrupt through to the affected data, taking account of when register reads change the captured state.

For a replacement surface-mount oscillator, verify the XTAL1 input, leave XTAL2 open as specified, and measure the received timing and levels. Then retain the intended baud rate and test both ports under continuous traffic while the host performs representative work. Include a maintenance transaction or retry during reception and capture the longest wait, highest occupancy, missing sequence indexes, and status for each channel. The 14.7456 MHz reference and receiver service both affect acceptance. Measure them in the same operating configuration.

Include short bursts and continuous traffic. Check the device's receive-timeout interrupt for a burst smaller than the threshold, since otherwise data may remain in the queue. Sustained bursts can also reveal gradual backlog. If each service removes slightly less than arrives, several batches can pass before the first overrun. A clean short trace can miss this. Test long enough to cover the actual service cycles and compare drain rates for both channels.

For another control, lower only the threshold, leaving the oscillator, baud rate, and other settings fixed. Check whether the second channel receives earlier service. If data is still missing after overruns disappear, preserve the new error signature and inspect the host software buffer or application framing. Changing one variable at a time ties the evidence to the affected part of the design.

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.