Patent ID: 8629521

Claim:
A semiconductor device comprising: a Hall element represented by an equivalent circuit in which a first resistive element, a second resistive element, a third resistive element, and a fourth resistive element are sequentially connected in a quadrangular loop, wherein the semiconductor device is switched between a first mode and a second mode, wherein, in the first mode, a first connection point between the first resistive element and the second resistive element is set at a ground potential and a second connection point between the third resistive element and the fourth resistive element is set at a power supply potential, and a third connection point between the first resistive element and the fourth resistive element and a fourth connection point between the second resistive element and the third resistive element are set as output terminals, and wherein, in the second mode, the third connection point is set at the ground potential and the fourth connection point is set at the power supply potential and the first connection point and the second connection point are set as the output terminals, and wherein, in the first mode, a first line that is located adjacent to the second resistive element and connected to the first connection point is set at the ground potential, and, wherein, in the second mode, a second line that is located adjacent to the fourth resistive element and connected to the third connection point is set at the ground potential.