When the RLS (Receive Line Status) interrupt occurs during UART data transmission, how to handle PEF, FEF and BIF flags

Post Reply
a_ziliu
Posts: 208
Joined: 20 Mar 2017, 10:52

27 Mar 2017, 14:19

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.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests