摘要:
The present teaching relates to a magnetic sensor (1105) including an input port (1102, 1104) and an output port (1106) and an electrical circuit (1100) which includes a magnetic field detecting circuit (1130), an output control circuit (1120), a state control circuit (1140) coupled with the output control circuit (1120) and configured to determine whether a predetermined condition is satisfied and signal the same to the output control circuit (1120). When the predetermined condition is satisfied, the state control circuit (1140) is at least responsive to the magnetic induction signal to enable the output control circuit (1120) to control the magnetic sensor to operate in at least one of a first state and a second state. In the first state, a load current flows in a first direction from the output port (1106) to outside of the magnetic sensor. In the second state, a load current flows in a second direction opposite of the first direction from outside of the magnetic sensor into the magnetic sensor via the output port (1106). When the predetermined condition is not satisfied, the state control circuit (1140) enables the output control circuit (1120) to control the magnetic sensor to operate in a third state.