Output waveform square