I'm flummoxed as to how to invert a low-power PWM signal going from 0V to an unknown voltage (less than 18V). The output voltage amplitude needs to be the same referenced to 0V.
In other words, where the input signal goes from 0V to xV and then to 0V, the output goes from xV to 0V and then to xV.
Seems like a simple problem but, maybe lacking experience, I can't find a solution.
I seek expert advice. If it can't be done relatively simply, then please tell me and I'll admit defeat.
But a solution would be greatly appreciated!
In other words, where the input signal goes from 0V to xV and then to 0V, the output goes from xV to 0V and then to xV.
Seems like a simple problem but, maybe lacking experience, I can't find a solution.
I seek expert advice. If it can't be done relatively simply, then please tell me and I'll admit defeat.
But a solution would be greatly appreciated!

