Just screwing around in the simulations, accidentally made a square pulse generator. Requires an AC sine input, here it's at 1 volt. Also requires an input voltage at any value, I just set it here to 10 volts.
Bottom-left resistor controls pulse width