SPDT switch in software

I (might) need to make a sort of software-controlled SPDT switch to connect one of two different inputs to a single outputs. I'm talking about analog signals.

No problems for the software part, but what about the hardware? I guess I could use a relay, but was wondering if there is any non-mechanical solution.

Or maybe would even a dual-input multiplexer IC work?

You mean a 74HC4053?

Well, that is exactly what it is for.

Mmmh… I have a few HC157 handy, will they be fine as well?

http://www.nxp.com/documents/data_sheet/74HC_HCT157.pdf

I know how multiplexers work, but have always used them with digital signals, never put anything analog into them.

Of course, you can’t use a digital part for analogue signals.

Or you could use a MAX4644 which seems to be a much simpler chip design.

SukkoPera: Mmmh... I have a few HC157 handy, will they be fine as well?

I know how multiplexers work, but have always used them with digital signals, never put anything analog into them.

Well, since the term "analog" occurs nowhere in the documentation, that should be a strong hint.

jackrae: Or you could use a MAX4644 which seems to be a much simpler chip design.

Sure is, but how readily available?

Paul__B: Well, since the term "analog" occurs nowhere in the documentation, that should be a strong hint.

:D

OK, so there are dedicated multiplexers for analog signals, I didn't know this!

Paul__B: Sure is, but how readily available?

Mouser Electronics in UK list 2441 in stock !

As far as I understand, the MAX4644 is not available in DIP thought, which complicates things.

The 4053 doesn't seem so complex to use, anyway, I'll go with that.