how to clear buffer in usart1 lpc1768?

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

how to clear buffer in usart1 lpc1768?

ソリューションへジャンプ
2,468件の閲覧回数
navidansari
Contributor III

hi

i have RS485 that when i enable transmit pin of it and send data its ok but when i want receive something  and enable Receive pin cause my usart buffer to fill up whit something that corrupt what i want receive.

how can i clear usart1 buffer of lpc1768 after every transmit to be ready to receive something?

ラベル(1)
タグ(3)
1 解決策
2,201件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hello navid ansari,

    About the LPC1768 UART1 485,  we have the according sample code for your reference.

   I have attached it, please refer to the sample code directly.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

2 返答(返信)
2,202件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hello navid ansari,

    About the LPC1768 UART1 485,  we have the according sample code for your reference.

   I have attached it, please refer to the sample code directly.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,201件の閲覧回数
navidansari
Contributor III

thanks allot

0 件の賞賛
返信