Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Disable RX on UARTS

Disable RX on UARTS

2005-06-15 by extra300_it

Hello,

I have an external circuit that echoes back the caracters that I am 
sending out of UARTs.
Is there any way to disable RX while I'm transmitting (like Rx Enable 
on other micros)?

-I am using FIFO-

I disabled both RX interrupts during transmission.
When tx is ended, I clear FIFO buffers (UxFCR bit 1)
This should clear the RX FIFO buffer, isn't it?

When I re-enable RX interrupts I get in RX several times the last 
char that was sent.

Any suggestion?

Thanks.

Re: [lpc2000] Disable RX on UARTS

2005-06-15 by Jaromir Subcik

I'm not sure that it suits to your problem, but similar problem I solved with RS485 transmitter and another small micro. In both cases (Rx and Tx) I used only Rx interrupt and there I decide if sent next character or put received into buffer.
Jarda
  ---------- 

  Hello,

  I have an external circuit that echoes back the caracters that I am 
  sending out of UARTs.
  Is there any way to disable RX while I'm transmitting (like Rx Enable 
  on other micros)?

  -I am using FIFO-

  I disabled both RX interrupts during transmission.
  When tx is ended, I clear FIFO buffers (UxFCR bit 1)
  This should clear the RX FIFO buffer, isn't it?

  When I re-enable RX interrupts I get in RX several times the last 
  char that was sent.

  Any suggestion?

  Thanks.


[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.