Patent ID: 8193807

Claim:
A magnetic sensor device that conducts a logic output according to a magnetic field intensity applied to a magnetoelectric conversion element, the magnetic sensor device comprising: a switching circuit that is connected with a first terminal pair and a second terminal pair of the magnetoelectric conversions element, controls switching of a terminal pair to which a supply voltage is applied and a terminal pair to which detection voltage of the magnetic intensity is output, and has a first output terminal and a second output terminal which output the detection voltage; a differential amplifier that has a first input terminal and a second input terminal connected to the first output terminal and the second output terminal of the switching circuit, respectively, and has a first output terminal and a second output terminal which output results of differentially amplifying the detection voltage; a first capacitor having one terminal connected to the first output terminal of the differential amplifier; a second switch having one terminal connected to the second output terminal of the differential amplifier; a comparator that has a first input terminal connected to another terminal of the first capacitor and a second input terminal connected to another terminal of the second switch, and outputs a comparison result of voltages input to the first input terminal and the second input terminal to an output terminal; a first switch connected between the first input terminal and the output terminal of the comparator; a second capacitor having one terminal connected to the second input terminal of the comparator; and a detection voltage setting circuit connected to another terminal of the second capacitor.