sir, i m not understanding wat do you mean by open collector in terms of comparator ic because wat i think is that open collector is a configuration of transistor can you please correct this circuit for me.
Let us take one ouput, say pin 14.
On your circuit, when it is supposed to be high, nothing happens. To get a voltage on it, we need to add a resistor between this pin and Vcc (as your +12V). So we can disconnect the R1 (1K) terminal from the Q1 base and connect it to Vcc (+12V) instead. But here we don't need just a high voltage at the ouput, instead we look to drive Q1 so that it will be turned on in this state. To do this, first let us change the value of R1 from 1K to 10K for example since Q1 base doesn't need too much current for a load of 1K (R4) at its collector. Then we connect the Q1 base directly to pin 14 (output).
We will notice that the voltage at pin 14 drops from 12V (no connection to the base) to about 0.7V (when connected and which is the average forward voltage between base and emitter of a silicon npn transistor). Now R1 passes a current to Q1 base and the collector of Q1 will be close to zero (said in saturattion). You may say but why this current goes to Q1 and not into pin 14. Here it comes the role of what we call an output with open collector. It is like we have Q1 without R4 at its collector. Q1 can sink current through R4 (when connected) if its base is driven by a small current but it cannot source any current if Q1 is off (no base current), so when R4 is removed Q1 collector would look like an open circuit in this state. Similarly, the output of the comparator here is just a collector of an NPN transistor hence it can sink a current if low and becomes an open circuit otherwise (that is why we call the output type; open collector).
In brief, the corrections at pin 14 (same for the other outputs):
[1] R1 is connected between pin 14 and 12V. Practically its value could be made 10K to provide about 1mA only, to the Q1 base.
[2] Q1 base is connected directly to pin14. When pin 14 is low Q1 is turned off since the comparator output will sink the 1mA leaving its base current without any current.
Have fun :smile: