Hello,
I am using AM1806 and all UARTs, but at the moment I am looking into UART1.
What I see is that at times I can get into a situation where the ISR is not running anymore and we fail to send data out.
Looking at the IIR register, can we get a THRE and RDA at the same time? When we are sending data, we expect THRE (Transmitter Holding Register Empty) condition to occur so we can send out more data. What will happen when there is incoming data? RDA (Receiver Data Available) has a higher priority than THRE. If the ISR process the incoming data, will it get another interrupt with THRE?
Thank you for your help.