First, it is converted into the required voltage by the operational amplifier, then through the voltage follower, and then through the voltage zero-crossing comparison circuit, the square wave signal can be output.
Capturing the rising edges of two square wave signals can determine the period and frequency of the input sinusoidal signal.