I have a school project that requires a sine to square wave converter for a sine wave input of 0 - 3.1 V pk from 0Hz to 500kHz. The output must be a square wave with maximum voltage 2.8V - 3.1V. So far I have tried using an op amp as a Schmitt trigger, however the ones I have available cannot work for the frequency range. I have tried the Schmitt trigger using transistors but am unable to get my design to work.
I would appreciate anyone directing me to an appropriate device or any help designing the schmitt trigger.