# Comparator

Status
Not open for further replies.

#### boro3

##### Member
Hello Guys,
i have a little question,
if i use a comparator with single supply (+5V, 0V), is it possible to campare negative input voltages
like in+ = -4V
in-=-2V ?

Thanks to all

#### ronsimpson

##### Well-Known Member
Sorry I don't have a way to draw on this little computer.
+5V
|
10k resistor
|
Input to comparator (the input voltage will be about 1/2 volt)
|
10k resistor
|
-4 volts to measure

#### audioguru

##### Well-Known Member
Why not look at the datasheet?
The datasheet for an LM3339 quad or LM393 dual comparator says that the absolute maximum negative input voltage is -0.3V and that the inputs work properly only between 0V and the supply voltage minus 1.5V.

#### gophert

##### Well-Known Member
Hello Guys,
i have a little question,
if i use a comparator with single supply (+5V, 0V), is it possible to campare negative input voltages
like in+ = -4V
in-=-2V ?

Thanks to all
No

#### MrAl

##### Well-Known Member
Hello Guys,
i have a little question,
if i use a comparator with single supply (+5V, 0V), is it possible to campare negative input voltages
like in+ = -4V
in-=-2V ?

Thanks to all
Hello,

As some have said, you can not usually do this directly because the input will be driven too far negative.
As Ron pointed out though, you can use a small bias network to get what you want. By biasing with a positive source that you know will ALWAYS be present, you can still do a comparison of levels that go far beyond the input limits on the device itself.
To protect the device, you may use clamping diodes or sometimes you can depend on the input ESD diodes to protect the device if you make sure the input current is NEVER beyond the specs for the comparator ESD diodes.

#### dr pepper

##### Well-Known Member
It'll work so long as the reference voltage, 5v power in this case + the voltage to be compared is more than zero.
In this case 5v + - 4v = 1V so it'll work.
As mentioned take care not to take the voltages on the chips inputs negative, some chips will blow up, a series resistor with the input & protection diode will do the job in most cases.