LPC5526: how to reset USART errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC5526: how to reset USART errors

Jump to solution
711 Views
_Ferrari_
Contributor IV

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,

0 Kudos
Reply
1 Solution
689 Views
Miguel04
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
Reply
1 Reply
690 Views
Miguel04
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply