Since the three flags are saved with UART data in the FIFO, these flags must be cleared by writing 1 to them before the data is read out. This can avoid FIFO level changes, causing the PEF, FEF and BIF saved in the upper layer of FIFO unable to be cleared.
If the data has been read out but the three flags are not cleared, these flags will remain in the FIFO. The next time the same level FIFO data is read out, the RLS interrupt may inadvertently occur due to these old flags.
When the RLS (Receive Line Status) interrupt occurs during UART data transmission, how to handle PEF, FEF and BIF flags
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests