I have a square wave that is 5v peak-to-peak. I need a circuit that can amplify this square wave up to any given supply voltage between 9 and 50v. I don't need much current, nothing more than 100ma certainly, 20-50ma would work. My preference is to use components as cheap as I can get. How can I amplify this square wave for minimal component cost? Is there a way to achieve a square wave with a high peak-to peak voltage without in input pwm?
The 0-Vsupply square wave will be fed into the following circuit:
Vout will always float 10v above the supply, minus a few diode drops. The part I am stuck on is how to get a square wave at the supply voltage.