I am simulating the circuit above in LT Spice, where a LM311 (a LT1011 is simulated, but should be largely equivalent) is used to transform a (noisy) sine wave signal into a square wave. Value of R5 controls hysteresis as seen in red waveform.
I understand that the comparator has an open-collector output, pull-up resistor R1 is used to obtain 5V on high output.
My question is about the low output level. Even though V- is grounded, the voltage at the output doesn't quite reach 0V, rather it stays at 200.3mV; changing the value of R1 from 1kOhm to 10kOhm decreases this level to 155mV. How does this voltage behave and how can it be selected by the circuit designer? Is it any of the specs in the datasheet?
Looking at datasheets for LM311/LT1011 it seems pin 1/EMIT OUT is connected to the rest of the circuit through a 4Ohm resistor. If this was the only factor, I'd expect a 1kOhm by 4Ohm +5V to 0V voltage divider to provide a much lower 19.9mV. Instead, it seems to behave as a 42Ohm resistor with a 1kOhm R1, and it even changes to a 320Ohm resistor with a 10kOhm R1.