From: whit3rd on
On Apr 9, 6:21 pm, "eeboy"
<jason(a)n_o_s_p_a_m.n_o_s_p_a_m.jasonorsborn.com> wrote:
> I need an IC to share a UART between two devices. The TX/RX voltage will
> range between 3.3V and 5V. The data rate is 115,200 bps.

I presume you mean one CPU or bus, one UART, and two serial ports?
Two busses or two CPUs is a tad harder.

At 115,200 bps, it's not simple EIA-232, could (depending on the UART)
be synchronous, asynchronous... there are LOTS of protocols out
there. Most of the replies are about 2:1 input selection and 1:2
output
switching, BUT you also have to clear the FIFO buffer in the UART,
and arrange a correct handshake signal sent to the inactive port
(usually the RTS signal if it were EIA-232).
Why not use a dual UART? There's lots around, even quad and
octal. Z8530 is a classic choice (Z85C3008 typical part number).