摘要 |
<p>Disclosed is a current sensor provided with a magnetic-field generation unit (30), a sensor element (40) that has a plurality of magnetoresistive elements (41 through 48), an output-computation circuit (54), and a self-diagnostic circuit (55). The magnetic-field generation unit (30) generates a second magnetic field in a direction perpendicular to a first magnetic field. The sensor element (40) outputs a sine-wave signal and a cosine-wave signal that represent the sine and the cosine, respectively, of the angle (θ) between the second magnetic field and a composite magnetic field comprising the first and second magnetic fields. The output-computation circuit (54) outputs a sensor signal corresponding to the magnitude of a detected current. The self-diagnostic circuit (55) uses the aforementioned sine-wave and cosine-wave signals to determine whether the sensor element (40) is malfunctioning.</p> |