I've been building an induction heater for a while now and wanted to get the frequency tracking to work properly. I need to convert the up to 600V ~100khz sine wave signal into a square wave, I've currently been doing it by using a 300kohm resistor and then clamping the voltage by using 2 back to back diodes.
The problem is that even very low capacitances of like those in a breadboard (~2pF) create a low pass filter which imposes a phase shift which makes tracking phase kind of hard.
How would I go about properly clipping the voltage without causing a phase shift?