One circuit I have seen used many times is an op-amp and a current sense resistor to implement overcurrent protection. I have seen this circuit implement both an overcurrent protection that turns off the circuit and something more along the lines of a constant current circuit.
I am interested in overcurrent detection, not trying to implement a constant current circuit. I constructed this circuit in LTspice to try and better understand how this works. I based this off my understanding from reading reference circuits and application notes from supplie
V1 is an AC voltage source so the current in the circuit varies over time. R1 is the load and R2 is the current detection resistor. V2 is my reference voltage. I am expecting that when the current in R1 is above 1 amp the voltage of the LM308 swings high.
I had to add some feedback via R5 because LTSpice would never actually produce a simulation otherwise. I am expecting comparator behavior from this circuit, not a proportional output.
V3 is there just to run the op amp. R3 is the "load" of the op-amp, which is basically just there to source the output of the op-amp back to ground for simulation purposes. The op-amp I used is an LM308, this appears to be the single version of the extremely LM348 I see in many circuits.
Here is the simulation of the circuit
The red line is the voltage coming out of R4 and driving the op-amp. The green line is the reference voltage from V2. The blue line is the output of the op-amp which is basically constant. Why is this happening? Is there some additional components I am missing which are commonly omitted from reference material?