LPC5526: how to reset USART errors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC5526: how to reset USART errors

跳至解决方案
712 次查看
_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 项奖励
回复
1 解答
690 次查看
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 项奖励
回复
1 回复
691 次查看
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 项奖励
回复