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?
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?