Patent ID: 8890740

Claim:
A comparator comprising: a comparator circuit configured to output to an output terminal an output voltage based on a voltage difference between a first input voltage which is input to a first input terminal and a second input voltage which is input to a second input terminal; a variable capacitor connected to the output terminal; an input voltage control circuit configured to generate a common voltage to be added to the first and the second input voltages, to generate the first and the second input voltages including a differential voltage generated according to the common voltage; and a correction circuit configured to control the variable capacitor to control the common voltage, wherein the correction circuit controls a first capacitance value of the variable capacitor so that the potential of the output voltage is reversed when the voltage difference equals a first voltage difference, and controls a second capacitance value of the variable capacitor so that the potential of the output voltage is reversed when the voltage difference equals a second voltage value which is different from the first voltage difference by a predetermined voltage value, and controls the common voltage so that a difference between the first capacitance value and the second capacitance value becomes equal to a predetermined capacitance value.