This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LM339: Simulation ok, but prototype doesn't work

Part Number: LM339

Hi TI team, merry christmas and happy new year!!

I am using a LM339 comparator to detect a LED circuit.

The input from LED circuit is 5V or 3V.

I hope when input is 3V, LM339 output low and MOSFET on.

and when input is 5V, LM339 output high and MOSFET OFF.

PSpice simulation result is same as my expection, but prototype board doesn't work, the LM339 output always low and MOSFET always on.

when i changed the LM339 to a OP-AMP LM6132B, the prototype board is working well.

1. Could you help advice is anything woring of the circuit.?

2. What's the difference between comparator and OP-AMP? thanks in advance.