TL062 can be used to generate a square wave with the same frequency as the signal source and below 1kHz.
Generally, R 1 is between 100k and1m.
The peak value of square wave is determined by VCC voltage, and the valley value is determined by VSS voltage.
See the figure for details: