Patent ID: 8618818

Claim:
An electrostatic capacity type touch sensor comprising: a sensor circuit detecting a change in a capacitance of a touch pad; a calibration register to adjust an offset in an output value of the sensor circuit; and a control circuit configured to: control the sensor circuit to obtain a first output value of the electrostatic capacity type touch sensor based on first calibration data stored in the calibration register, modify the first calibration data depending on the first output value to obtain second calibration data, control the sensor circuit to obtain a second output value of the electrostatic capacity type touch sensor based on the second calibration data, after obtaining the second output value, control the sensor circuit to obtain a third output value of the electrostatic capacity type touch sensor based on the first calibration data, and judge whether an offset in the second output value is larger than an offset in the third output value when a difference between the first output value and the third output value is smaller than a first threshold value, the offset in the second output value being a difference between a reference value and the second output value, and the offset in the third output value being a difference between the reference value and the third output value.