...
Fig 1 shows the power resistors used to limit the current when pre-charging with two voltage dividers connected to either side. The voltage dividers connected to the left and right sides of the power resistors are used to compare the voltage of the battery and motor controllers . IN+ and IN- are essentially reading the voltage of the battery and the motor controller for comparison purposes. The voltage dividers are set to reduce the 150V from the HV line to 9.39V on the battery side and 9.84V on the motor controller side. Aside . Basically, if the pre-charge circuit is on, IN- will be 9.34V, and IN+ will rise from 0V to 9.84V. Aside from lowering the voltage, this is the resistances used in the voltage dividers are set such that when the motor controller reaches 95% of the voltage on the battery side, IN+ will be greater than IN-.
Fig 2 shows an op-amp comparator taking in IN+ and IN- as its non-inverting and inverting inputs respectively. This comparison will output a logic high when IN+ is greater than IN-, effectively signaling that the motor controller has reached 95% of the battery's voltage and pre-charge is complete. The op-amp is set with a positive feedback loop to prevent the comparator from outputting a logic high when the op-amp is powered but its inputs are unpowered. This is an issue as, when the circuit is transitioning from a logic high to a logic low, it may bounce multiple times. The positive feedback latches the output to a logic high and makes it so there must be a significant difference between IN+ and IN- to switch the output.