I am currently using the LMV331 voltage comparator. Right now set up as a basic comparator. Here is my scenario:
Case 1:
Vin+ = 3.3V
Vin- = 0V
Output = High
Case 1 works as intended. Vin+ > Vin-, therefore the output should be high.
Case 2:
Vin+ = 3.3V
Vin- = 2.8V
Output = Low.
Case 2 is not working as intended. Clearly Vin+ is still greater than Vin-, however the output is being saturated. Why is this happening?
The data sheet clearly states:
The output is HIGH when the voltage on the non-inverting (+IN) input is greater than the inverting (-IN) input. The output is LOW when the voltage on the non-inverting (+IN) input is less than the inverting (-IN) input. Therefore, Case 2 should produce a High output and this is not the case.