UART0 to UART1 Pass-Through

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

UART0 to UART1 Pass-Through

2,020 次查看
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,126 次查看
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,126 次查看
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,126 次查看
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 项奖励
回复