I need square wave without negative voltage.
Considering a source which produces square wave (could be function generator or from other circuits) has no ability or I don’t have the control required to do this. So I need to use an extra circuit which can block the negative part.
What circuit would you use?
My simplest idea is to use a diode in series to block the negative voltage. However it doesn’t work. I have tried high and low frequency. Simulation in multisim’s oscilloscope doesn’t show any difference. I have no idea why this is happening. Being relatively new to semiconductor devices, I am hoping to learn something new from this as it goes against my basic understanding of diodes.
Why the diode can’t block negative voltage? Is it because the diode’s p-n junction works like a little capacitor?
Multisim schematic and oscilloscope result:
Edit: After applying Olin Lathrop’s answer and Venny’s diode suggestion oscilloscope shows exactly what I want.