LPC5526: how to reset USART errors

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC5526: how to reset USART errors

ソリューションへジャンプ
713件の閲覧回数
_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 解決策
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 件の賞賛
返信
1 返信
692件の閲覧回数
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 件の賞賛
返信