The two UARTs can share a reference clock without sharing a driver-mode field. In the PI7C9X7952 PCIe configuration register at B4h, bits 3 through 0 belong to UART 0 and bits 7 through 4 belong to UART 1. Diodes assigns binary 1011 to four-wire RS-485 and binary 1111 to two-wire RS-485 in either field. If updated firmware touches only the low nibble, UART 0 can recover while UART 1 keeps its old mode. A working port does not confirm both conversions.
Start with each port's wiring, then calculate its field
Check whether each port uses a shared differential pair or separate transmit and receive pairs, and map the connector to its UART number. For example, four-wire on UART 1 and two-wire on UART 0 gives BFh in the low byte. Reversing the arrangement gives FBh. These are field arithmetic examples, not instructions to overwrite the complete B4h register. Preserve unrelated fields and follow the datasheet handling of reserved bits. The internal mode choice also cannot verify the external transceiver and wiring. Check the approved image and actual startup sequence: EEPROM autoload can change the initial value, and host initialization can subsequently replace it.
Separate a per-port mode mismatch from a clock problem
Record the B4h field and external direction control for each port, then test transmission and reception one port at a time. In a two-wire implementation, verify that the bus passes to the peer at the required point after local transmission. For a four-wire implementation, verify the two differential paths independently instead of applying the other topology's expected waveform. If only one port fails, reconcile its logical channel number, mode, external wiring, and observed signal. If both ports show incorrect bit timing, check the actual baud rates and the common crystal reference.
Keep one acceptance row per port, with connector label, UART number, mode field, wiring, and observations. A single byte readback or a single successful frame is not an acceptance test for both ports.
Related selection guide: MERLIN Crystal Timing: Why keep a 2 kΩ pull-up on XTLO when a Diodes PI7C9X7952 uses an external oscillator?
Resource link: https://www.mecxtal.com.cn/en/handbook/dio-053.html
