Can you explain what for is resistance R101 on next schematic:
I understand why we need R105 (open collector) and R102 (positive feedback). But R101? and C11? Thank you.
The shown squarewave generator is based on the working principle of a "Schmitt-trigger oscillator" (astable multivibrator). In such a circuit we always have fixed positive as well as time-dependent negative feedback realized by the time constant T=R101*C11.
Explanation: Start with an (assumed) positive output voltage. After the capacitor C11 is fully charged we have full negative feedback and only fractional positive feedback. Hence, the positive voltage at the inv. terminal overrides the positive voltage at the non-inv. terminal. As a result, the output will switch to a negative voltage - and the same sequence starts again with an opposite sign.
Note that the pos. feedback causes two important effects: At first, it makes a certain degree of hysteresis and, secondly, it drastically enhances the switching speed of the output voltage because positive feedback always supports the speed of a voltage change.
I think is for the feedback of you comparator, the capacitor C11 is charged through this resistor (R101) and the voltage ov the pin IN- is changed to balance the state of your comparator.
They appear to be used to set the basic frequency/period of oscillation of the LM311 comparator being used as an astable multivibrator.
Without knowing what the circuit is supposed to do (especially the part left of C12: what's the purpose of Lx? I guess it's not just an inductor but it may pick up some signal) it is hard to explain it completely.
Maybe it helps if you know that the part right of C12 forms a relaxation oscillator whose frequency is proportional to 1 / (C11 * R101).
R101 and C11 form a low pass filter from the output to the input. If the output is a 50:50 mark-space ratio square wave, then the average voltage at pin 3 will equal the average voltage on pin 2 (determined by R103 and R104). If the output waveform was not 50% duty, then the average voltages on pin 2 and 3 would not be equal and the action of the circuit would be to modify the output to be 50% duty cycle.
My belief is that R101 and C11 are used to ensure that the output square wave duty cycle is very close to 50%. It may be required to be 50% because of the circuit that follows this circuit.