UART0 to UART1 Pass-Through

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART0 to UART1 Pass-Through

1,237 Views
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?
Labels (1)
0 Kudos
3 Replies

343 Views
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 Kudos

343 Views
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 Kudos

343 Views
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 Kudos