In message , Boki writes
I had a colleague who spent days trying to get a UART to work. He was changing from old NMOS to the supposedly identical replacement CMOS.
The problem he eventually found was that some of the internal operations of the CMOS device were too slow, and had not completed before his uP did the next write to the UART.
The solution was NOPs in between uP writes to the UART.