Dear all,
I am developing a project based on the LPC5526 CPU. The project uses USART to send and receive data.
Unfortunately, the RX line is very noisy, so sometimes an error is generated while receiving a data frame or RX noise.
What is the correct procedure to remove all data from the RX FIFO and reset the UART in order to clear all errors?
Thank you very much for your help and cooperation.
Regards,
解決済! 解決策の投稿を見る。
Hi @_Ferrari_
Please look into your LPC5526's user manual UM11126 chapter 34.6.10 FIFO Configuration register
Bits 16 [EMPTYTX] and 17 [EMPTYRX] are for a empty command "When a 1 is written to this bit, the
RX/TX FIFO is emptied."
I hope this information is usefull.
Best Regards, Miguel.
Hi @_Ferrari_
Please look into your LPC5526's user manual UM11126 chapter 34.6.10 FIFO Configuration register
Bits 16 [EMPTYTX] and 17 [EMPTYRX] are for a empty command "When a 1 is written to this bit, the
RX/TX FIFO is emptied."
I hope this information is usefull.
Best Regards, Miguel.