If the UART works normally before sleep but the remote endpoint must switch from 57600 to 28800 baud after wake-up to receive data, first capture the registers before and after wake-up. Reinitializing the port can erase evidence of which clock source changed.
| 16× oversampling, divisor of 8 | UART input | Calculated baud rate | Approximate bit duration |
|---|---|---|---|
| Direct reference clock | 7.3728 MHz | 57600 | 17.36 µs |
| Bus prescaled by two | 3.6864 MHz | 28800 | 34.72 µs |
Send repeating characters with alternating bits on TX and measure bit width using the data edges. If the reading matches the second row, trace the UART clock selection upstream and check the bus prescaler, clock source and oversampling configuration on wake-up. The prescaler in the table is one possible cause. Changing the oversampling setting can also produce an integer-factor difference.
Give the firmware engineer a side-by-side record of register values and measured bit widths in normal operation and after wake-up. If only the remote endpoint decodes incorrectly while the local bit width remains close to 17.36 µs, check the remote clock, data bits and stop bits before repeatedly replacing the 7.3728 MHz crystal.
