The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 13th, 2024, 9:11pm
Pages: 1
Send Topic Print
Comparator Negative Input Voltage (Read 3217 times)
bki
Community Member
***
Offline



Posts: 32

Comparator Negative Input Voltage
Aug 25th, 2014, 6:58am
 
Hi,

i need to compare a negative output voltage with a reference signal.
The reference signal has 2,4V. The output signal is -2.4V or lower.
I thought of putting the Output signal to the negative input of the comparator and turn the reference signal to -2,4V (through turning the source) to put it to the positive comparator input. Then i receive the following formula:
-(-Vout)+(-Vref)=Vout-Vref
But now my advisor says itīs not possible to turn the reference voltage to negative. I am wondering why, canīt i just connect the source opposite?
Maybe can you explain me what the problem is and give an alternative solution?

Thank you!
Back to top
 
 
View Profile   IP Logged
RobG
Community Fellow
*****
Offline



Posts: 569
Bozeman, MT
Re: Comparator Negative Input Voltage
Reply #1 - Aug 25th, 2014, 1:34pm
 
It is hard to understand what you are doing. It will be helpful if you can draw and post a schematic of how you are trying to accomplish your goal.
Back to top
 
 
View Profile   IP Logged
aaron_do
Senior Fellow
******
Offline



Posts: 1398

Re: Comparator Negative Input Voltage
Reply #2 - Aug 25th, 2014, 6:31pm
 
Hi,


I think I understood parts of what you're trying to do. Off the top of my head, if your -ve voltage is reasonably low impedance, you could do a voltage divider between the +2.4 and -2.4 to get 0 V, and then compare the signal with "GROUND". I'm not sure how well that would work. It would most likely be slow. There may also be a switched-capacitor way of doing this. For example, charge cap A to +2.4, and cap B to -2.4, then add the two caps together and compare with "GROUND".

Its also possible to generate a negative voltage with a negative charge-pump, but its not that accurate. Actually I have a sneaking suspicion that you already did that, and you're trying to make it more accurate Tongue

You are going to have to explain what you mean by "connect the source opposite". What is the source? Also, as RobG mentioned, you should probably describe your application so people know what you're talking about...


cheers,
Aaron
Back to top
 
 

there is no energy in matter other than that received from the environment - Nikola Tesla
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Comparator Negative Input Voltage
Reply #3 - Aug 25th, 2014, 9:31pm
 
A comparator acts like a very high gain amplifier where the output is expected to clip at one of the supply voltages. Thus, it roughly follows this pseudocode:
Code:
Vout = Av*(V(pin) - V(nin));
if (Vout > Vdd)
    V(out) = Vdd;
else if (Vout < 0)
    V(out) = 0;
else
    V(out) = Vout;
 


where Av is assumed to be very large (>10,000).

Say V(pin) is fixed at 2.4V and V(nin) = -2.3V. Then V(out) will equal Vdd as expected (because Av*(2.4--2.3) = 4.7*Av, which is a very large positive number). Now let V(nin) = -2.5; V(out) will still equal Vdd (because Av*2.4--2.5) = 4.9*Av, which is still a very large positive number).

If you want to compare 2.4V with -2.4V, you should add them together and then compare the result against 0.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
loose-electron
Senior Fellow
******
Offline

Best Design Tool =
Capable Designers

Posts: 1638
San Diego California
Re: Comparator Negative Input Voltage
Reply #4 - Aug 28th, 2014, 12:59pm
 
bunch of different ways of doing this - but the problem needs to be better defined

If the OP can better define the problem?

sounds like a school project of some form.
Back to top
 
 

Jerry Twomey
www.effectiveelectrons.com
Read My Electronic Design Column Here
Contract IC-PCB-System Design - Analog, Mixed Signal, RF & Medical
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.