Electronics-Lab.com Community

# lm339 comparator

## Recommended Posts

I'm trying to understand the function of the 339.  I have read all of the datasheets (which don't help very much as far as basic understanding) and think that the basic idea is to output high when the + input is > the - input and a low otherwise.  Is this the correct basic idea?

Beyond that - when I look at the example datasheets which include application examples - I find that most of the examples elude me in terms of what they will do.

Any help or pointers to resources that I could study would be much appreciated.

Joe

##### Share on other sites

Hi Joe,
You almost understand the operation of an LM339.
Since the output is only the collector of an NPN transistor, the output becomes open-circuit (and is pulled high by an external resistor) when its + input is more positive than its - input. When its - input is more positive than its + input then the output transistor conducts and pulls any voltage provided by an external pull-up resistor to ground.
The datasheet applications show that this comparator is just a switch to ground that is controlled by the very accurate voltage match of its inputs.  ;D

##### Share on other sites

Thanks Audioguru.  Your explanation helped alot.  I'm going back through their ex apps with this in mind to see if I can make sense of it now.

Thanks again!
Joe

##### Share on other sites

A comparator litterly amplifies the logic into oblivian. No, not really oblivian for the fact that the unknown zone exists. So basically you have a modest type amplifier I think. I still think these things have higher gain. I know that the output is always good provided the input. It's funny but they actually have a gain of 1. But in reality, and this is the point I am trying to make, the voltage curve rises to it's uppermost voltage very quickly because the gain is high. So no it is not accurate to potray the voltage as not doing enough to make the transition. It does quite a bit, but the voltage will always charge with the capacitor. So although the voltage flies immediately, the RC time constant will hold onto the voltage keeping it slewed.

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.