Hi, right now I have a signal that is either high(5V) or low(0V). Is there any circuit that can make this signal when it is high, it's 5V and when it is low, it is -5V instead of 0V?
I have tried to use a summing amplifier to subtract the signal by 5V, when it is low. And when it is high, I dont subtract the voltage by 5V. However, the circuit doesnt work in simulation. Please see the attached file for the circuit
A is the signal that is 5V, when high and 0V when low.
S1 and S4 are on when the signal A is high.
S2 and S3 are off when the signal A is low.
S1 and S4 are on when the signal A is low.
S2 and S3 are on when the signal A is high.
The op-amp will produce -5V when R1 and R2 are equal.
When the signal A is low,
Vout = -((R1/R2) * 5 + (R1/R3) *A)
Since A is 0V, Vout = -5V.
Where did I make mistake in this circuit? Btw the output is connected to an inverter.
I have tried to use a summing amplifier to subtract the signal by 5V, when it is low. And when it is high, I dont subtract the voltage by 5V. However, the circuit doesnt work in simulation. Please see the attached file for the circuit
A is the signal that is 5V, when high and 0V when low.
S1 and S4 are on when the signal A is high.
S2 and S3 are off when the signal A is low.
S1 and S4 are on when the signal A is low.
S2 and S3 are on when the signal A is high.
The op-amp will produce -5V when R1 and R2 are equal.
When the signal A is low,
Vout = -((R1/R2) * 5 + (R1/R3) *A)
Since A is 0V, Vout = -5V.
Where did I make mistake in this circuit? Btw the output is connected to an inverter.