I'd like to come up with a circuit that has 0 or +5 volts as an input, and -5 or 0 volts as the output.
I have access to 0, +5, and -5 rails. Currently I implemented this using a SPDT reed relay, but I have some switching noise issues. Instead of putting in a debouncer, I thought I could come up with a solution using a transistor or two.
My first thought was to use an NMOS inverter, with output at the drain. The drain resistor would connect to ground, and the source to -5. This doesn't work because the gate can't be at a higher potential than the drain.
If I can avoid it, I'd like to not use op-amps (eg. adder circuit).
I have access to 0, +5, and -5 rails. Currently I implemented this using a SPDT reed relay, but I have some switching noise issues. Instead of putting in a debouncer, I thought I could come up with a solution using a transistor or two.
My first thought was to use an NMOS inverter, with output at the drain. The drain resistor would connect to ground, and the source to -5. This doesn't work because the gate can't be at a higher potential than the drain.
If I can avoid it, I'd like to not use op-amps (eg. adder circuit).