The switching frequency is 25kHz. (The output of the circuit should be continous and the propagation delay between the input and output of the circuit should be <1ms)
The peak of the square wave will range between 0 - 3.3v. (The output of the circuit should be as representative of the peak value of the square wave as possible.) I'm not sure how much of a problem ringing will be. Ideally this should be as small as possible so that it does not false trigger the comparator circuit.
The output of this circuit will be fed to a comparator circuit to see if the peak of the square wave exceeds the reference voltage of 0.5v.
I don't want to use a uC for this circuit.
I have been looking at similar circuits to this...but the diodes are irrelevent as the voltage of the square wave doesn't swing below 0v. ( trying to read the peak of a square wave with a peak of 0.1v is unobtainable with the voltage drop of the diode anyway~)
View attachment 112658