Electronic – Understanding the operation of LM219 Comparator

comparatorspice

I'm trying to use the LM219 (equivalently LM119 or LM319) comparator in a project I am working on (I chose this over other comparators because it has a fast response time for the desired supply voltages). I am using supply voltages of +-12 volts, and I am generating a square wave output from a triangle wave input (+1 to -1) and DC bias (for duty cycle control). Essentially if the difference in the inputs are greater than 0, it should rail to +12, and rail to -12 otherwise.

However, all of the datasheets for the LM219 I have looked at don't have a simple comparator application circuit (all typical application circuits don't intuitively explain how the comparator works), and I don't completely understand how to wire it up. How does the part decide whether to rail to +12 or -12 based on the connections? Would the circuit below suffice for my application?
enter image description here

A related question, all SPICE models for the part I found online don't seem to work well. Who can I contact to find a SPICE or TINA-TI model for this part?

Best Answer

The LMx19 has an open-collector output. If you look at Fig 6.1 - Functional Block Diagram in the TI datasheet, you will see that the output transistor can only pull the output towards Ground when Low, and lets the output float when not Low. It cannot drive the output to either supply (well, if V- is tied to Ground it can drive the output to V-/Ground).