UART0 to UART1 Pass-Through

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

UART0 to UART1 Pass-Through

2,054件の閲覧回数
Ioline
Contributor I
I want to link the incoming data from UART0 pins to the output of UART1 pins on a MCF5232. Anythoughts on the best way to achieve this?
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,160件の閲覧回数
mjbcswitzerland
Specialist V

Hi

 

If you wire Tx from UART 0 and Rx from UART 1 as one serial interface, then Tx from UART1 and Rx from UART0 as a second, you could then use the AUTO_ECHO mode to send received characters from one interface directly to the other output.

 

Regards

 

Mark

 

0 件の賞賛
返信

1,160件の閲覧回数
Ioline
Contributor I

Not a bad idea, but my overall goal is to link:

 

UART1 (RX) -> UART0 (TX)

UART1 (TX) -> UART0 (RX)

 

My question is what is the best way to link them.

0 件の賞賛
返信

1,160件の閲覧回数
bkatt
Contributor IV

Ioline wrote:

Not a bad idea, but my overall goal is to link:

 

UART1 (RX) -> UART0 (TX)

UART1 (TX) -> UART0 (RX)

 

My question is what is the best way to link them.


If the arrow indicates direction of flow, I think you mean UART1 (TX) <- UART0 (RX).

 

If the timing is the same (baud rate, data bits, stop bits, no flow control) then the receive ISR for each uart could simply write each rx character to the tx output register of the other uart.

 

Otherwise you would need software ring buffers to accomodate the speed mismatch. 

0 件の賞賛
返信