Nothing Special   »   [go: up one dir, main page]

WO2011021521A1 - Magnetic sensor device and electronic equipment using same - Google Patents

Magnetic sensor device and electronic equipment using same Download PDF

Info

Publication number
WO2011021521A1
WO2011021521A1 PCT/JP2010/063459 JP2010063459W WO2011021521A1 WO 2011021521 A1 WO2011021521 A1 WO 2011021521A1 JP 2010063459 W JP2010063459 W JP 2010063459W WO 2011021521 A1 WO2011021521 A1 WO 2011021521A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
output
magnetic sensor
sensor device
circuit
Prior art date
Application number
PCT/JP2010/063459
Other languages
French (fr)
Japanese (ja)
Inventor
哲也 山崎
Original Assignee
ローム株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ローム株式会社 filed Critical ローム株式会社
Publication of WO2011021521A1 publication Critical patent/WO2011021521A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R33/00Arrangements or instruments for measuring magnetic variables
    • G01R33/02Measuring direction or magnitude of magnetic fields or magnetic flux
    • G01R33/06Measuring direction or magnitude of magnetic fields or magnetic flux using galvano-magnetic devices
    • G01R33/07Hall effect devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • G01D5/245Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains using a variable number of pulses in a train
    • G01D5/2451Incremental encoders
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals
    • G01P3/487Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals delivered by rotating magnets

Definitions

  • the present invention uses a magnetoelectric conversion element (such as a Hall element or a magnetoresistive element) to detect a magnetic field where it is installed, and outputs an output signal having a logic level corresponding to its strength or polarity (S pole / N pole).
  • a magnetoelectric conversion element such as a Hall element or a magnetoresistive element
  • the present invention relates to a magnetic sensor device that generates a magnetic field, and an electronic device using the same.
  • FIG. 15 is a schematic diagram showing a conventional example of an electronic apparatus using a magnetic sensor device.
  • the electronic apparatus according to the conventional example uses two magnetic sensor devices (Hall ICs) 100X and 100Y each having only one Hall element, and analyzes each output signal OUTX and OUTY with the analysis device 300, whereby a target is obtained. It was set as the structure which calculates the rotational speed V of (circular magnet) 200.
  • the distance between the magnetic sensor devices 100X and 100Y (that is, the distance between the Hall elements integrated in the magnetic sensor devices 100X and 100Y) is d, and output after the logic level of the output signal OUTX changes.
  • the rotation speed V of the target 200 can be calculated by the following equation (1).
  • V d / ⁇ t (1)
  • Patent Document 1 disclosed and proposed by the applicant of the present application can be cited.
  • the present invention realizes reduction of the mounting area on the set substrate and reduction of the number of handling, and further improves the accuracy of target motion analysis based on the output signal. It is an object of the present invention to provide a magnetic sensor device that can be used and an electronic device using the same.
  • a magnetic sensor device includes a plurality of magnetoelectric transducers arranged at a predetermined inter-element distance; and the intensity of a magnetic field detected by each of the plurality of magnetoelectric transducers. Or a plurality of signal processing circuits that respectively generate a plurality of output signals whose logic levels change according to the polarity; and are integrated in a single semiconductor chip (first configuration). .
  • each of the plurality of signal processing circuits is a changeover switch circuit that switches the detection state of the magnetoelectric conversion element to one of the first and second switching states;
  • a comparison circuit that performs a predetermined comparison process using a detection voltage of the magnetoelectric conversion element and a predetermined reference voltage, and generates a comparison result signal according to the result; and based on the output signal and the comparison result signal,
  • a logic circuit that generates a logic operation signal for maintaining or inverting the logic of the output signal; a D-type flip-flop that latches the logic operation signal and outputs it as the output signal; and based on the output signal,
  • the switching control of the selector switch circuit is performed in the order from the first switching state to the second switching state, or the first switching state is switched from the second switching state to the first switching state.
  • Better to configure comprising a (second configuration); in the order of state, and a control circuit for determining whether to perform switching control of the switching circuit.
  • the plurality of magnetoelectric transducers may be configured to be Hall elements (third configuration).
  • each of the plurality of signal processing circuits is a changeover switch circuit that switches the detection state of the magnetoelectric conversion element to one of the first and second switching states;
  • a comparison circuit that performs a predetermined comparison process using a detection voltage of the magnetoelectric conversion element and a predetermined reference voltage, and generates a comparison result signal according to the result; and based on the output signal and the comparison result signal,
  • a logic circuit that generates a logic operation signal for maintaining or inverting the logic of the output signal; a D-type flip-flop that latches the logic operation signal and outputs it as the output signal; and based on the output signal,
  • the switching control of the selector switch circuit is performed in the order from the first switching state to the second switching state, or the first switching state is switched from the second switching state to the first switching state.
  • Better to configure comprising a (fourth configuration); in the order of state, and a control circuit for determining whether to perform switching control of the switching circuit.
  • An electronic apparatus analyzes the movement of the target based on the magnetic sensor device having the first configuration, the target having a magnet, and the plurality of output signals output from the magnetic sensor device. And a analyzing device (fifth configuration).
  • the magnetic sensor device is arranged such that the plurality of magnetoelectric transducers integrated in the magnetic sensor device are arranged along the movement direction of the target.
  • An apparatus detects an output time difference from a change in the logic level of the first output signal output from the magnetic sensor device to a change in the logic level of the second output signal, and the difference between the output time difference and the predetermined element A configuration (sixth configuration) for calculating the motion speed of the target from the distance may be used.
  • the magnet includes a plurality of S-pole magnetic domains and N-pole magnetic domains alternately arranged along the movement direction of the target.
  • the magnetic sensor device includes: A configuration in which an alternating magnetic field is applied in accordance with the movement of the target (seventh configuration) is preferable.
  • the magnetic sensor device having the second configuration further includes an oscillator that outputs a reference clock signal having a predetermined frequency, and the control circuit operates based on the reference clock signal output from the oscillator. (Eighth configuration) is preferable.
  • the control circuit includes a start pulse signal generation circuit that generates a start pulse signal based on the reference clock signal, and the reference clock signal and the start pulse signal.
  • a shift register that sequentially receives the start pulse signal based on the reference clock signal, and outputs a first switching signal, a second switching signal, and a third switching signal based on the output of the shift register and the output signal.
  • a switching signal generation circuit to be generated (9th configuration) is preferable.
  • the output of the shift register may be configured to have a first timing signal and a second timing signal (tenth configuration).
  • each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting terminal.
  • a second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal of the operational amplifier and a predetermined reference voltage application terminal; and a third feedback resistor connected between the inverting input terminal and the output terminal of the second operational amplifier.
  • a fourth feedback resistor connected between the inverting input terminal of the second operational amplifier and a predetermined reference voltage application terminal (an eleventh structure).
  • each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting terminal.
  • a second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal and the output terminal of the operational amplifier, and a third feedback resistor connected between the inverting input terminal of the first operational amplifier and the inverting input terminal of the second operational amplifier.
  • a configuration including a feedback resistor (a twelfth configuration) is preferable.
  • the reference voltage generating circuit that generates the reference voltage includes a voltage dividing resistor that generates the reference voltage by dividing a power supply voltage, and the voltage dividing resistor.
  • a first transistor connected to the power supply voltage side and turned on / off in response to a predetermined control signal; and a first transistor connected to the ground side of the voltage dividing resistor and turned on / off in response to the control signal.
  • a configuration including two transistors (a thirteenth configuration) is preferable.
  • An electronic apparatus analyzes the movement of the target based on the magnetic sensor device having the second configuration described above, a target having a magnet, and the plurality of output signals output from the magnetic sensor device. And a analyzing device (fourteenth configuration).
  • An electronic apparatus analyzes the movement of the target based on the magnetic sensor device having the third configuration, a target having a magnet, and the plurality of output signals output from the magnetic sensor device. And a analyzing device (a fifteenth configuration).
  • An electronic apparatus analyzes the movement of the target based on the magnetic sensor device having the fourth configuration, a target having a magnet, and the plurality of output signals output from the magnetic sensor device. And an analyzing device (a sixteenth configuration).
  • the magnet includes a plurality of S-pole magnetic domains and N-pole magnetic domains alternately arranged along the movement direction of the target. Is preferably configured to apply an alternating magnetic field in accordance with the movement of the target (a seventeenth configuration).
  • each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting A second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal of the operational amplifier and a predetermined reference voltage application terminal; and a third feedback resistor connected between the inverting input terminal and the output terminal of the second operational amplifier. And a fourth feedback resistor connected between an inverting input terminal of the second operational amplifier and a predetermined reference voltage application terminal (an eighteenth structure).
  • each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting A second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal and the output terminal of the operational amplifier, and a third feedback resistor connected between the inverting input terminal of the first operational amplifier and the inverting input terminal of the second operational amplifier.
  • a configuration including a feedback resistor (a nineteenth configuration) is preferable.
  • the reference voltage generation circuit that generates the reference voltage includes a voltage dividing resistor that generates the reference voltage by dividing a power supply voltage, and the voltage dividing resistor.
  • a first transistor connected to the power supply voltage side and turned on / off in response to a predetermined control signal; and a first transistor connected to the ground side of the voltage dividing resistor and turned on / off in response to the control signal.
  • a configuration including the two transistors (a twentieth configuration) is preferable.
  • the mounting area on the set substrate can be reduced and the number of handling can be reduced, and the motion analysis accuracy of the target based on the output signal can be improved. Can be improved.
  • the schematic diagram which shows schematic structure of the magnetic sensor apparatus which concerns on this invention The block diagram which shows schematic structure of the internal circuit integrated in the magnetic sensor apparatus 1
  • the figure which shows the logic level change of the output signal with respect to the applied magnetic field (magnetic flux density) The schematic diagram which shows the 1st structural example of the electronic device using the magnetic sensor apparatus 1.
  • FIG. The schematic diagram which shows the 2nd structural example of the electronic device using the magnetic sensor apparatus 1.
  • FIG. Timing chart showing how the applied magnetic field and output signal change as the target 2 moves The figure which showed the specific structure of the internal circuit integrated in the magnetic sensor apparatus 1
  • the figure which shows the logic level change of the output signal with respect to the applied magnetic field (magnetic flux density) The schematic diagram which shows the 1
  • the figure which shows the example of 1 structure of the reference voltage generation circuit 100 The figure which shows the example of 1 structure of the logic circuit 61 Logic value table showing input / output logic of logic circuit 61
  • the figure which shows the example of 1 structure of the control circuit 80X Timing chart for explaining the operation of the magnetic sensor device 1 Flow chart for explaining the operation of the magnetic sensor device 1 Schematic diagram showing an example of a conventional electronic device using a magnetic sensor device
  • FIG. 1 is a schematic diagram showing a schematic configuration of a magnetic sensor device according to the present invention.
  • the top view of FIG. 1 shows a plan view of the magnetic sensor device 1 seen through from the upper surface side, and the bottom row shows a longitudinal sectional view of the magnetic sensor device 1 cut along the ⁇ - ⁇ ′ line.
  • the magnetic sensor device 1 according to the present invention is a semiconductor device (so-called Hall IC) having two Hall elements 10X and 10Y arranged with a predetermined inter-element distance d. .
  • the inter-element distance d may be appropriately designed so as to satisfy the specifications required for each application (for example, speed detection accuracy).
  • FIG. 2 is a block diagram showing a schematic configuration of an internal circuit integrated in the magnetic sensor device 1.
  • the magnetic sensor device 1 in addition to the hall elements 10X and 10Y, includes changeover switch circuits 20X and 20Y, amplifier circuits 30X and 30Y, sample hold circuits 40X and 40Y, and a comparison circuit. 50X and 50Y, latch circuits 60X and 60Y, output circuits 70X and 70Y, control circuits 80X and 80Y, and an oscillation circuit 90 are integrated in a single semiconductor chip.
  • the changeover switch circuit 20X, the amplifier circuit 30X, the sample hold circuit 40X, the comparison circuit 50X, the latch circuit 60X, the output circuit 70X, the control circuit 80X, and the oscillation circuit 90 have the magnetic field intensity detected by the Hall element 10X.
  • a first signal processing circuit that generates an output signal OUTX whose logic level changes according to the polarity is formed.
  • the changeover switch circuit 20Y, the amplifier circuit 30Y, the sample hold circuit 40Y, the comparison circuit 50Y, the latch circuit 60Y, the output circuit 70Y, the control circuit 80Y, and the oscillation circuit 90 are configured so that the intensity of the magnetic field detected by the Hall element 10Y or A second signal processing circuit for generating an output signal OUTY whose logic level changes according to the polarity is formed.
  • the oscillation circuit 90 is shared between the first signal processing circuit and the second signal processing circuit. With such a configuration, the circuit scale and power consumption can be reduced, and the generation timings of the output signals OUTX and OUTY can be synchronized with each other.
  • FIG. 3 is a diagram showing a change in logic level of the output signals OUTX and OUTY with respect to the applied magnetic field (magnetic flux density).
  • the output signals OUTX and OUTY are at a low level.
  • the output signals OUTX and OUTY are at a high level. In this way, the output signals OUTX and OUTY have a predetermined hysteresis width with respect to the applied magnetic field, and their logic levels change.
  • the magnetic sensor device 1 having the above-described configuration includes a magnetic sensor such as an open / close detection sensor of a foldable mobile phone terminal or a slide mobile phone terminal, a rotational position detection sensor or a rotational speed detection sensor of a motor, or a rotation operation detection sensor of a dial.
  • a magnetic sensor such as an open / close detection sensor of a foldable mobile phone terminal or a slide mobile phone terminal, a rotational position detection sensor or a rotational speed detection sensor of a motor, or a rotation operation detection sensor of a dial.
  • a sensor for detecting the state (magnetic field strength) and magnetic field polarity it can be used in a wide range of applications.
  • FIG. 4A and FIG. 4B are schematic diagrams each showing an example of the configuration of an electronic device using the magnetic sensor device 1, and each of the electronic devices shown in each figure is a magnetic sensor device 1 according to the present invention. And a target 2A to 2B having magnets, and an analysis device 3 for analyzing the motion of the targets 2A to 2B based on two systems of output signals OUTX and OUTY output from the magnetic sensor device 1.
  • the target 2A is rotationally driven at a rotational speed V, and the target 2B is slide-driven at a slide speed V.
  • both are collectively referred to as target 2.
  • the magnet provided on the target 2 has a plurality of magnetic domains of S poles and N poles alternately arranged along the moving direction (rotating direction or sliding direction) of the target 2. Therefore, an alternating magnetic field in which the N pole and the S pole are alternately switched with the movement of the target 2 (rotation driving or sliding driving) is applied to the magnetic sensor device 1.
  • the magnetic sensor device 1 is arranged on a set substrate so as to face the target 2 so that two Hall elements 10X and 10Y integrated with a predetermined inter-element distance d are aligned along the movement direction of the target 2. Arranged appropriately. 4A and 4B, the magnetic sensor device 1 is arranged so that the Hall element 10X is arranged on the upstream side and the Hall element 10Y is arranged on the downstream side with respect to the movement direction of the target 2.
  • FIG. 5 is a timing chart showing how the applied magnetic field and the output signal change as the target 2 moves.
  • the upper solid line indicates the time change of the applied magnetic field for the Hall element 10X
  • the broken line indicates the time change of the applied magnetic field for the Hall element 10Y.
  • the lower stage shows the time change of the output signals OUTX and OUTY.
  • the Hall element 10X arranged on the upstream side with respect to the movement direction of the target 2 is applied from the target 2 before the Hall element 10Y arranged on the downstream side. A change in polarity of the alternating magnetic field is detected. Therefore, an output time difference ⁇ t corresponding to the movement speed of the target 2 is generated from the change of the logic level of the output signal OUTX to the change of the logic level of the output signal OUTY.
  • the analysis device 3 detects an output time difference ⁇ t from when the logic level of the output signal OUTX output from the magnetic sensor device 1 changes until the logic level of the output signal OUTY changes, and this output time difference ⁇ t and a predetermined element Based on the distance d, the motion speed V (rotation speed or slide speed) of the target 2 is calculated based on the above equation (1).
  • the magnetic sensor device 1 As described above, in the case of an electronic apparatus using the magnetic sensor device 1 according to the present invention, it is sufficient to use only one magnetic sensor device 1 in order to detect the motion speed V of the target 2.
  • the mounting area can be reduced and the number of handlings can be reduced, which can contribute to the cost reduction of the product. It is also possible to increase the degree of freedom of set design.
  • the error of the inter-element distance d is an error caused by the exposure accuracy of the mask (reticle).
  • the detection sensitivity variation (relative error) for each of the Hall elements 10X and 10Y hardly needs to be considered. Therefore, if the electronic device uses the magnetic sensor device 1 according to the present invention, it is possible to detect the motion speed V of the target 2 with higher accuracy than in the conventional configuration using a plurality of magnetic sensor devices. It becomes.
  • the motion speed V of the target 2 can be detected widely from a low speed range to a high speed range.
  • FIG. 6 is a diagram showing a specific configuration of an internal circuit integrated in the magnetic sensor device 1, and shows a Hall element 10X and a first signal processing circuit (20X) that generates an output signal OUTX from its detection signal. ⁇ 80X, 90), and only the reference voltage generation circuit 100 is depicted.
  • the output circuit 70X is omitted, unlike the example of FIG.
  • the Hall element 10X is formed in a plate shape having a geometrically equivalent shape with respect to the four terminals A, C, B, and D.
  • the Hall voltage generated in the second terminal pair BD and the power supply voltage VDD are applied between the second terminal pair BD.
  • the Hall voltage generated at the first terminal pair CA is compared, the effective signal component corresponding to the strength of the magnetic field applied to the Hall element 10X is in phase, and the element offset component (element offset voltage) Is out of phase.
  • the changeover switch circuit 20X is a means for switching between a method for applying the power supply voltage VDD to the Hall element 10X and a method for extracting the Hall voltage from the Hall element 10X.
  • the changeover switch circuit 20X is turned on according to the logic of the switches 21, 23, 25, and 27 that are on / off controlled according to the logic of the first switching signal CTL1 and the second switching signal CTL2.
  • the switches 22, 24, 26, and 28 are controlled.
  • the switches 21, 23, 25, and 27 are turned on when the first switching signal CTL1 is at a high level, and are turned off when the first switching signal CTL1 is at a low level.
  • the switches 22, 24, 25, and 27 are turned on when the second switching signal CTL2 is at a high level, and turned off when the second switching signal CTL2 is at a low level.
  • the above signal logic is merely an example, and may be implemented with the reverse logic.
  • the first and second switching signals CTL1 and CTL2 are the first half of a period during which the power-on signal POW is at a high level (ie, corresponding to the sensing period of the magnetic sensor device 1) so that their logics do not match each other.
  • the first switching signal CTL1 is set to the high level in the second half (or the second half), and the second switching signal CTL2 is set to the high level in the second half (or the first half).
  • the power-on signal POW is intermittently set at a high level for a predetermined period, for example, at regular intervals.
  • the signal logic described above is merely an example, and the reverse logic may be used.
  • the power supply voltage VDD is applied to the terminal A, and the terminal C is connected to the ground.
  • a Hall voltage corresponding to the strength of the magnetic field is generated between B and the terminal D.
  • the voltage generated between the terminal B and the terminal D varies depending on the polarity of the applied magnetic field (direction of the magnetic field).
  • the voltage Vb at the terminal B is low, and the voltage Vd at the terminal D is Assume a high case. Note that the voltage represents a potential with respect to the ground unless otherwise specified.
  • the power supply voltage VDD is applied to the terminal B and the terminal D is connected to the ground.
  • a Hall voltage corresponding to the strength of the magnetic field is generated between the terminal C and the terminal A.
  • a magnetic field having the same polarity (direction) as that in the first switching state is applied even in the second switching state. Assuming that the voltage generated between the terminal C and the terminal A is such that the voltage Vc at the terminal C is low and the voltage Va at the terminal A is high.
  • the voltage at the first output terminal i of the changeover switch circuit 20X is the voltage Vb in the first switching state and the voltage Va in the second switching state.
  • the voltage of the second output terminal ii of the changeover switch circuit 20X is the voltage Vd in the first switching state and the voltage Vc in the second switching state.
  • the amplifier circuit 30X includes a first amplifier circuit 31 connected to the first output terminal i of the changeover switch circuit 20X, and a second amplifier circuit 32 connected to the second output terminal ii of the changeover switch circuit 20X. Become.
  • the first amplifier circuit 31 is means for amplifying an input voltage (voltage Vb to voltage Va) from the first output terminal i with a predetermined amplification degree ⁇ and outputting the amplified voltage from the first amplification output terminal iii as the first amplified voltage AOUT1. is there. Since the first amplifier circuit 31 has an input offset voltage Voffa1, the first amplifier circuit 31 adds the input offset voltage Voffa1 to the input voltage (voltage Vb to voltage Va). Then, a predetermined amplification process is performed.
  • the second amplifier circuit 32 is means for amplifying the input voltage (voltage Vd to voltage Vc) from the second output terminal ii with a predetermined amplification degree ⁇ and outputting the amplified voltage as the second amplified voltage AOUT2 from the second amplified output terminal iv. is there. Since the input offset voltage Voffa2 also exists in the second amplifier circuit 32, the second amplifier circuit 32 adds the input offset voltage Voffa2 to the input voltage (voltage Vd to voltage Vc). Then, a predetermined amplification process is performed.
  • the power supply voltage VDD is applied to the first and second amplifier circuits 31 and 32 constituting the amplifier circuit 30X via the switch circuit 34 and the switch circuit 35, respectively.
  • both the switch circuit 34 and the switch circuit 35 are on / off controlled according to the logic of the power-on signal POW.
  • the switch circuit 34 and the switch circuit 35 are turned on when the power-on signal POW is at a high level. It is turned off when it is at low level.
  • the amplifying circuit 30X is driven only for a predetermined period, for example, every fixed period intermittently in response to the high level transition of the power-on signal POW. Further, when the first and second amplifier circuits 31 and 32 are of the current drive type, a current source circuit with a switch function may be used as the switch circuit 34 and the switch circuit 35.
  • the sample and hold circuit 40X includes a first capacitor 41, a second capacitor 42, a first switch circuit 43, and a second switch circuit 44.
  • the first capacitor 41 is connected between the first amplification output terminal iii of the amplification circuit 30X and the first comparison input terminal v (non-inverting input terminal (+) of the comparator 51) of the comparison circuit 50X.
  • the second capacitor 42 is connected between the second amplification output terminal iv of the amplification circuit 30X and the second comparison input terminal vi (the inverting input terminal ( ⁇ ) of the comparator 51) of the comparison circuit 50X.
  • a first reference voltage Vref1 is supplied to the first comparison input terminal v of the comparison circuit 50X via the first switch circuit 43, and the second comparison input terminal vi is supplied to the first comparison input terminal v via the second switch circuit 44.
  • 2 Reference voltage Vref2 is supplied.
  • Both the first and second switch circuits 43 and 44 are on / off controlled in accordance with the logic of the third switching signal CTL3. In the present embodiment, when the third switching signal CTL3 is at a high level. On, and off when low.
  • the above signal logic is merely an example, and may be implemented with the reverse logic.
  • the comparison circuit 50X compares the first comparison voltage INC1 input to the first comparison input terminal v with the second comparison voltage INC2 input to the second comparison input terminal vi, and the first comparison voltage INC1 is the second comparison voltage INC1.
  • the comparison voltage INC2 is higher, the logic of the comparison result signal COUT is set to the high level, and when the first comparison voltage INC1 is lower than the second comparison voltage INC2, the logic of the comparison result signal COUT is set to the low level.
  • the comparison circuit 50X is configured to have an extremely high input impedance.
  • the input stage of the comparator 51 is composed of a MOS transistor circuit. As described above, since the magnetic sensor device 1 of the present embodiment includes the comparison circuit 50X, the magnetic sensor device 1 is less susceptible to the ripple of the power supply voltage VDD and noise, and a stable sensing operation is possible.
  • the power supply voltage VDD is applied to the comparator 51 through the switch circuit 52.
  • the switch circuit 52 is on / off controlled according to the logic of the power-on signal POW. In the present embodiment, the switch circuit 52 is turned on when the power-on signal POW is at a high level, and is switched on at a low level. Off.
  • the comparator 51 is driven intermittently, for example, for a predetermined period every fixed period in accordance with the high level transition of the power-on signal POW (and hence the low-level transition of the inverted power-on signal (/ POW)).
  • a current source circuit with a switch function may be used as the switch circuit 52.
  • the output terminal of the comparison circuit 50X (the output terminal of the comparator 51) is connected to the ground terminal via the switch circuit 53.
  • the switch circuit 53 is ON / OFF controlled in accordance with the logic of the inverted power supply ON signal (/ POW), and in this embodiment, when the inverted power supply ON signal (/ POW) is at a high level. Turned on and turned off when low level.
  • the comparison result signal COUT is forcibly set to the low level, so that the logical operation signal LOUT (and thus the signal generated by the latch circuit 60X at the subsequent stage is extended). It is possible to prevent an unintended logic transition from occurring in the output signal OUT).
  • the latch circuit 60X includes a logic circuit 61 and a D-type flip-flop 62.
  • the logic circuit 61 is means for generating a logical operation signal LOUT based on the comparison result signal COUT and the output signal OUT. The specific configuration and operation of the logic circuit 61 will be described in detail later.
  • the D-type flip-flop 62 is means for latching the logical operation signal LOUT obtained by the logic circuit 61 at the edge timing of the clock signal CLK_SH and outputting it as an output signal OUT (and thus the first output signal OUTX). is there.
  • an inverter stage or buffer is used as the output circuit 70X so that the strength or polarity of the magnetic field and the logic level of the output signal OUTX have a desired correlation.
  • a step or the like may be used as appropriate (see FIG. 2).
  • the control circuit 80X generates a power-on signal POW, an inverted power-on signal (/ POW), a clock signal CLK_SH, and a third switching signal CTL3 based on the reference clock signal OSC, and further receives an output signal OUT. In response to this, the first switching signal CTL1 and the second switching signal CTL2 are generated.
  • the specific configuration and operation of the control circuit 80X will be described in detail later.
  • the oscillation circuit 90 is means for generating a reference clock signal OSC having a predetermined frequency and supplying it to the control circuit 80X.
  • the reference voltage generation circuit 100 is means for generating a first reference voltage Vref1 and a second reference voltage Vref2 that is higher than the first reference voltage Vref1 by a predetermined value VREF.
  • the specific configuration of the reference voltage generation circuit 100 will be described in detail later.
  • FIG. 7 is a diagram illustrating a first configuration example of the amplifier circuit 30X.
  • the amplifier circuit 30X of this configuration example includes a first amplifier circuit 31A and a second amplifier circuit 32A.
  • the non-inverting input terminal (+) of the operational amplifier 31-1 is connected to the first output terminal i of the changeover switch circuit 20X.
  • a feedback resistor 31-2 is connected between the inverting input terminal ( ⁇ ) of the operational amplifier 31-1 and the first amplification output terminal iii.
  • a feedback resistor 31-3 is connected between the inverting input terminal ( ⁇ ) of the operational amplifier 31-1 and the application terminal of the reference voltage Vref0.
  • the first amplifying circuit 31A having the above configuration amplifies the voltage (voltage Vb to voltage Va) input from the first output terminal i of the changeover switch circuit 20X with a predetermined amplification degree ⁇ as a first amplified voltage AOUT1. Output from the first amplification output terminal iii.
  • the non-inverting input terminal (+) of the operational amplifier 32-1 is connected to the second output terminal ii of the changeover switch circuit 20X.
  • a feedback resistor 32-2 is connected between the inverting input terminal ( ⁇ ) of the operational amplifier 32-1 and the second amplification output terminal iv.
  • a feedback resistor 32-3 is connected between the inverting input terminal ( ⁇ ) of the operational amplifier 32-1 and the application terminal of the reference voltage Vref0.
  • the second amplifying circuit 32A having the above configuration amplifies the voltage (voltage Vd to voltage Vc) input from the second output terminal ii of the changeover switch circuit 20X with a predetermined amplification degree ⁇ to obtain a second amplified voltage AOUT2. Output from the second amplification output terminal iv.
  • the amplification factor ⁇ is about R2 / R1.
  • R2 >> R1.
  • FIG. 8 is a diagram illustrating a second configuration example of the amplifier circuit 30X.
  • the amplifier circuit 30X of this configuration example includes a first amplifier circuit 31B and a second amplifier circuit 32B.
  • the non-inverting input terminal (+) of the operational amplifier 31-1 is connected to the first output terminal i of the changeover switch circuit 20X.
  • a first feedback resistor 31-2 is connected between the inverting input terminal ( ⁇ ) of the operational amplifier 31-1 and the first amplification output terminal iii.
  • the non-inverting input terminal (+) of the operational amplifier 32-1 is connected to the second output terminal ii of the changeover switch circuit 20X.
  • a second feedback resistor 32-2 is connected between the inverting input terminal ( ⁇ ) of the operational amplifier 32-1 and the second amplification output terminal iv.
  • the third feedback resistor 33 is connected between the inverting input terminal ( ⁇ ) of the first operational amplifier 31-1 and the inverting input terminal ( ⁇ ) of the second operational amplifier 32-1.
  • the amplifier circuit 30X of the present configuration example is an amplifier circuit in which the first amplifier circuit 31B and the second amplifier circuit 32B share the third feedback resistor 33, that is, an amplifier circuit of a balanced input-balanced output format. .
  • the number of feedback resistors can be reduced compared to the amplifier circuit 30X of the first configuration example, and the reference voltages of the first and second amplifier circuits 31B and 32B are Since it is automatically set in the circuit, it is not necessary to set the reference voltage.
  • a voltage amplification gain can be greatly increased by adopting a balanced input-balanced output type using a specific configuration. That is, when the resistance value of the first and second feedback resistors 31-2 and 32-2 is R2, and the resistance value of the third feedback resistor 33 is R1, the amplification degree ⁇ is about 2 ⁇ R2 / R1. However, R2 >> R1. As described above, since the amplification degree ⁇ is doubled, the circuit design can be easily performed, and a Hall element having low sensitivity can be easily used.
  • the power supply voltage VDD necessary for driving the first amplifier circuits 31A and 31B may be supplied via the switch circuit 34 as in FIG. Further, the power supply voltage VDD necessary for driving the second amplifier circuits 32A and 32B may be supplied via the switch circuit 35 as in FIG.
  • FIG. 9 is a diagram illustrating a configuration example of the reference voltage generation circuit 100.
  • the reference voltage generation circuit 100 generates the first reference voltage Vref1 and the second reference voltage Vref2 by dividing the power supply voltage VDD by the voltage dividing resistors 100-1 to 100-3. These reference voltages are such that the P-type MOS transistor 100-4 connected to the power supply voltage VDD side of the voltage dividing resistors 100-1 to 100-3 and the N-type MOS transistor 100-5 connected to the ground side are turned on. It is generated when it is said.
  • the MOS transistors 100-4 and 100-5 are on / off controlled in accordance with the logic of the third switching signal CTL3 through the inverters 100-6 to 100-7. Instead of the third switching signal CTL3, on / off control of the MOS transistors 100-4 and 100-5 may be performed according to the logic of the power-on signal POW.
  • FIG. 10 is a diagram illustrating a configuration example of the logic circuit 61.
  • FIG. 11 is a logic value table showing the input / output logic of the logic circuit 61.
  • the logic circuit 61 includes inverters 61-1 and 61-2, AND operation units 61-3 and 61-4, and an OR operation unit 61-5.
  • the input terminal of the inverter 61-1 is connected to the application terminal of the output signal OUT.
  • the input end of the inverter 61-2 is connected to the application end of the comparison result signal COUT.
  • One input terminal of the AND operator 61-3 is connected to the output terminal of the inverter 61-1.
  • the other input terminal of the AND operator 61-3 is connected to the application terminal of the comparison result signal COUT.
  • One input terminal of the AND operator 61-4 is connected to the application terminal of the output signal OUT.
  • the other input terminal of the AND operator 61-4 is connected to the output terminal of the inverter 61-2.
  • One input terminal of the logical sum calculator 61-5 is connected to the output terminal of the logical product calculator 61-3.
  • the other input terminal of the logical sum calculator 61-5 is connected to the output terminal of the logical product calculator 61-4.
  • the output terminal of the logical sum calculator 61-5 is connected to the data input terminal (not shown in FIG. 10) of the D-type flip-flop 62 as a lead-out terminal for the logical operation signal LOUT.
  • the logic operation signal LOUT when both the output signal OUT and the comparison result signal COUT are at a low level, the logic operation signal LOUT is at a low level.
  • the logic operation signal LOUT is set to a high level.
  • the logical operation signal LOUT is set to a high level.
  • the output signal OUT and the comparison result signal are both at the high level, the logical operation signal LOUT is at the low level.
  • control circuit 80X Next, the configuration and operation of the control circuit 80X will be described in detail with reference to FIGS.
  • FIG. 12 is a diagram illustrating a configuration example of the control circuit 80X.
  • FIG. 13 is a timing chart for explaining the operation of the magnetic sensor device 1 according to the present invention.
  • the control circuit 80X of this configuration example includes a start pulse signal generation circuit 81, a shift register 82, an OR calculator 83, inverters 84 and 85, and a switching signal generation circuit 86. Have.
  • the start pulse generation circuit 81 is means for generating one pulse every time the number of pulses of the reference clock signal OSC reaches a predetermined value (for example, 32) and outputting this as a start pulse signal SIG (see FIG. 13). .
  • the shift register 82 receives the input of the reference clock signal OSC and the start pulse signal SIG, and sequentially takes in the start pulse signal SIG while shifting the start pulse signal SIG for each pulse of the reference clock signal OSC. These register data are respectively output as a first timing signal S1 and a second timing signal S2. That is, as shown in FIG. 13, when a pulse is generated in the start pulse signal SIG, first, a pulse is generated in the first timing signal S1, and then a pulse is generated in the second timing signal S2, in synchronization with the reference clock signal OSC. .
  • the logical sum calculator 83 is means for performing a logical sum operation of the first timing signal S1 and the second timing signal S2 to generate a power-on signal POW (see FIG. 13).
  • the inverter 84 is a means for generating an inverted power-on signal (/ POW) (not shown in FIG. 13) by inverting the logic of the power-on signal POW.
  • the inverter 85 is means for generating the clock signal CLK_SH (see FIG. 13) by inverting the logic of the second timing signal S2.
  • the switching signal generation circuit 86 receives the first timing signal S1 and the second timing signal S2 and the output signal OUT, and generates the first switching signal CTL1, the second switching signal CTL2, and the third switching signal CTL3. And includes AND operation units 86-1 to 86-4, OR operation units 96-5 and 86-6, and an inverter 86-7.
  • One input terminal of the AND operator 86-1 is connected to the application terminal of the first timing signal S1.
  • the other input terminal of the AND operator 86-1 is connected to the output terminal of the inverter 86-7.
  • One input terminal of the AND operator 86-2 is connected to the application terminal of the second timing signal S2.
  • the other input terminal of the AND operator 86-2 is connected to the application terminal of the output signal OUT.
  • One input terminal of the AND operator 86-3 is connected to the application terminal of the second timing signal S2.
  • the other input terminal of the AND operator 86-3 is connected to the output terminal of the inverter 86-7.
  • One input terminal of the AND operator 86-4 is connected to the application terminal of the first timing signal S1.
  • the other input terminal of the AND operator 86-4 is connected to the application terminal of the output signal OUT.
  • One input terminal of the logical sum calculator 86-5 is connected to the output terminal of the logical product calculator 86-1.
  • the other input terminal of the logical sum calculator 86-5 is connected to the output terminal of the logical product calculator 86-2.
  • the output terminal of the logical sum calculator 86-5 is connected to the changeover switch circuit 20X (not shown in FIG. 12) as a lead-out terminal for the first switching signal CTL1.
  • One input terminal of the logical sum calculator 86-6 is connected to the output terminal of the logical product calculator 86-3.
  • the other input terminal of the logical sum calculator 86-6 is connected to the output terminal of the logical product calculator 86-4.
  • the output terminal of the logical sum calculator 86-6 is connected to the changeover switch circuit 20X (not shown in FIG. 12) as a lead-out terminal for the second switching signal CTL2.
  • the input end of the inverter 86-7 is connected to the application end of the output signal OUT.
  • the switching signal generation circuit 86 configured as described above outputs the logical sum operation signal obtained by the logical sum operation unit 86-5 as the first switching signal CTL1, and the logical sum operation signal obtained by the logical sum operation unit 86-6. Is output as the second switching signal CTL2.
  • the switching signal generation circuit 86 is configured to output the first timing signal S1 as it is as the third switching signal CTL3, and the application terminal of the first timing signal S1 is used as the extraction terminal of the third switching signal CTL3.
  • the switch circuit 43 and the second switch circuit 44 are connected.
  • the power-on signal POW is intermittently set to the high level
  • the power supply voltage is intermittently applied to each part of the magnetic sensor device 1 (specifically, main units such as the amplifier circuit 30X and the comparison circuit 50X).
  • the detection operation can be performed when VDD is supplied.
  • an electronic device for example, a battery-powered mobile phone
  • Power consumption can be significantly reduced.
  • the period for setting the power-on signal POW to the high level and the high-level period of the power-on signal POW may be set to an appropriate time length according to the application to which the magnetic sensor device 1 is applied.
  • the magnetic sensor device 1 may be configured to operate continuously rather than intermittently.
  • the reference In synchronization with the rising edge of the clock signal OSC first, the first switching signal CTL1 and the third switching signal CTL3 are set to the high level.
  • the changeover switch circuit 20X enters the first switching state. Further, since the third switching signal CTL3 is set to the high level, the first switch circuit 43 and the second switch circuit 44 are turned on.
  • the changeover switch circuit 20X In response to the high-level transition of the first switching signal CTL1, the changeover switch circuit 20X is set to the first switching state, so that the terminals A and C, which are the first terminal pair of the Hall element 10X, are respectively supplied with the power supply voltage VDD. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals B and D as the second terminal pair. At this time, the voltage Vb is generated at the terminal B, and the voltage Vd is generated at the terminal D.
  • is the amplification degree of the amplifier circuit 30X
  • Voffa1 and Voffa2 are input offset voltages of the first amplifier circuit 31 and the second amplifier circuit 32, respectively.
  • the first reference input terminal v of the comparison circuit 50X has a first reference input v.
  • the voltage Vref1 is applied, and the second reference voltage Vref2 is applied to the second comparison input terminal vi.
  • the first capacitor 41 is charged with a voltage difference (Vref1- ⁇ (Vb-Voffa1)) between the first reference voltage Vref1 and the first amplified voltage AOUT1.
  • the second capacitor 42 is charged with a difference voltage (Vref2- ⁇ (Vd ⁇ Voffa2)) between the second reference voltage Vref2 and the second amplified voltage AOUT2.
  • the first switching signal CTL1 and the third switching signal CTL3 are set to the low level and the second switching signal CTL2 is set to the high level in synchronization with the rising edge of the next incoming reference clock signal OSC. Level.
  • the changeover switch circuit 20X enters the second switching state.
  • the third switching signal CTL3 is set to the low level, both the first switch circuit 43 and the second switch circuit 44 are turned off.
  • the changeover switch circuit 20X is set to the second switching state, so that the power supply voltage VDD is applied to the terminals B and D, which are the second terminal pair of the Hall element 10X, respectively. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals C and A, which is the first terminal pair. At this time, the voltage Vc is generated at the terminal C, and the voltage Va is generated at the terminal A.
  • the first and second comparison voltages INC1 and INC2 do not include the input offset voltages Voffa1 and Voffa2. That is, the input offset voltages Voffa1 and Voffa2 are canceled through the operations in the first switching state and the second switching state.
  • the comparison circuit 50X a comparison process between the first comparison voltage INC1 and the second comparison voltage INC2 is performed.
  • the comparison result signal COUT is high. Level.
  • the comparison result signal COUT is at a low level. Maintained.
  • the difference voltage between the first and second comparison voltages INC1 and INC2 to be compared in the comparison circuit 50X is expressed by the following equation (4).
  • INC1-INC2 Vref1-Vref2- ⁇ (Vb ⁇ Va) + ⁇ (Vd ⁇ Vc) ... (4)
  • the Hall voltage generated from the Hall element 10X includes a signal component voltage and an element offset voltage proportional to the strength of the magnetic field.
  • the effective signal component corresponding to the strength of the magnetic field is in phase with the voltage generated between the terminals B and D in the first switching state of the Hall element 10X and the voltage generated between the terminals C and A in the second switching state.
  • the element offset voltage is in reverse phase.
  • Vboffe-Vaoffe Vdoffe-Vcoffe (5)
  • the above equation (5) indicates that the element offset voltage is canceled in the comparison between the first comparison voltage INC1 and the second comparison voltage INC2 according to the above equation (4).
  • the logic circuit 61 generates a logical operation signal LOUT based on the comparison result signal COUT obtained above and the output signal OUT currently output.
  • the D-type flip-flop 62 latches the logical operation signal LOUT generated by the logic circuit 61 in synchronization with the rising edge of the clock signal CLK_SH, and outputs this as the output signal OUT. Accordingly, in (1) of FIG. 13, the output signal OUT is switched from the high level to the low level, and in (4) of FIG. 13, the output signal OUT is maintained at the high level.
  • the changeover switch circuit 20X is set to the second switching state, so that the power supply voltage VDD is applied to the terminals B and D, which are the second terminal pair of the Hall element 10X, respectively. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals C and A, which is the first terminal pair. At this time, the voltage Vc is generated at the terminal C, and the voltage Va is generated at the terminal A.
  • the first reference input terminal v of the comparison circuit 50X has a first reference input v.
  • the voltage Vref1 is applied, and the second reference voltage Vref2 is applied to the second comparison input terminal vi.
  • the first capacitor 41 is charged with a voltage difference (Vref1- ⁇ (Va-Voffa1)) between the first reference voltage Vref1 and the first amplified voltage AOUT1.
  • the second capacitor 42 is charged with a difference voltage (Vref2 ⁇ (Vc ⁇ Voffa2)) between the second reference voltage Vref2 and the second amplified voltage AOUT2.
  • the second switching signal CTL2 and the third switching signal CTL3 are set to the low level, and the first switching signal CTL1 is set to the high level. Level.
  • the switch circuit 20X enters the first switch state. Further, since the third switching signal CTL3 is set to the low level, both the first switch circuit 43 and the second switch circuit 44 are turned off.
  • the changeover switch circuit 20X In response to the high-level transition of the first switching signal CTL1, the changeover switch circuit 20X is set to the first switching state, so that the terminals A and C, which are the first terminal pair of the Hall element 10X, are respectively supplied with the power supply voltage VDD. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals B and D as the second terminal pair. At this time, the voltage Vb is generated at the terminal B, and the voltage Vd is generated at the terminal D.
  • the first and second comparison voltages INC1 and INC2 do not include the input offset voltages Voffa1 and Voffa2. That is, the input offset voltages Voffa1 and Voffa2 are canceled through the operations in the second switching state and the first switching state.
  • the comparison circuit 50X a comparison process between the first comparison voltage INC1 and the second comparison voltage INC2 is performed.
  • the comparison result signal COUT is high. Level.
  • the S pole signal is input to the magnetic sensor device 1 and the first comparison voltage INC1 is lower than the second comparison voltage INC2, the comparison result signal COUT is at a low level.
  • the differential voltage between the first and second comparison voltages INC1 and INC2 to be compared in the comparison circuit 50X is expressed by the following equation (8).
  • INC1-INC2 Vref1-Vref2- ⁇ (Va ⁇ Vb) + ⁇ (Vc ⁇ Vd) ... (8)
  • the Hall voltage generated from the Hall element 10X includes a signal component voltage and an element offset voltage proportional to the strength of the magnetic field.
  • the effective signal component according to the strength of the magnetic field is in phase with the voltage generated between the terminals B and D in the first switching state of the Hall element 10X and the voltage generated between the terminals C and A in the second switching state.
  • the element offset voltage is in reverse phase.
  • the above equation (9) indicates that the element offset voltage is canceled in the comparison between the first comparison voltage INC1 and the second comparison voltage INC2 according to the above equation (8).
  • the logic circuit 61 generates a logical operation signal LOUT based on the comparison result signal COUT obtained above and the output signal OUT currently output.
  • the D-type flip-flop 62 latches the logical operation signal LOUT generated by the logic circuit 61 in synchronization with the rising edge of the clock signal CLK_SH, and outputs this as the output signal OUT. Accordingly, in (3) of FIG. 13, the output signal OUT is switched from the low level to the high level, and in (2) of FIG. 13, the output signal OUT is maintained at the low level.
  • FIG. 14 is a flowchart for explaining the operation of the magnetic sensor device 1 according to the present invention.
  • step S1 When detecting the alternating magnetic field, in step S1, it is determined whether the output signal OUT is at a high level or a low level. If it is determined that the output signal OUT is at a high level, the flow proceeds to step S2. On the other hand, if it is determined that the output signal OUT is at a low level, the flow proceeds to step S6.
  • step S2 If it is determined in step S1 that the output signal OUT is at a high level, in step S2, the current situation is that after the detection of the N pole signal, the S pole signal should be detected next.
  • the switching control of the changeover switch circuit 20X is performed in the order from the first switching state to the second switching state, and the first comparison signal INC1 thus obtained and the second comparison signal are compared. Comparison processing with the signal INC2 (comparison processing between the difference voltage between them and the reference voltage VREF) is performed.
  • step S3 it is determined whether the comparison result signal COUT is at a high level or a low level.
  • the flow proceeds to step S4.
  • the flow proceeds to step S5.
  • step S3 when it is determined that the comparison result signal COUT is at the high level, in step S4, the output signal OUT is changed from the high level to the low level with the recognition that the S pole signal has been detected. Thereafter, the flow returns to step S1.
  • step S5 when it is determined in step S3 that the comparison result signal COUT is at the low level, in step S5, the output signal OUT is maintained at the high level with the recognition that the S pole signal has not been detected. Thereafter, the flow returns to step S1.
  • step S6 If it is determined in step S1 that the output signal OUT is at a low level, in step S6, the current situation is after detection of the S pole signal, and the state where the N pole signal should be detected next. With the recognition that there is, the switching control of the changeover switch circuit 20X is performed in the order from the second switching state to the first switching state in order to amplify the N pole signal, and the first comparison signal INC1 thus obtained and the first switching signal are obtained. Comparison processing with the two comparison signals INC2 (comparison processing between the difference voltage between them and the reference voltage VREF) is performed.
  • step S7 it is determined whether the comparison result signal COUT is at a high level or a low level.
  • the flow proceeds to step S8.
  • the flow proceeds to step S9.
  • step S8 If it is determined in step S7 that the comparison result signal COUT is at a high level, in step S8, the output signal OUT is transitioned from a low level to a high level with the recognition that an N pole signal has been detected. Thereafter, the flow returns to step S1.
  • step S9 when it is determined in step S7 that the comparison result signal COUT is at the low level, in step S9, the output signal OUT is maintained at the low level with the recognition that the N pole signal has not been detected. Thereafter, the flow returns to step S1.
  • the magnetic sensor device 1 generates a logical output signal OUT corresponding to the detected polarity (S pole / N pole) of a magnetic field, and includes a Hall element 10X; A changeover switch circuit 20X that switches the detection state of 10X to one of the first switching state and the second switching state; a predetermined comparison process is performed using the detection voltage of the Hall element 10X and a predetermined reference voltage; A comparison circuit 50X that generates a corresponding comparison result signal COUT; and a logic circuit 61 that generates a logical operation signal LOUT for maintaining or inverting the logic of the output signal OUT based on the output signal OUT and the comparison result signal COUT; A D flip-flop 62 that latches the logical operation signal LOUT and outputs it as an output signal OUT; from the first switching state based on the output signal OUT; A control circuit 80X that determines whether to perform switching control of the changeover switch circuit 20X in the order of the two switching states or to perform switching control of the change
  • the polarity of the reference voltage VREF applied between the input terminals of the comparison circuit 50X is unchanged regardless of whether the S pole signal or the N pole signal is detected, while the first.
  • the non-inverting input terminal (+) and the inverting input of the comparison circuit 50X are temporarily assumed.
  • the detected magnetic field level for detecting the S pole signal and the detected magnetic field level for detecting the N pole signal are compared with each other even when a comparative offset voltage exists between the terminal ( ⁇ ) and the terminal ( ⁇ ).
  • the amount corresponding to the voltage fluctuates with the same tendency. In other words, considering the subtraction of the two, it is possible to cancel the influence of the comparison offset voltage and to give symmetry to the magnetic field detection level of the alternating magnetic field detection.
  • the duty ratio of the pulse appearing in the output signal OUT can be set to an ideal value (50%), it is possible to provide a user-friendly magnetic sensor device.
  • an alternating magnetic field detection type magnetic sensor device can be obtained by diverting only the logic portion (logic circuit or control circuit) by diverting the circuit configuration based on the conventional switch type magnetic sensor device. Therefore, development costs can be reduced.
  • the polarity switching switch for the reference voltage VREF is not necessary.
  • the configuration using a Hall element as the magnetoelectric conversion element has been described as an example.
  • the magnetoelectric conversion element the electrical characteristics are changed according to the change of the applied magnetic field.
  • a magnetoresistive element or the like may be used in addition to the Hall element.
  • the magnetic sensor device 1 is described as an alternating magnetic field detection type as an example.
  • the configuration of the present invention is not limited to this, and the magnetic sensor device 1 is a single unit. It may be a polar magnetic field detection type.
  • the structure of this invention is not limited to this, A magnet is made stationary.
  • the target having the magnetic sensor device may be movable.
  • the magnetic sensor device according to the present invention can be suitably used, for example, for all applications (mobile phone, digital still camera, digital video camera, etc.) having magnets that are driven to rotate or slide.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Measuring Magnetic Variables (AREA)
  • Hall/Mr Elements (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

Provided is a magnetic sensor device (1) comprising the following integrated on a single semiconductor chip: a plurality of electromagnetic transducers (10X, 10Y) separated by a prescribed inter-element distance d; and a first signal-processing circuit (20X-80X, 90) and second signal-processing circuit (20Y-80Y, 90) that generate, respectively, a plurality of output signals (OUTX, OUTY), the logic levels of which change, respectively, in accordance with magnetic field strengths or polarities detected by the plurality of electromagnetic transducers (10X, 10Y).

Description

磁気センサ装置及びこれを用いた電子機器Magnetic sensor device and electronic apparatus using the same
 本発明は、磁電変換素子(ホール素子や磁気抵抗素子など)を用いて、これが設置された場所の磁界を検知し、その強度ないしは極性(S極/N極)に応じた論理レベルの出力信号を生成する磁気センサ装置、及び、これを用いた電子機器に関するものである。 The present invention uses a magnetoelectric conversion element (such as a Hall element or a magnetoresistive element) to detect a magnetic field where it is installed, and outputs an output signal having a logic level corresponding to its strength or polarity (S pole / N pole). The present invention relates to a magnetic sensor device that generates a magnetic field, and an electronic device using the same.
 図15は、磁気センサ装置を用いた電子機器の一従来例を示す模式図である。本従来例の電子機器は、ホール素子を各々1つしか有しない磁気センサ装置(ホールIC)100X、100Yを2つ用い、各々の出力信号OUTX、OUTYを解析装置300で解析することで、ターゲット(円形磁石)200の回転速度Vを算出する構成とされていた。 FIG. 15 is a schematic diagram showing a conventional example of an electronic apparatus using a magnetic sensor device. The electronic apparatus according to the conventional example uses two magnetic sensor devices (Hall ICs) 100X and 100Y each having only one Hall element, and analyzes each output signal OUTX and OUTY with the analysis device 300, whereby a target is obtained. It was set as the structure which calculates the rotational speed V of (circular magnet) 200.
 なお、磁気センサ装置100X、100Y相互間の距離(すなわち、磁気センサ装置100X、100Yに各々集積化されたホール素子相互間の距離)をdとし、出力信号OUTXの論理レベルが変化してから出力信号OUTYの論理レベルが変化するまでの出力時間差をΔtとした場合、ターゲット200の回転速度Vは、下記の(1)式で算出することができる。 Note that the distance between the magnetic sensor devices 100X and 100Y (that is, the distance between the Hall elements integrated in the magnetic sensor devices 100X and 100Y) is d, and output after the logic level of the output signal OUTX changes. When the output time difference until the logic level of the signal OUTY changes is Δt, the rotation speed V of the target 200 can be calculated by the following equation (1).
 V=d/Δt … (1) V = d / Δt (1)
 なお、上記に関連する従来技術の一例としては、本願出願人によって開示・提案されている特許文献1を挙げることができる。 In addition, as an example of the related art related to the above, Patent Document 1 disclosed and proposed by the applicant of the present application can be cited.
特開2009-2851号公報JP 2009-28551 A
 しかしながら、上記従来構成の電子機器では、ターゲット200の回転速度Vを検出するために、2つの磁気センサ装置100X、100Yを用いる必要があるので、セット基板上における実装面積の拡大やハンドリング数(セット基板への実装に係る工程数)の増大を招くという問題があった。 However, in the electronic apparatus having the above-described conventional configuration, it is necessary to use the two magnetic sensor devices 100X and 100Y in order to detect the rotational speed V of the target 200. Therefore, the mounting area on the set substrate is increased and the number of handling (set) There has been a problem in that the number of steps related to mounting on the substrate is increased.
 また、上記従来構成の電子機器では、磁気センサ装置100X、100Yの実装位置ばらつき(延いては、磁気センサ装置100X、100Yに各々集積化されたホール素子相互間の距離ばらつき)に起因して、回転速度Vの検出誤差が生じるという問題もあった。 In addition, in the electronic apparatus having the above-described conventional configuration, due to variations in mounting positions of the magnetic sensor devices 100X and 100Y (and, therefore, variations in distance between Hall elements integrated in the magnetic sensor devices 100X and 100Y), There was also a problem that a detection error of the rotational speed V occurred.
 また、上記従来構成の電子機器では、磁気センサ装置100X、100Yそれぞれの検出感度ばらつき(ウェハ面内ないしウェハロット間の製造ばらつき)に起因して、回転速度Vの検出誤差が生じるという問題もあった。 Further, in the electronic apparatus having the above-described conventional configuration, there is a problem that a detection error of the rotation speed V occurs due to variations in detection sensitivity of each of the magnetic sensor devices 100X and 100Y (manufacturing variations within a wafer surface or between wafer lots). .
 本発明は、本願の発明者が見い出した上記の問題点に鑑み、セット基板上における実装面積の縮小やハンドリング数の削減を実現し、さらに、その出力信号に基づくターゲットの運動解析精度を向上することが可能な磁気センサ装置及びこれを用いた電子機器を提供することを目的とする。 In view of the above-mentioned problems found by the inventors of the present application, the present invention realizes reduction of the mounting area on the set substrate and reduction of the number of handling, and further improves the accuracy of target motion analysis based on the output signal. It is an object of the present invention to provide a magnetic sensor device that can be used and an electronic device using the same.
 上記の目的を達成するために、本発明に係る磁気センサ装置は、所定の素子間距離を隔てて配置された複数の磁電変換素子と;前記複数の磁電変換素子で各々検知された磁界の強度ないしは極性に応じて各々の論理レベルが変化する複数の出力信号を各々生成する複数の信号処理回路と;を単一の半導体チップ内に集積化して成る構成(第1の構成)とされている。 In order to achieve the above object, a magnetic sensor device according to the present invention includes a plurality of magnetoelectric transducers arranged at a predetermined inter-element distance; and the intensity of a magnetic field detected by each of the plurality of magnetoelectric transducers. Or a plurality of signal processing circuits that respectively generate a plurality of output signals whose logic levels change according to the polarity; and are integrated in a single semiconductor chip (first configuration). .
 なお、上記第1の構成から成る磁気センサ装置において、前記複数の信号処理回路は、それぞれ、前記磁電変換素子の検出状態を第1、第2切替状態のいずれか一に切り替える切替スイッチ回路と;前記磁電変換素子の検出電圧と所定の基準電圧を用いて所定の比較処理を行い、その結果に応じた比較結果信号を生成する比較回路と;前記出力信号と前記比較結果信号に基づいて、前記出力信号の論理を維持または反転するための論理演算信号を生成する論理回路と;前記論理演算信号をラッチし、これを前記出力信号として出力するD型フリップフロップと;前記出力信号に基づいて、前記第1切替状態から前記第2切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うか、或いは、前記第2切替状態から前記第1切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うかを決定する制御回路と;を有して成る構成(第2の構成)にするとよい。 In the magnetic sensor device having the first configuration, each of the plurality of signal processing circuits is a changeover switch circuit that switches the detection state of the magnetoelectric conversion element to one of the first and second switching states; A comparison circuit that performs a predetermined comparison process using a detection voltage of the magnetoelectric conversion element and a predetermined reference voltage, and generates a comparison result signal according to the result; and based on the output signal and the comparison result signal, A logic circuit that generates a logic operation signal for maintaining or inverting the logic of the output signal; a D-type flip-flop that latches the logic operation signal and outputs it as the output signal; and based on the output signal, The switching control of the selector switch circuit is performed in the order from the first switching state to the second switching state, or the first switching state is switched from the second switching state to the first switching state. Better to configure comprising a (second configuration); in the order of state, and a control circuit for determining whether to perform switching control of the switching circuit.
 また、上記第1の構成から成る磁気センサ装置において、前記複数の磁電変換素子は、いずれもホール素子である構成(第3の構成)にするとよい。 Further, in the magnetic sensor device having the first configuration, the plurality of magnetoelectric transducers may be configured to be Hall elements (third configuration).
 また、上記第3の構成から成る磁気センサ装置において、前記複数の信号処理回路は、それぞれ、前記磁電変換素子の検出状態を第1、第2切替状態のいずれか一に切り替える切替スイッチ回路と;前記磁電変換素子の検出電圧と所定の基準電圧を用いて所定の比較処理を行い、その結果に応じた比較結果信号を生成する比較回路と;前記出力信号と前記比較結果信号に基づいて、前記出力信号の論理を維持または反転するための論理演算信号を生成する論理回路と;前記論理演算信号をラッチし、これを前記出力信号として出力するD型フリップフロップと;前記出力信号に基づいて、前記第1切替状態から前記第2切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うか、或いは、前記第2切替状態から前記第1切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うかを決定する制御回路と;を有して成る構成(第4の構成)にするとよい。 Further, in the magnetic sensor device having the third configuration, each of the plurality of signal processing circuits is a changeover switch circuit that switches the detection state of the magnetoelectric conversion element to one of the first and second switching states; A comparison circuit that performs a predetermined comparison process using a detection voltage of the magnetoelectric conversion element and a predetermined reference voltage, and generates a comparison result signal according to the result; and based on the output signal and the comparison result signal, A logic circuit that generates a logic operation signal for maintaining or inverting the logic of the output signal; a D-type flip-flop that latches the logic operation signal and outputs it as the output signal; and based on the output signal, The switching control of the selector switch circuit is performed in the order from the first switching state to the second switching state, or the first switching state is switched from the second switching state to the first switching state. Better to configure comprising a (fourth configuration); in the order of state, and a control circuit for determining whether to perform switching control of the switching circuit.
 また、本発明に係る電子機器は、上記第1の構成から成る磁気センサ装置と、磁石を有するターゲットと、前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、を有して成る構成(第5の構成)とされている。 An electronic apparatus according to the present invention analyzes the movement of the target based on the magnetic sensor device having the first configuration, the target having a magnet, and the plurality of output signals output from the magnetic sensor device. And a analyzing device (fifth configuration).
 なお、上記第5の構成から成る電子機器において、前記磁気センサ装置は、自身に集積化された前記複数の磁電変換素子が前記ターゲットの運動方向に沿って並ぶように配置されており、前記解析装置は、前記磁気センサ装置から出力される第1出力信号の論理レベルが変化してから第2出力信号の論理レベルが変化するまでの出力時間差を検出し、前記出力時間差と前記所定の素子間距離から前記ターゲットの運動速度を算出する構成(第6の構成)にするとよい。 In the electronic apparatus having the fifth configuration, the magnetic sensor device is arranged such that the plurality of magnetoelectric transducers integrated in the magnetic sensor device are arranged along the movement direction of the target. An apparatus detects an output time difference from a change in the logic level of the first output signal output from the magnetic sensor device to a change in the logic level of the second output signal, and the difference between the output time difference and the predetermined element A configuration (sixth configuration) for calculating the motion speed of the target from the distance may be used.
 また、上記第5の構成から成る電子機器において、前記磁石は、前記ターゲットの運動方向に沿って交互に並ぶS極の磁区とN極の磁区を複数有して成り、前記磁気センサ装置には、前記ターゲットの運動に伴って交番磁界が印加される構成(第7の構成)にするとよい。 Further, in the electronic apparatus having the fifth configuration, the magnet includes a plurality of S-pole magnetic domains and N-pole magnetic domains alternately arranged along the movement direction of the target. The magnetic sensor device includes: A configuration in which an alternating magnetic field is applied in accordance with the movement of the target (seventh configuration) is preferable.
 また、上記第2の構成から成る磁気センサ装置は、所定周波数の基準クロック信号を出力する発振器をさらに有し、前記制御回路は、前記発振器から出力される前記基準クロック信号に基づいて動作する構成(第8の構成)にするとよい。 The magnetic sensor device having the second configuration further includes an oscillator that outputs a reference clock signal having a predetermined frequency, and the control circuit operates based on the reference clock signal output from the oscillator. (Eighth configuration) is preferable.
 また、上記第8の構成から成る磁気センサ装置において、前記制御回路は、前記基準クロック信号に基づいてスタートパルス信号を生成するスタートパルス信号生成回路と、前記基準クロック信号と前記スタートパルス信号とが入力され、前記基準クロック信号に基づいて前記スタートパルス信号を順次取り込むシフトレジスタと、前記シフトレジスタの出力と前記出力信号に基づいて第1切替信号、第2切替信号、及び、第3切替信号を生成する切替信号生成回路と、を含む構成(第9の構成)にするとよい。 In the magnetic sensor device having the eighth configuration, the control circuit includes a start pulse signal generation circuit that generates a start pulse signal based on the reference clock signal, and the reference clock signal and the start pulse signal. A shift register that sequentially receives the start pulse signal based on the reference clock signal, and outputs a first switching signal, a second switching signal, and a third switching signal based on the output of the shift register and the output signal. A switching signal generation circuit to be generated (9th configuration) is preferable.
 また、上記第9の構成から成る磁気センサ装置において、前記シフトレジスタの出力は、第1タイミング信号と第2タイミング信号から成る構成(第10の構成)にするとよい。 Also, in the magnetic sensor device having the ninth configuration, the output of the shift register may be configured to have a first timing signal and a second timing signal (tenth configuration).
 また、上記第2の構成から成る磁気センサ装置において、前記複数の信号処理回路は、それぞれ、非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、前記第1演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第2帰還抵抗と、前記第2演算増幅器の反転入力端と出力端との間に接続された第3帰還抵抗と、前記第2演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第4帰還抵抗と、を含む構成(第11の構成)にするとよい。 Further, in the magnetic sensor device having the second configuration, each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting terminal. A second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal of the operational amplifier and a predetermined reference voltage application terminal; and a third feedback resistor connected between the inverting input terminal and the output terminal of the second operational amplifier. And a fourth feedback resistor connected between the inverting input terminal of the second operational amplifier and a predetermined reference voltage application terminal (an eleventh structure).
 また、上記第2の構成から成る磁気センサ装置において、前記複数の信号処理回路は、それぞれ、非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、前記第2演算増幅器の反転入力端と出力端との間に接続された第2帰還抵抗と、前記第1演算増幅器の反転入力端と前記第2演算増幅器の反転入力端との間に接続された第3帰還抵抗と、を含む構成(第12の構成)にするとよい。 Further, in the magnetic sensor device having the second configuration, each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting terminal. A second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal and the output terminal of the operational amplifier, and a third feedback resistor connected between the inverting input terminal of the first operational amplifier and the inverting input terminal of the second operational amplifier. A configuration including a feedback resistor (a twelfth configuration) is preferable.
 また、上記第2の構成から成る磁気センサ装置において、前記基準電圧を生成する基準電圧生成回路は、電源電圧を分圧することにより前記基準電圧を生成する分圧抵抗器と、前記分圧抵抗器の前記電源電圧側に接続され、所定の制御信号に応じてオン/オフされる第1トランジスタと、前記分圧抵抗器のグランド側に接続され、前記制御信号に応じてオン/オフされる第2トランジスタと、を含む構成(第13の構成)にするとよい。 In the magnetic sensor device having the second configuration, the reference voltage generating circuit that generates the reference voltage includes a voltage dividing resistor that generates the reference voltage by dividing a power supply voltage, and the voltage dividing resistor. A first transistor connected to the power supply voltage side and turned on / off in response to a predetermined control signal; and a first transistor connected to the ground side of the voltage dividing resistor and turned on / off in response to the control signal. A configuration including two transistors (a thirteenth configuration) is preferable.
 また、本発明に係る電子機器は、上記第2の構成から成る磁気センサ装置と、磁石を有するターゲットと、前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、を有して成る構成(第14の構成)とされている。 An electronic apparatus according to the present invention analyzes the movement of the target based on the magnetic sensor device having the second configuration described above, a target having a magnet, and the plurality of output signals output from the magnetic sensor device. And a analyzing device (fourteenth configuration).
 また、本発明に係る電子機器は、上記第3の構成から成る磁気センサ装置と、磁石を有するターゲットと、前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、を有して成る構成(第15の構成)とされている。 An electronic apparatus according to the present invention analyzes the movement of the target based on the magnetic sensor device having the third configuration, a target having a magnet, and the plurality of output signals output from the magnetic sensor device. And a analyzing device (a fifteenth configuration).
 また、本発明に係る電子機器は、上記第4の構成から成る磁気センサ装置と、磁石を有するターゲットと、前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、を有して成る構成(第16の構成)とされている。 An electronic apparatus according to the present invention analyzes the movement of the target based on the magnetic sensor device having the fourth configuration, a target having a magnet, and the plurality of output signals output from the magnetic sensor device. And an analyzing device (a sixteenth configuration).
 また、上記第6の構成から成る磁気センサ装置において、前記磁石は、前記ターゲットの運動方向に沿って交互に並ぶS極の磁区とN極の磁区を複数有して成り、前記磁気センサ装置には、前記ターゲットの運動に伴って交番磁界が印加される構成(第17の構成)にするとよい。 Further, in the magnetic sensor device having the sixth configuration, the magnet includes a plurality of S-pole magnetic domains and N-pole magnetic domains alternately arranged along the movement direction of the target. Is preferably configured to apply an alternating magnetic field in accordance with the movement of the target (a seventeenth configuration).
 また、上記第4の構成から成る磁気センサ装置において、前記複数の信号処理回路は、それぞれ、非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、前記第1演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第2帰還抵抗と、前記第2演算増幅器の反転入力端と出力端との間に接続された第3帰還抵抗と、前記第2演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第4帰還抵抗と、を含む構成(第18の構成)にするとよい。 In the magnetic sensor device having the fourth configuration, each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting A second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal of the operational amplifier and a predetermined reference voltage application terminal; and a third feedback resistor connected between the inverting input terminal and the output terminal of the second operational amplifier. And a fourth feedback resistor connected between an inverting input terminal of the second operational amplifier and a predetermined reference voltage application terminal (an eighteenth structure).
 また、上記第4の構成から成る磁気センサ装置において、前記複数の信号処理回路は、それぞれ、非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、前記第2演算増幅器の反転入力端と出力端との間に接続された第2帰還抵抗と、前記第1演算増幅器の反転入力端と前記第2演算増幅器の反転入力端との間に接続された第3帰還抵抗と、を含む構成(第19の構成)にするとよい。 In the magnetic sensor device having the fourth configuration, each of the plurality of signal processing circuits includes a first operational amplifier having a non-inverting input terminal connected to a first output terminal of the changeover switch circuit, and a non-inverting A second operational amplifier having an input terminal connected to a second output terminal of the changeover switch circuit; a first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier; A second feedback resistor connected between the inverting input terminal and the output terminal of the operational amplifier, and a third feedback resistor connected between the inverting input terminal of the first operational amplifier and the inverting input terminal of the second operational amplifier. A configuration including a feedback resistor (a nineteenth configuration) is preferable.
 また、上記第4の構成から成る磁気センサ装置において、前記基準電圧を生成する基準電圧生成回路は、電源電圧を分圧することにより前記基準電圧を生成する分圧抵抗器と、前記分圧抵抗器の前記電源電圧側に接続され、所定の制御信号に応じてオン/オフされる第1トランジスタと、前記分圧抵抗器のグランド側に接続され、前記制御信号に応じてオン/オフされる第2トランジスタと、を含む構成(第20の構成)にするとよい。 In the magnetic sensor device having the fourth configuration, the reference voltage generation circuit that generates the reference voltage includes a voltage dividing resistor that generates the reference voltage by dividing a power supply voltage, and the voltage dividing resistor. A first transistor connected to the power supply voltage side and turned on / off in response to a predetermined control signal; and a first transistor connected to the ground side of the voltage dividing resistor and turned on / off in response to the control signal. A configuration including the two transistors (a twentieth configuration) is preferable.
 本発明に係る磁気センサ回路、及び、これを用いた電子機器であれば、セット基板上における実装面積の縮小やハンドリング数の削減を実現し、さらに、その出力信号に基づくターゲットの運動解析精度を向上することができる。 If the magnetic sensor circuit according to the present invention and an electronic device using the magnetic sensor circuit are realized, the mounting area on the set substrate can be reduced and the number of handling can be reduced, and the motion analysis accuracy of the target based on the output signal can be improved. Can be improved.
本発明に係る磁気センサ装置の概略構成を示す模式図The schematic diagram which shows schematic structure of the magnetic sensor apparatus which concerns on this invention 磁気センサ装置1に集積化された内部回路の概略構成を示すブロック図The block diagram which shows schematic structure of the internal circuit integrated in the magnetic sensor apparatus 1 印加磁界(磁束密度)に対する出力信号の論理レベル変化を示す図The figure which shows the logic level change of the output signal with respect to the applied magnetic field (magnetic flux density) 磁気センサ装置1を用いた電子機器の第1構成例を示す模式図The schematic diagram which shows the 1st structural example of the electronic device using the magnetic sensor apparatus 1. FIG. 磁気センサ装置1を用いた電子機器の第2構成例を示す模式図The schematic diagram which shows the 2nd structural example of the electronic device using the magnetic sensor apparatus 1. FIG. ターゲット2の運動に伴って印加磁界と出力信号が変化していく様子を示したタイミングチャートTiming chart showing how the applied magnetic field and output signal change as the target 2 moves 磁気センサ装置1に集積化されている内部回路の具体的な構成を示した図The figure which showed the specific structure of the internal circuit integrated in the magnetic sensor apparatus 1 増幅回路30Xの第1構成例を示す図The figure which shows the 1st structural example of the amplifier circuit 30X. 増幅回路30Xの第2構成例を示す図The figure which shows the 2nd structural example of the amplifier circuit 30X. 基準電圧生成回路100の一構成例を示す図The figure which shows the example of 1 structure of the reference voltage generation circuit 100 論理回路61の一構成例を示す図The figure which shows the example of 1 structure of the logic circuit 61 論理回路61の入出力論理を示す論理値表Logic value table showing input / output logic of logic circuit 61 制御回路80Xの一構成例を示す図The figure which shows the example of 1 structure of the control circuit 80X 磁気センサ装置1の動作を説明するタイミングチャートTiming chart for explaining the operation of the magnetic sensor device 1 磁気センサ装置1の動作を説明するフローチャートFlow chart for explaining the operation of the magnetic sensor device 1 磁気センサ装置を用いた電子機器の一従来例を示す模式図Schematic diagram showing an example of a conventional electronic device using a magnetic sensor device
 図1は、本発明に係る磁気センサ装置の概略構成を示す模式図である。なお、図1の上段には磁気センサ装置1をその上面側から透視した平面図が示されており、下段には磁気センサ装置1をα-α’線で切断した縦断面図が示されている。本図に示すように、本発明に係る磁気センサ装置1は、所定の素子間距離dを隔てて配置された2つのホール素子10X及び10Yを有して成る半導体装置(いわゆるホールIC)である。なお、上記の素子間距離dについては、アプリケーション毎に要求される仕様(例えば速度検出精度)を満たすように適宜設計すればよい。 FIG. 1 is a schematic diagram showing a schematic configuration of a magnetic sensor device according to the present invention. The top view of FIG. 1 shows a plan view of the magnetic sensor device 1 seen through from the upper surface side, and the bottom row shows a longitudinal sectional view of the magnetic sensor device 1 cut along the α-α ′ line. Yes. As shown in the figure, the magnetic sensor device 1 according to the present invention is a semiconductor device (so-called Hall IC) having two Hall elements 10X and 10Y arranged with a predetermined inter-element distance d. . The inter-element distance d may be appropriately designed so as to satisfy the specifications required for each application (for example, speed detection accuracy).
 図2は、磁気センサ装置1に集積化されている内部回路の概略構成を示すブロック図である。本図に示すように、本発明に係る磁気センサ装置1は、ホール素子10X及び10Yのほか、切替スイッチ回路20X及び20Yと、増幅回路30X及び30Yと、サンプルホールド回路40X及び40Yと、比較回路50X及び50Yと、ラッチ回路60X及び60Yと、出力回路70X及び70Yと、制御回路80X及び80Yと、発振回路90と、を単一の半導体チップ内に集積化して成る。 FIG. 2 is a block diagram showing a schematic configuration of an internal circuit integrated in the magnetic sensor device 1. As shown in the figure, in addition to the hall elements 10X and 10Y, the magnetic sensor device 1 according to the present invention includes changeover switch circuits 20X and 20Y, amplifier circuits 30X and 30Y, sample hold circuits 40X and 40Y, and a comparison circuit. 50X and 50Y, latch circuits 60X and 60Y, output circuits 70X and 70Y, control circuits 80X and 80Y, and an oscillation circuit 90 are integrated in a single semiconductor chip.
 なお、切替スイッチ回路20X、増幅回路30X、サンプルホールド回路40X、比較回路50X、ラッチ回路60X、出力回路70X、制御回路80X、及び、発振回路90は、ホール素子10Xで検知された磁界の強度ないしは極性に応じて、その論理レベルが変化する出力信号OUTXを生成する第1信号処理回路を形成している。 Note that the changeover switch circuit 20X, the amplifier circuit 30X, the sample hold circuit 40X, the comparison circuit 50X, the latch circuit 60X, the output circuit 70X, the control circuit 80X, and the oscillation circuit 90 have the magnetic field intensity detected by the Hall element 10X. A first signal processing circuit that generates an output signal OUTX whose logic level changes according to the polarity is formed.
 また、切替スイッチ回路20Y、増幅回路30Y、サンプルホールド回路40Y、比較回路50Y、ラッチ回路60Y、出力回路70Y、制御回路80Y、及び、発振回路90は、ホール素子10Yで検知された磁界の強度ないしは極性に応じて、その論理レベルが変化する出力信号OUTYを生成する第2信号処理回路を形成している。 In addition, the changeover switch circuit 20Y, the amplifier circuit 30Y, the sample hold circuit 40Y, the comparison circuit 50Y, the latch circuit 60Y, the output circuit 70Y, the control circuit 80Y, and the oscillation circuit 90 are configured so that the intensity of the magnetic field detected by the Hall element 10Y or A second signal processing circuit for generating an output signal OUTY whose logic level changes according to the polarity is formed.
 発振回路90は、第1信号処理回路と第2信号処理回路との間で共有されている。このような構成とすることにより、回路規模の縮小や消費電力の低減を図るとともに、出力信号OUTX、OUTYの生成タイミングを互いに同期させることができる。 The oscillation circuit 90 is shared between the first signal processing circuit and the second signal processing circuit. With such a configuration, the circuit scale and power consumption can be reduced, and the generation timings of the output signals OUTX and OUTY can be synchronized with each other.
 図3は、印加磁界(磁束密度)に対する出力信号OUTX、OUTYの論理レベル変化を示す図である。本図に示すように、ホール素子10X、10Yに対する印加磁界がS極の検出磁界レベルBopを超えている場合には、出力信号OUTX、OUTYがローレベルとなる。一方、ホール素子10X、10Yに対する印加磁界がN極の検出磁界レベルBrpを超えている場合には、出力信号OUTX、OUTYがハイレベルとなる。このように、出力信号OUTX、OUTYは、印加磁界に対して所定のヒステリシス幅を持って、その論理レベルが変化する。 FIG. 3 is a diagram showing a change in logic level of the output signals OUTX and OUTY with respect to the applied magnetic field (magnetic flux density). As shown in the figure, when the magnetic field applied to the Hall elements 10X and 10Y exceeds the detection magnetic field level Bop of the south pole, the output signals OUTX and OUTY are at a low level. On the other hand, when the magnetic field applied to the Hall elements 10X and 10Y exceeds the detection magnetic field level Brp of the N pole, the output signals OUTX and OUTY are at a high level. In this way, the output signals OUTX and OUTY have a predetermined hysteresis width with respect to the applied magnetic field, and their logic levels change.
 上記構成から成る磁気センサ装置1は、折り畳み型携帯電話端末やスライド型携帯電話端末の開閉検知センサや、モータの回転位置検知センサまたは回転速度検知センサ、若しくは、ダイヤルの回転操作検知センサなど、磁気の状態(磁界の強さ)や磁界の極性を検知するセンサとして、幅広い用途に使用することができる。 The magnetic sensor device 1 having the above-described configuration includes a magnetic sensor such as an open / close detection sensor of a foldable mobile phone terminal or a slide mobile phone terminal, a rotational position detection sensor or a rotational speed detection sensor of a motor, or a rotation operation detection sensor of a dial. As a sensor for detecting the state (magnetic field strength) and magnetic field polarity, it can be used in a wide range of applications.
 なお、磁気センサ装置1に集積化されている内部回路の具体的な構成や出力信号OUTX、OUTYの生成動作については、後ほど詳細に説明する。 The specific configuration of the internal circuit integrated in the magnetic sensor device 1 and the generation operation of the output signals OUTX and OUTY will be described in detail later.
 図4A及び図4Bは、それぞれ、磁気センサ装置1を用いた電子機器の一構成例を示す模式図であり、各図に示されている電子機器は、それぞれ、本発明に係る磁気センサ装置1と、磁石を有するターゲット2Aないし2Bと、磁気センサ装置1から出力される2系統の出力信号OUTX及びOUTYに基づいてターゲット2Aないし2Bの運動を解析する解析装置3と、を有して成る。 FIG. 4A and FIG. 4B are schematic diagrams each showing an example of the configuration of an electronic device using the magnetic sensor device 1, and each of the electronic devices shown in each figure is a magnetic sensor device 1 according to the present invention. And a target 2A to 2B having magnets, and an analysis device 3 for analyzing the motion of the targets 2A to 2B based on two systems of output signals OUTX and OUTY output from the magnetic sensor device 1.
 ターゲット2Aは、回転速度Vで回転駆動されるものであり、ターゲット2Bは、スライド速度Vでスライド駆動されるものである。以下の説明では、両者を適宜まとめて、ターゲット2と呼ぶことにする。 The target 2A is rotationally driven at a rotational speed V, and the target 2B is slide-driven at a slide speed V. In the following description, both are collectively referred to as target 2.
 ターゲット2に設けられている磁石は、ターゲット2の運動方向(回転方向ないしはスライド方向)に沿って交互に並ぶS極の磁区とN極の磁区を複数有して成る。従って、磁気センサ装置1には、ターゲット2の運動(回転駆動ないしはスライド駆動)に伴って、N極とS極が交互に切り替わる交番磁界が印加される。 The magnet provided on the target 2 has a plurality of magnetic domains of S poles and N poles alternately arranged along the moving direction (rotating direction or sliding direction) of the target 2. Therefore, an alternating magnetic field in which the N pole and the S pole are alternately switched with the movement of the target 2 (rotation driving or sliding driving) is applied to the magnetic sensor device 1.
 磁気センサ装置1は、所定の素子間距離dを隔てて集積化された2つのホール素子10X、10Yがターゲット2の運動方向に沿って並ぶように、ターゲット2と相対する形でセット基板上に適宜配置されている。なお、図4A及び図4Bでは、いずれも、ターゲット2の運動方向に対して、上流側にホール素子10X、下流側にホール素子10Yが並ぶように、磁気センサ装置1が配置されている。 The magnetic sensor device 1 is arranged on a set substrate so as to face the target 2 so that two Hall elements 10X and 10Y integrated with a predetermined inter-element distance d are aligned along the movement direction of the target 2. Arranged appropriately. 4A and 4B, the magnetic sensor device 1 is arranged so that the Hall element 10X is arranged on the upstream side and the Hall element 10Y is arranged on the downstream side with respect to the movement direction of the target 2.
 図5は、ターゲット2の運動に伴って印加磁界と出力信号が変化していく様子を示したタイミングチャートである。なお、上段の実線は、ホール素子10Xに対する印加磁界の時間変化を示しており、破線は、ホール素子10Yに対する印加磁界の時間変化を示している。また、下段には、出力信号OUTX、OUTYの時間変化が示されている。本図に示したように、ターゲット2の運動方向に対して、上流側に配置されているホール素子10Xでは、下流側に配置されているホール素子10Yよりも先に、ターゲット2から印加される交番磁界の極性変化が検出される。従って、出力信号OUTXの論理レベルが変化してから出力信号OUTYの論理レベルが変化するまでには、ターゲット2の運動速度に応じた出力時間差Δtが生じる。 FIG. 5 is a timing chart showing how the applied magnetic field and the output signal change as the target 2 moves. The upper solid line indicates the time change of the applied magnetic field for the Hall element 10X, and the broken line indicates the time change of the applied magnetic field for the Hall element 10Y. Also, the lower stage shows the time change of the output signals OUTX and OUTY. As shown in the figure, the Hall element 10X arranged on the upstream side with respect to the movement direction of the target 2 is applied from the target 2 before the Hall element 10Y arranged on the downstream side. A change in polarity of the alternating magnetic field is detected. Therefore, an output time difference Δt corresponding to the movement speed of the target 2 is generated from the change of the logic level of the output signal OUTX to the change of the logic level of the output signal OUTY.
 解析装置3は、磁気センサ装置1から出力される出力信号OUTXの論理レベルが変化してから出力信号OUTYの論理レベルが変化するまでの出力時間差Δtを検出し、この出力時間差Δtと所定の素子間距離dから、先出の(1)式に基づいて、ターゲット2の運動速度V(回転速度ないしはスライド速度)を算出する。 The analysis device 3 detects an output time difference Δt from when the logic level of the output signal OUTX output from the magnetic sensor device 1 changes until the logic level of the output signal OUTY changes, and this output time difference Δt and a predetermined element Based on the distance d, the motion speed V (rotation speed or slide speed) of the target 2 is calculated based on the above equation (1).
 上記したように、本発明に係る磁気センサ装置1を用いた電子機器であれば、ターゲット2の運動速度Vを検出するために、磁気センサ装置1を1つだけ用いれば足りるので、セット基板上における実装面積の縮小やハンドリング数の削減を実現することが可能となり、製品のコストダウンに貢献することができる。また、セット設計の自由度を高めることも可能となる。 As described above, in the case of an electronic apparatus using the magnetic sensor device 1 according to the present invention, it is sufficient to use only one magnetic sensor device 1 in order to detect the motion speed V of the target 2. The mounting area can be reduced and the number of handlings can be reduced, which can contribute to the cost reduction of the product. It is also possible to increase the degree of freedom of set design.
 また、本発明に係る磁気センサ装置1であれば、ホール素子10X、10Yが同一チップ内に集積化されているので、素子間距離dの誤差は、マスク(レチクル)の露光精度に起因する誤差のみ(1μm以下)となる上、ホール素子10X、10Y毎の検出感度ばらつき(相対誤差)についても、ほとんど考慮する必要がなくなる。従って、本発明に係る磁気センサ装置1を用いた電子機器であれば、複数の磁気センサ装置を用いていた従来構成と比べて、ターゲット2の運動速度Vをより高精度に検出することが可能となる。 In the magnetic sensor device 1 according to the present invention, since the Hall elements 10X and 10Y are integrated in the same chip, the error of the inter-element distance d is an error caused by the exposure accuracy of the mask (reticle). In addition, the detection sensitivity variation (relative error) for each of the Hall elements 10X and 10Y hardly needs to be considered. Therefore, if the electronic device uses the magnetic sensor device 1 according to the present invention, it is possible to detect the motion speed V of the target 2 with higher accuracy than in the conventional configuration using a plurality of magnetic sensor devices. It becomes.
 なお、磁気センサ装置1の磁界検出スピード(応答速度)を高速にするほど、ターゲット2の運動速度Vを低速域から高速域まで幅広く検出することが可能となる。 In addition, as the magnetic field detection speed (response speed) of the magnetic sensor device 1 is increased, the motion speed V of the target 2 can be detected widely from a low speed range to a high speed range.
 次に、本発明に係る磁気センサ装置1に集積化されている内部回路の具体的な構成や出力信号OUTX、OUTYの生成動作について詳細な説明を行う。ただし、以下では、ホール素子10Xとその検出信号から出力信号OUTXを生成する第1信号処理回路(20X~80X、90)についての説明のみを行い、ホール素子10Yとその検出信号に基づいて出力信号OUTYを生成する第2信号処理回路(20Y~80Y、90)については重複した説明を割愛する。 Next, a specific configuration of the internal circuit integrated in the magnetic sensor device 1 according to the present invention and an operation for generating the output signals OUTX and OUTY will be described in detail. However, only the first signal processing circuit (20X to 80X, 90) that generates the output signal OUTX from the Hall element 10X and its detection signal will be described below, and the output signal is based on the Hall element 10Y and its detection signal. The second signal processing circuit (20Y to 80Y, 90) that generates OUTY will not be described repeatedly.
 図6は、磁気センサ装置1に集積化されている内部回路の具体的な構成を示した図であり、ホール素子10Xと、その検出信号から出力信号OUTXを生成する第1信号処理回路(20X~80X、90)、並びに、基準電圧生成回路100のみが描写されている。ただし、本構成例の磁気センサ装置1では、図2の例示と異なり、出力回路70Xが省略されている。 FIG. 6 is a diagram showing a specific configuration of an internal circuit integrated in the magnetic sensor device 1, and shows a Hall element 10X and a first signal processing circuit (20X) that generates an output signal OUTX from its detection signal. ˜80X, 90), and only the reference voltage generation circuit 100 is depicted. However, in the magnetic sensor device 1 of this configuration example, the output circuit 70X is omitted, unlike the example of FIG.
 図6において、ホール素子10Xは、4つの端子A・C・B・Dに関して、幾何学的に等価な形状の板状に形成されている。このようなホール素子10Xの第1端子対A-Cに電源電圧VDDを印加したときに第2端子対B-Dに生じるホール電圧と、第2端子対B-D間に電源電圧VDDを印加したときに第1端子対C-Aに生じるホール電圧と、を比較した場合、ホール素子10Xに印加される磁界の強さに応じた有効信号成分は同相で、素子オフセット成分(素子オフセット電圧)は逆相となる。 In FIG. 6, the Hall element 10X is formed in a plate shape having a geometrically equivalent shape with respect to the four terminals A, C, B, and D. When the power supply voltage VDD is applied to the first terminal pair AC of the Hall element 10X, the Hall voltage generated in the second terminal pair BD and the power supply voltage VDD are applied between the second terminal pair BD. When the Hall voltage generated at the first terminal pair CA is compared, the effective signal component corresponding to the strength of the magnetic field applied to the Hall element 10X is in phase, and the element offset component (element offset voltage) Is out of phase.
 切替スイッチ回路20Xは、ホール素子10Xへの電源電圧VDDの印加方法と、ホール素子10Xからのホール電圧の取り出し方法を切り替える手段である。 The changeover switch circuit 20X is a means for switching between a method for applying the power supply voltage VDD to the Hall element 10X and a method for extracting the Hall voltage from the Hall element 10X.
 より具体的に述べると、切替スイッチ回路20Xは、第1切替信号CTL1の論理に応じてオン/オフ制御されるスイッチ21、23、25、27と、第2切替信号CTL2の論理に応じてオン/オフ制御されるスイッチ22、24、26、28と、を有している。なお、本実施形態の磁気センサ装置1において、スイッチ21、23、25、27は、第1切替信号CTL1がハイレベルのときにオンとなり、ローレベルのときにオフとなる。また、スイッチ22、24、25、27は、第2切替信号CTL2がハイレベルのときにオンとなり、ローレベルのときにオフとなる。ただし、上記の信号論理に関しては、あくまで例示であり、上記とは逆の論理で実施されても構わない。 More specifically, the changeover switch circuit 20X is turned on according to the logic of the switches 21, 23, 25, and 27 that are on / off controlled according to the logic of the first switching signal CTL1 and the second switching signal CTL2. The switches 22, 24, 26, and 28 are controlled. In the magnetic sensor device 1 of the present embodiment, the switches 21, 23, 25, and 27 are turned on when the first switching signal CTL1 is at a high level, and are turned off when the first switching signal CTL1 is at a low level. The switches 22, 24, 25, and 27 are turned on when the second switching signal CTL2 is at a high level, and turned off when the second switching signal CTL2 is at a low level. However, the above signal logic is merely an example, and may be implemented with the reverse logic.
 第1、第2切替信号CTL1、CTL2は、互いの論理が一致しないように、かつ、電源オン信号POWがハイレベルとされる期間(すなわち、磁気センサ装置1のセンシング期間に相当)の前半部分(若しくは後半部分)で第1切替信号CTL1がハイレベルとされ、後半部分(若しくは前半部分)で第2切替信号CTL2がハイレベルとされるものである。なお、電源オン信号POWは、間欠的に、例えば一定周期毎に所定期間だけハイレベルとされるものである。ただし、上記の信号論理に関しては、あくまで例示であり、上記とは逆の論理としても構わない。 The first and second switching signals CTL1 and CTL2 are the first half of a period during which the power-on signal POW is at a high level (ie, corresponding to the sensing period of the magnetic sensor device 1) so that their logics do not match each other. The first switching signal CTL1 is set to the high level in the second half (or the second half), and the second switching signal CTL2 is set to the high level in the second half (or the first half). The power-on signal POW is intermittently set at a high level for a predetermined period, for example, at regular intervals. However, the signal logic described above is merely an example, and the reverse logic may be used.
 第1切替信号CTL1がハイレベルとされ、第2切替信号CTL2がローレベルとされる第1切替状態では、端子Aに電源電圧VDDが印加され、端子Cがグランドに接続される形となり、端子Bと端子Dとの間には、磁界の強さに応じたホール電圧が発生する。このとき、端子Bと端子Dとの間に発生する電圧は、印加される磁界の極性(磁界の方向)によって変動するが、ここでは、端子Bの電圧Vbが低く、端子Dの電圧Vdが高い場合を想定する。なお、電圧は、特に断らない限り、グランドに対する電位を表す。 In the first switching state in which the first switching signal CTL1 is set to the high level and the second switching signal CTL2 is set to the low level, the power supply voltage VDD is applied to the terminal A, and the terminal C is connected to the ground. A Hall voltage corresponding to the strength of the magnetic field is generated between B and the terminal D. At this time, the voltage generated between the terminal B and the terminal D varies depending on the polarity of the applied magnetic field (direction of the magnetic field). Here, the voltage Vb at the terminal B is low, and the voltage Vd at the terminal D is Assume a high case. Note that the voltage represents a potential with respect to the ground unless otherwise specified.
 一方、第1切替信号CTL1がローレベルとされ、第2切替信号CTL2がハイレベルとされる第2切替状態では、端子Bに電源電圧VDDが印加され、端子Dがグランドに接続される形となり、端子Cと端子Aとの間には、磁界の強さに応じたホール電圧が発生する。ここで、第1切替状態から第2切替状態への状態遷移が高速度に行われた結果、第2切替状態においても、第1切替状態と同じ極性(方向)の磁界が印加されていると想定した場合、端子Cと端子Aとの間に発生する電圧は、端子Cの電圧Vcが低く、端子Aの電圧Vaが高くなる。 On the other hand, in the second switching state in which the first switching signal CTL1 is set to the low level and the second switching signal CTL2 is set to the high level, the power supply voltage VDD is applied to the terminal B and the terminal D is connected to the ground. A Hall voltage corresponding to the strength of the magnetic field is generated between the terminal C and the terminal A. Here, as a result of the state transition from the first switching state to the second switching state being performed at a high speed, a magnetic field having the same polarity (direction) as that in the first switching state is applied even in the second switching state. Assuming that the voltage generated between the terminal C and the terminal A is such that the voltage Vc at the terminal C is low and the voltage Va at the terminal A is high.
 従って、切替スイッチ回路20Xの第1出力端iの電圧は、第1切替状態では電圧Vbであり、第2切替状態では電圧Vaである。一方、切替スイッチ回路20Xの第2出力端iiの電圧は、第1切替状態では電圧Vdであり、第2切替状態では電圧Vcである。 Therefore, the voltage at the first output terminal i of the changeover switch circuit 20X is the voltage Vb in the first switching state and the voltage Va in the second switching state. On the other hand, the voltage of the second output terminal ii of the changeover switch circuit 20X is the voltage Vd in the first switching state and the voltage Vc in the second switching state.
 増幅回路30Xは、切替スイッチ回路20Xの第1出力端iに接続される第1増幅回路31と、切替スイッチ回路20Xの第2出力端iiに接続される第2増幅回路32とを有して成る。 The amplifier circuit 30X includes a first amplifier circuit 31 connected to the first output terminal i of the changeover switch circuit 20X, and a second amplifier circuit 32 connected to the second output terminal ii of the changeover switch circuit 20X. Become.
 第1増幅回路31は、第1出力端iからの入力電圧(電圧Vbないし電圧Va)を所定の増幅度αで増幅し、第1増幅出力端iiiから第1増幅電圧AOUT1として出力する手段である。なお、第1増幅回路31には、入力オフセット電圧Voffa1が存在するため、第1増幅回路31では、上記の入力電圧(電圧Vbないし電圧Va)に、その入力オフセット電圧Voffa1が加算された上で、所定の増幅処理が行われることになる。 The first amplifier circuit 31 is means for amplifying an input voltage (voltage Vb to voltage Va) from the first output terminal i with a predetermined amplification degree α and outputting the amplified voltage from the first amplification output terminal iii as the first amplified voltage AOUT1. is there. Since the first amplifier circuit 31 has an input offset voltage Voffa1, the first amplifier circuit 31 adds the input offset voltage Voffa1 to the input voltage (voltage Vb to voltage Va). Then, a predetermined amplification process is performed.
 第2増幅回路32は、第2出力端iiからの入力電圧(電圧Vdないし電圧Vc)を所定の増幅度αで増幅し、第2増幅出力端ivから第2増幅電圧AOUT2として出力する手段である。なお、第2増幅回路32にも、入力オフセット電圧Voffa2が存在するため、第2増幅回路32では、上記の入力電圧(電圧Vdないし電圧Vc)に、その入力オフセット電圧Voffa2が加算された上で、所定の増幅処理が行われることになる。 The second amplifier circuit 32 is means for amplifying the input voltage (voltage Vd to voltage Vc) from the second output terminal ii with a predetermined amplification degree α and outputting the amplified voltage as the second amplified voltage AOUT2 from the second amplified output terminal iv. is there. Since the input offset voltage Voffa2 also exists in the second amplifier circuit 32, the second amplifier circuit 32 adds the input offset voltage Voffa2 to the input voltage (voltage Vd to voltage Vc). Then, a predetermined amplification process is performed.
 上記の増幅回路30Xを構成する第1、第2増幅回路31、32には、それぞれスイッチ回路34及びスイッチ回路35を介して、電源電圧VDDが印加されている。なお、スイッチ回路34及びスイッチ回路35は、いずれも電源オン信号POWの論理に応じてオン/オフ制御されるものであり、本実施形態においては、電源オン信号POWがハイレベルのときにオンとされ、ローレベルのときにオフとされる。 The power supply voltage VDD is applied to the first and second amplifier circuits 31 and 32 constituting the amplifier circuit 30X via the switch circuit 34 and the switch circuit 35, respectively. Note that both the switch circuit 34 and the switch circuit 35 are on / off controlled according to the logic of the power-on signal POW. In this embodiment, the switch circuit 34 and the switch circuit 35 are turned on when the power-on signal POW is at a high level. It is turned off when it is at low level.
 従って、増幅回路30Xは、電源オン信号POWのハイレベル遷移に応じて間欠的に、例えば一定周期毎に所定期間だけ駆動される。また、第1、第2増幅回路31、32が電流駆動型のものであるときには、スイッチ回路34及びスイッチ回路35として、スイッチ機能付きの電流源回路を用いればよい。 Therefore, the amplifying circuit 30X is driven only for a predetermined period, for example, every fixed period intermittently in response to the high level transition of the power-on signal POW. Further, when the first and second amplifier circuits 31 and 32 are of the current drive type, a current source circuit with a switch function may be used as the switch circuit 34 and the switch circuit 35.
 サンプルホールド回路40Xは、第1キャパシタ41と、第2キャパシタ42と、第1スイッチ回路43と、第2スイッチ回路44と、を有して成る。 The sample and hold circuit 40X includes a first capacitor 41, a second capacitor 42, a first switch circuit 43, and a second switch circuit 44.
 第1キャパシタ41は、増幅回路30Xの第1増幅出力端iiiと、比較回路50Xの第1比較入力端v(コンパレータ51の非反転入力端(+))との間に接続されている。第2キャパシタ42は、増幅回路30Xの第2増幅出力端ivと、比較回路50Xの第2比較入力端vi(コンパレータ51の反転入力端(-))との間に接続されている。 The first capacitor 41 is connected between the first amplification output terminal iii of the amplification circuit 30X and the first comparison input terminal v (non-inverting input terminal (+) of the comparator 51) of the comparison circuit 50X. The second capacitor 42 is connected between the second amplification output terminal iv of the amplification circuit 30X and the second comparison input terminal vi (the inverting input terminal (−) of the comparator 51) of the comparison circuit 50X.
 比較回路50Xの第1比較入力端vには、第1スイッチ回路43を介して、第1基準電圧Vref1が供給され、第2比較入力端viには、第2スイッチ回路44を介して、第2基準電圧Vref2が供給される。第1、第2スイッチ回路43、44は、いずれも第3切替信号CTL3の論理に応じてオン/オフ制御されるものであり、本実施形態においては、第3切替信号CTL3がハイレベルのときにオンとされ、ローレベルのときにオフとされる。ただし、上記の信号論理に関しては、あくまで例示であり、上記とは逆の論理で実施されても構わない。 A first reference voltage Vref1 is supplied to the first comparison input terminal v of the comparison circuit 50X via the first switch circuit 43, and the second comparison input terminal vi is supplied to the first comparison input terminal v via the second switch circuit 44. 2 Reference voltage Vref2 is supplied. Both the first and second switch circuits 43 and 44 are on / off controlled in accordance with the logic of the third switching signal CTL3. In the present embodiment, when the third switching signal CTL3 is at a high level. On, and off when low. However, the above signal logic is merely an example, and may be implemented with the reverse logic.
 比較回路50Xは、第1比較入力端vに入力される第1比較電圧INC1と、第2比較入力端viに入力される第2比較電圧INC2とを比較し、第1比較電圧INC1が第2比較電圧INC2よりも高いときには、比較結果信号COUTの論理をハイレベルとする一方、第1比較電圧INC1が第2比較電圧INC2よりも低いときには、比較結果信号COUTの論理をローレベルとする手段であり、コンパレータ51と、スイッチ回路52及び53と、を有して成る。なお、比較回路50Xは、極めて高い入力インピーダンスを持つように構成されている。例えば、コンパレータ51の入力段は、MOSトランジスタ回路で構成される。このように、本実施形態の磁気センサ装置1は、比較回路50Xを備えているので、電源電圧VDDのリップルやノイズの影響を受けにくくなり、安定したセンシング動作が可能となる。 The comparison circuit 50X compares the first comparison voltage INC1 input to the first comparison input terminal v with the second comparison voltage INC2 input to the second comparison input terminal vi, and the first comparison voltage INC1 is the second comparison voltage INC1. When the comparison voltage INC2 is higher, the logic of the comparison result signal COUT is set to the high level, and when the first comparison voltage INC1 is lower than the second comparison voltage INC2, the logic of the comparison result signal COUT is set to the low level. A comparator 51 and switch circuits 52 and 53. The comparison circuit 50X is configured to have an extremely high input impedance. For example, the input stage of the comparator 51 is composed of a MOS transistor circuit. As described above, since the magnetic sensor device 1 of the present embodiment includes the comparison circuit 50X, the magnetic sensor device 1 is less susceptible to the ripple of the power supply voltage VDD and noise, and a stable sensing operation is possible.
 上記のコンパレータ51には、スイッチ回路52を介して、電源電圧VDDが印加されている。なお、スイッチ回路52は、電源オン信号POWの論理に応じてオン/オフ制御されるものであり、本実施形態においては、電源オン信号POWがハイレベルのときにオンとされ、ローレベルのときにオフとされる。 The power supply voltage VDD is applied to the comparator 51 through the switch circuit 52. The switch circuit 52 is on / off controlled according to the logic of the power-on signal POW. In the present embodiment, the switch circuit 52 is turned on when the power-on signal POW is at a high level, and is switched on at a low level. Off.
 従って、コンパレータ51は、電源オン信号POWのハイレベル遷移(延いては、反転電源オン信号(/POW)のローレベル遷移)に応じて、間欠的に、例えば一定周期毎に所定期間だけ駆動される。なお、コンパレータ51が電流駆動型のものであるときには、スイッチ回路52として、スイッチ機能付きの電流源回路を用いればよい。 Therefore, the comparator 51 is driven intermittently, for example, for a predetermined period every fixed period in accordance with the high level transition of the power-on signal POW (and hence the low-level transition of the inverted power-on signal (/ POW)). The When the comparator 51 is of a current drive type, a current source circuit with a switch function may be used as the switch circuit 52.
 また、比較回路50Xの出力端(コンパレータ51の出力端)は、スイッチ回路53を介して接地端に接続されている。なお、スイッチ回路53は、反転電源オン信号(/POW)の論理に応じてオン/オフ制御されるものであり、本実施形態においては、反転電源オン信号(/POW)がハイレベルのときにオンとされ、ローレベルのときにオフとされる。これにより、コンパレータ51への電源供給が遮断されている場合には、比較結果信号COUTが強制的にローレベルとされるので、後段のラッチ回路60Xで生成される論理演算信号LOUT(延いては出力信号OUT)に意図しない論理変遷が生じることを防止することができる。 The output terminal of the comparison circuit 50X (the output terminal of the comparator 51) is connected to the ground terminal via the switch circuit 53. Note that the switch circuit 53 is ON / OFF controlled in accordance with the logic of the inverted power supply ON signal (/ POW), and in this embodiment, when the inverted power supply ON signal (/ POW) is at a high level. Turned on and turned off when low level. As a result, when the power supply to the comparator 51 is interrupted, the comparison result signal COUT is forcibly set to the low level, so that the logical operation signal LOUT (and thus the signal generated by the latch circuit 60X at the subsequent stage is extended). It is possible to prevent an unintended logic transition from occurring in the output signal OUT).
 ラッチ回路60Xは、論理回路61と、D型フリップフロップ62と、を有して成る。 The latch circuit 60X includes a logic circuit 61 and a D-type flip-flop 62.
 論理回路61は、比較結果信号COUTと出力信号OUTに基づいて、論理演算信号LOUTを生成する手段である。なお、論理回路61の具体的な構成及び動作については、後ほど詳細な説明を行う。 The logic circuit 61 is means for generating a logical operation signal LOUT based on the comparison result signal COUT and the output signal OUT. The specific configuration and operation of the logic circuit 61 will be described in detail later.
 D型フリップフロップ62は、論理回路61で得られた論理演算信号LOUTをクロック信号CLK_SHのエッジタイミングでラッチし、これを出力信号OUT(延いては、第1出力信号OUTX)として出力する手段である。 The D-type flip-flop 62 is means for latching the logical operation signal LOUT obtained by the logic circuit 61 at the edge timing of the clock signal CLK_SH and outputting it as an output signal OUT (and thus the first output signal OUTX). is there.
 なお、ラッチ回路60Xの後段に出力回路70Xを接続する場合には、磁界の強度ないしは極性と出力信号OUTXの論理レベルとが所望の相関関係を持つように、出力回路70Xとして、インバータ段やバッファ段などを適宜用いればよい(図2を参照)。 When the output circuit 70X is connected to the subsequent stage of the latch circuit 60X, an inverter stage or buffer is used as the output circuit 70X so that the strength or polarity of the magnetic field and the logic level of the output signal OUTX have a desired correlation. A step or the like may be used as appropriate (see FIG. 2).
 制御回路80Xは、基準クロック信号OSCに基づいて、電源オン信号POW、反転電源オン信号(/POW)、クロック信号CLK_SH、及び、第3切替信号CTL3を生成するほか、さらに出力信号OUTの入力を受けて、第1切替信号CTL1、及び、第2切替信号CTL2を生成する手段である。なお、制御回路80Xの具体的な構成及び動作については、後ほど詳細な説明を行う。 The control circuit 80X generates a power-on signal POW, an inverted power-on signal (/ POW), a clock signal CLK_SH, and a third switching signal CTL3 based on the reference clock signal OSC, and further receives an output signal OUT. In response to this, the first switching signal CTL1 and the second switching signal CTL2 are generated. The specific configuration and operation of the control circuit 80X will be described in detail later.
 発振回路90は、所定周波数の基準クロック信号OSCを生成し、これを制御回路80Xに供給する手段である。 The oscillation circuit 90 is means for generating a reference clock signal OSC having a predetermined frequency and supplying it to the control circuit 80X.
 基準電圧生成回路100は、第1基準電圧Vref1と、これよりも所定値VREFだけ高い第2基準電圧Vref2を生成する手段である。なお、基準電圧生成回路100の具体的な構成については、後ほど詳細な説明を行う。 The reference voltage generation circuit 100 is means for generating a first reference voltage Vref1 and a second reference voltage Vref2 that is higher than the first reference voltage Vref1 by a predetermined value VREF. The specific configuration of the reference voltage generation circuit 100 will be described in detail later.
 図7は、増幅回路30Xの第1構成例を示す図である。本構成例の増幅回路30Xは、第1増幅回路31Aと第2増幅回路32Aを有している。 FIG. 7 is a diagram illustrating a first configuration example of the amplifier circuit 30X. The amplifier circuit 30X of this configuration example includes a first amplifier circuit 31A and a second amplifier circuit 32A.
 第1増幅回路31Aにおいて、演算増幅器31-1の非反転入力端(+)は切替スイッチ回路20Xの第1出力端iに接続されている。演算増幅器31-1の反転入力端(-)と第1増幅出力端iiiとの間には、帰還抵抗31-2が接続されている。演算増幅器31-1の反転入力端(-)と基準電圧Vref0の印加端との間には、帰還抵抗31-3が接続されている。 In the first amplifier circuit 31A, the non-inverting input terminal (+) of the operational amplifier 31-1 is connected to the first output terminal i of the changeover switch circuit 20X. A feedback resistor 31-2 is connected between the inverting input terminal (−) of the operational amplifier 31-1 and the first amplification output terminal iii. A feedback resistor 31-3 is connected between the inverting input terminal (−) of the operational amplifier 31-1 and the application terminal of the reference voltage Vref0.
 上記構成から成る第1増幅回路31Aは、切替スイッチ回路20Xの第1出力端iから入力される電圧(電圧Vbないし電圧Va)を所定の増幅度αで増幅し、第1増幅電圧AOUT1として、第1増幅出力端iiiから出力する。 The first amplifying circuit 31A having the above configuration amplifies the voltage (voltage Vb to voltage Va) input from the first output terminal i of the changeover switch circuit 20X with a predetermined amplification degree α as a first amplified voltage AOUT1. Output from the first amplification output terminal iii.
 一方、第2増幅回路32Aにおいて、演算増幅器32-1の非反転入力端(+)は、切替スイッチ回路20Xの第2出力端iiに接続されている。演算増幅器32-1の反転入力端(-)と第2増幅出力端ivとの間には、帰還抵抗32-2が接続されている。演算増幅器32-1の反転入力端(-)と基準電圧Vref0の印加端との間には、帰還抵抗32-3が接続されている。 On the other hand, in the second amplifier circuit 32A, the non-inverting input terminal (+) of the operational amplifier 32-1 is connected to the second output terminal ii of the changeover switch circuit 20X. A feedback resistor 32-2 is connected between the inverting input terminal (−) of the operational amplifier 32-1 and the second amplification output terminal iv. A feedback resistor 32-3 is connected between the inverting input terminal (−) of the operational amplifier 32-1 and the application terminal of the reference voltage Vref0.
 上記構成から成る第2増幅回路32Aは、切替スイッチ回路20Xの第2出力端iiから入力される電圧(電圧Vdないし電圧Vc)を所定の増幅度αで増幅し、第2増幅電圧AOUT2として、第2増幅出力端ivから出力する。 The second amplifying circuit 32A having the above configuration amplifies the voltage (voltage Vd to voltage Vc) input from the second output terminal ii of the changeover switch circuit 20X with a predetermined amplification degree α to obtain a second amplified voltage AOUT2. Output from the second amplification output terminal iv.
 なお、第1構成例の増幅回路30Xにおいて、帰還抵抗31-2、32-2の抵抗値をR2、帰還抵抗31-3、32-3の抵抗値をR1とすると、増幅度αは、約R2/R1である。ただし、R2≫R1とする。 In the amplifier circuit 30X of the first configuration example, when the resistance values of the feedback resistors 31-2 and 32-2 are R2, and the resistance values of the feedback resistors 31-3 and 32-3 are R1, the amplification factor α is about R2 / R1. However, R2 >> R1.
 図8は、増幅回路30Xの第2構成例を示す図である。本構成例の増幅回路30Xは、第1増幅回路31Bと第2増幅回路32Bを有している。 FIG. 8 is a diagram illustrating a second configuration example of the amplifier circuit 30X. The amplifier circuit 30X of this configuration example includes a first amplifier circuit 31B and a second amplifier circuit 32B.
 第1増幅回路31Bにおいて、演算増幅器31-1の非反転入力端(+)は切替スイッチ回路20Xの第1出力端iに接続されている。演算増幅器31-1の反転入力端(-)と第1増幅出力端iiiとの間には、第1帰還抵抗31-2が接続されている。 In the first amplifier circuit 31B, the non-inverting input terminal (+) of the operational amplifier 31-1 is connected to the first output terminal i of the changeover switch circuit 20X. A first feedback resistor 31-2 is connected between the inverting input terminal (−) of the operational amplifier 31-1 and the first amplification output terminal iii.
 一方、第2増幅回路32Bにおいて、演算増幅器32-1の非反転入力端(+)は、切替スイッチ回路20Xの第2出力端iiに接続されている。演算増幅器32-1の反転入力端(-)と第2増幅出力端ivとの間には、第2帰還抵抗32-2が接続されている。 On the other hand, in the second amplifier circuit 32B, the non-inverting input terminal (+) of the operational amplifier 32-1 is connected to the second output terminal ii of the changeover switch circuit 20X. A second feedback resistor 32-2 is connected between the inverting input terminal (−) of the operational amplifier 32-1 and the second amplification output terminal iv.
 また、第1演算増幅器31-1の反転入力端(-)と第2演算増幅器32-1の反転入力端(-)との間には、第3帰還抵抗33が接続されている。 The third feedback resistor 33 is connected between the inverting input terminal (−) of the first operational amplifier 31-1 and the inverting input terminal (−) of the second operational amplifier 32-1.
 このように、本構成例の増幅回路30Xは、第1増幅回路31Bと第2増幅回路32Bとで、第3帰還抵抗33を共有する形式、すなわち、平衡入力-平衡出力形式の増幅回路である。第2構成例の増幅回路30Xでは、第1構成例の増幅回路30Xに比べて、帰還抵抗の数を削減することが可能となるほか、第1、第2増幅回路31B、32Bの基準電圧は、その回路内で自動的に設定されることになるので、基準電圧の設定が不要となる。 As described above, the amplifier circuit 30X of the present configuration example is an amplifier circuit in which the first amplifier circuit 31B and the second amplifier circuit 32B share the third feedback resistor 33, that is, an amplifier circuit of a balanced input-balanced output format. . In the amplifier circuit 30X of the second configuration example, the number of feedback resistors can be reduced compared to the amplifier circuit 30X of the first configuration example, and the reference voltages of the first and second amplifier circuits 31B and 32B are Since it is automatically set in the circuit, it is not necessary to set the reference voltage.
 また、本構成例の増幅回路30Xでは、特有の構成を用いた平衡入力-平衡出力型とすることにより、電圧増幅利得を大きく採ることができる。すなわち、第1、第2帰還抵抗31-2、32-2の抵抗値をR2、第3帰還抵抗33の抵抗値をR1とすると、増幅度αは、約2×R2/R1となる。ただし、R2≫R1とする。このように、増幅度αが2倍になるので、回路設計を容易に行うことが可能となり、また、感度の低いホール素子も使いこなしやすくなる。なお、図7、図8では明示されていないが、第1増幅回路31A及び31Bの駆動に必要な電源電圧VDDについては、図6と同じく、スイッチ回路34を介して供給すればよい。また、第2増幅回路32A及び32Bの駆動に必要な電源電圧VDDについても、図6と同じく、スイッチ回路35を介して供給すればよい。 Further, in the amplifier circuit 30X of this configuration example, a voltage amplification gain can be greatly increased by adopting a balanced input-balanced output type using a specific configuration. That is, when the resistance value of the first and second feedback resistors 31-2 and 32-2 is R2, and the resistance value of the third feedback resistor 33 is R1, the amplification degree α is about 2 × R2 / R1. However, R2 >> R1. As described above, since the amplification degree α is doubled, the circuit design can be easily performed, and a Hall element having low sensitivity can be easily used. Although not explicitly shown in FIGS. 7 and 8, the power supply voltage VDD necessary for driving the first amplifier circuits 31A and 31B may be supplied via the switch circuit 34 as in FIG. Further, the power supply voltage VDD necessary for driving the second amplifier circuits 32A and 32B may be supplied via the switch circuit 35 as in FIG.
 次に、基準電圧生成回路100の構成及び動作について図9を参照しながら説明する。 Next, the configuration and operation of the reference voltage generation circuit 100 will be described with reference to FIG.
 図9は、基準電圧生成回路100の一構成例を示す図である。 FIG. 9 is a diagram illustrating a configuration example of the reference voltage generation circuit 100.
 図9に示すように、基準電圧生成回路100は、電源電圧VDDを分圧抵抗器100-1~100-3で分圧することにより、第1基準電圧Vref1と第2基準電圧Vref2を生成する。これらの基準電圧は、分圧抵抗器100-1~100-3の電源電圧VDD側に接続されたP型MOSトランジスタ100-4と、グランド側に接続されたN型MOSトランジスタ100-5がオンとされているときに生成される。このMOSトランジスタ100-4、100-5は、インバータ100-6ないしインバータ100-7を介する形で、第3切替信号CTL3の論理に応じてオン/オフ制御される。なお、第3切替信号CTL3に代えて、電源オン信号POWの論理に応じて、MOSトランジスタ100-4、100-5のオン/オフ制御を行うようにしてもよい。 As shown in FIG. 9, the reference voltage generation circuit 100 generates the first reference voltage Vref1 and the second reference voltage Vref2 by dividing the power supply voltage VDD by the voltage dividing resistors 100-1 to 100-3. These reference voltages are such that the P-type MOS transistor 100-4 connected to the power supply voltage VDD side of the voltage dividing resistors 100-1 to 100-3 and the N-type MOS transistor 100-5 connected to the ground side are turned on. It is generated when it is said. The MOS transistors 100-4 and 100-5 are on / off controlled in accordance with the logic of the third switching signal CTL3 through the inverters 100-6 to 100-7. Instead of the third switching signal CTL3, on / off control of the MOS transistors 100-4 and 100-5 may be performed according to the logic of the power-on signal POW.
 次に、ラッチ回路60Xに含まれる論理回路61の構成及び動作について、図10及び図11を参照しながら説明する。 Next, the configuration and operation of the logic circuit 61 included in the latch circuit 60X will be described with reference to FIGS.
 図10は、論理回路61の一構成例を示す図である。また、図11は、論理回路61の入出力論理を示す論理値表である。 FIG. 10 is a diagram illustrating a configuration example of the logic circuit 61. FIG. 11 is a logic value table showing the input / output logic of the logic circuit 61.
 図10に示す通り、論理回路61は、インバータ61-1及び61-2と、論理積演算器61-3及び61-4と、論理和演算器61-5と、を有して成る。 As shown in FIG. 10, the logic circuit 61 includes inverters 61-1 and 61-2, AND operation units 61-3 and 61-4, and an OR operation unit 61-5.
 インバータ61-1の入力端は、出力信号OUTの印加端に接続されている。インバータ61-2の入力端は、比較結果信号COUTの印加端に接続されている。論理積演算器61-3の一入力端は、インバータ61-1の出力端に接続されている。論理積演算器61-3の他入力端は、比較結果信号COUTの印加端に接続されている。論理積演算器61-4の一入力端は、出力信号OUTの印加端に接続されている。論理積演算器61-4の他入力端は、インバータ61-2の出力端に接続されている。論理和演算器61-5の一入力端は、論理積演算器61-3の出力端に接続されている。論理和演算器61-5の他入力端は、論理積演算器61-4の出力端に接続されている。論理和演算器61-5の出力端は、論理演算信号LOUTの引出端として、D型フリップフロップ62のデータ入力端(図10では不図示)に接続されている。 The input terminal of the inverter 61-1 is connected to the application terminal of the output signal OUT. The input end of the inverter 61-2 is connected to the application end of the comparison result signal COUT. One input terminal of the AND operator 61-3 is connected to the output terminal of the inverter 61-1. The other input terminal of the AND operator 61-3 is connected to the application terminal of the comparison result signal COUT. One input terminal of the AND operator 61-4 is connected to the application terminal of the output signal OUT. The other input terminal of the AND operator 61-4 is connected to the output terminal of the inverter 61-2. One input terminal of the logical sum calculator 61-5 is connected to the output terminal of the logical product calculator 61-3. The other input terminal of the logical sum calculator 61-5 is connected to the output terminal of the logical product calculator 61-4. The output terminal of the logical sum calculator 61-5 is connected to the data input terminal (not shown in FIG. 10) of the D-type flip-flop 62 as a lead-out terminal for the logical operation signal LOUT.
 上記構成から成る論理回路61において、出力信号OUTと比較結果信号COUTが共にローレベルである場合、論理演算信号LOUTはローレベルとされる。出力信号OUTがローレベルで、比較結果信号COUTがハイレベルである場合、論理演算信号LOUTはハイレベルとされる。出力信号OUTがハイレベルで、比較結果信号COUTがローレベルである場合、論理演算信号LOUTはハイレベルとされる。出力信号OUTと比較結果信号が共にハイレベルである場合、論理演算信号LOUTはローレベルとされる。 In the logic circuit 61 having the above configuration, when both the output signal OUT and the comparison result signal COUT are at a low level, the logic operation signal LOUT is at a low level. When the output signal OUT is at a low level and the comparison result signal COUT is at a high level, the logic operation signal LOUT is set to a high level. When the output signal OUT is at a high level and the comparison result signal COUT is at a low level, the logical operation signal LOUT is set to a high level. When the output signal OUT and the comparison result signal are both at the high level, the logical operation signal LOUT is at the low level.
 次に、制御回路80Xの構成及び動作について、図12及び図13を参照しながら、詳細な説明を行う。 Next, the configuration and operation of the control circuit 80X will be described in detail with reference to FIGS.
 図12は、制御回路80Xの一構成例を示す図である。また、図13は、本発明に係る磁気センサ装置1の動作を説明するタイミングチャートである。 FIG. 12 is a diagram illustrating a configuration example of the control circuit 80X. FIG. 13 is a timing chart for explaining the operation of the magnetic sensor device 1 according to the present invention.
 図12に示すように、本構成例の制御回路80Xは、スタートパルス信号生成回路81と、シフトレジスタ82と、論理和演算器83と、インバータ84及び85と、切替信号生成回路86と、を有して成る。 As shown in FIG. 12, the control circuit 80X of this configuration example includes a start pulse signal generation circuit 81, a shift register 82, an OR calculator 83, inverters 84 and 85, and a switching signal generation circuit 86. Have.
 スタートパルス生成回路81は、基準クロック信号OSCのパルス数が所定値(例えば32)に達する毎に1つのパルスを生成し、これをスタートパルス信号SIG(図13を参照)として出力する手段である。 The start pulse generation circuit 81 is means for generating one pulse every time the number of pulses of the reference clock signal OSC reaches a predetermined value (for example, 32) and outputting this as a start pulse signal SIG (see FIG. 13). .
 シフトレジスタ82は、基準クロック信号OSCとスタートパルス信号SIGの入力を受け、基準クロック信号OSCの1パルス毎に、スタートパルス信号SIGをシフトさせながら順次取り込んでいき、初段のレジスタデータ及び2段目のレジスタデータをそれぞれ第1タイミング信号S1及び第2タイミング信号S2として出力する手段である。すなわち、図13で示すように、スタートパルス信号SIGにパルスが生じると、基準クロック信号OSCに同期して、まず、第1タイミング信号S1にパルスが生じ、次いで第2タイミング信号S2にパルスが生じる。 The shift register 82 receives the input of the reference clock signal OSC and the start pulse signal SIG, and sequentially takes in the start pulse signal SIG while shifting the start pulse signal SIG for each pulse of the reference clock signal OSC. These register data are respectively output as a first timing signal S1 and a second timing signal S2. That is, as shown in FIG. 13, when a pulse is generated in the start pulse signal SIG, first, a pulse is generated in the first timing signal S1, and then a pulse is generated in the second timing signal S2, in synchronization with the reference clock signal OSC. .
 論理和演算器83は、第1タイミング信号S1と第2タイミング信号S2の論理和演算を行い、電源オン信号POW(図13を参照)を生成する手段である。 The logical sum calculator 83 is means for performing a logical sum operation of the first timing signal S1 and the second timing signal S2 to generate a power-on signal POW (see FIG. 13).
 インバータ84は、電源オン信号POWの論理を反転させることで、反転電源オン信号(/POW)(図13では省略)を生成する手段である。 The inverter 84 is a means for generating an inverted power-on signal (/ POW) (not shown in FIG. 13) by inverting the logic of the power-on signal POW.
 インバータ85は、第2タイミング信号S2の論理を反転させることで、クロック信号CLK_SH(図13を参照)を生成する手段である。 The inverter 85 is means for generating the clock signal CLK_SH (see FIG. 13) by inverting the logic of the second timing signal S2.
 切替信号生成回路86は、第1タイミング信号S1及び第2タイミング信号S2と、出力信号OUTの入力を受けて、第1切替信号CTL1、第2切替信号CTL2、及び、第3切替信号CTL3を生成する手段であり、論理積演算器86-1~86-4と、論理和演算器96-5及び86-6と、インバータ86-7と、を有して成る。 The switching signal generation circuit 86 receives the first timing signal S1 and the second timing signal S2 and the output signal OUT, and generates the first switching signal CTL1, the second switching signal CTL2, and the third switching signal CTL3. And includes AND operation units 86-1 to 86-4, OR operation units 96-5 and 86-6, and an inverter 86-7.
 論理積演算器86-1の一入力端は、第1タイミング信号S1の印加端に接続されている。論理積演算器86-1の他入力端は、インバータ86-7の出力端に接続される。論理積演算器86-2の一入力端は、第2タイミング信号S2の印加端に接続されている。論理積演算器86-2の他入力端は、出力信号OUTの印加端に接続されている。論理積演算器86-3の一入力端は、第2タイミング信号S2の印加端の接続されている。論理積演算器86-3の他入力端は、インバータ86-7の出力端に接続されている。論理積演算器86-4の一入力端は、第1タイミング信号S1の印加端に接続されている。論理積演算器86-4の他入力端は、出力信号OUTの印加端に接続されている。論理和演算器86-5の一入力端は、論理積演算器86-1の出力端に接続されている。論理和演算器86-5の他入力端は、論理積演算器86-2の出力端に接続されている。論理和演算器86-5の出力端は、第1切替信号CTL1の引出端として、切替スイッチ回路20X(図12では不図示)に接続されている。論理和演算器86-6の一入力端は、論理積演算器86-3の出力端に接続されている。論理和演算器86-6の他入力端は、論理積演算器86-4の出力端に接続されている。論理和演算器86-6の出力端は、第2切替信号CTL2の引出端として、切替スイッチ回路20X(図12で不図示)に接続されている。インバータ86-7の入力端は、出力信号OUTの印加端に接続されている。 One input terminal of the AND operator 86-1 is connected to the application terminal of the first timing signal S1. The other input terminal of the AND operator 86-1 is connected to the output terminal of the inverter 86-7. One input terminal of the AND operator 86-2 is connected to the application terminal of the second timing signal S2. The other input terminal of the AND operator 86-2 is connected to the application terminal of the output signal OUT. One input terminal of the AND operator 86-3 is connected to the application terminal of the second timing signal S2. The other input terminal of the AND operator 86-3 is connected to the output terminal of the inverter 86-7. One input terminal of the AND operator 86-4 is connected to the application terminal of the first timing signal S1. The other input terminal of the AND operator 86-4 is connected to the application terminal of the output signal OUT. One input terminal of the logical sum calculator 86-5 is connected to the output terminal of the logical product calculator 86-1. The other input terminal of the logical sum calculator 86-5 is connected to the output terminal of the logical product calculator 86-2. The output terminal of the logical sum calculator 86-5 is connected to the changeover switch circuit 20X (not shown in FIG. 12) as a lead-out terminal for the first switching signal CTL1. One input terminal of the logical sum calculator 86-6 is connected to the output terminal of the logical product calculator 86-3. The other input terminal of the logical sum calculator 86-6 is connected to the output terminal of the logical product calculator 86-4. The output terminal of the logical sum calculator 86-6 is connected to the changeover switch circuit 20X (not shown in FIG. 12) as a lead-out terminal for the second switching signal CTL2. The input end of the inverter 86-7 is connected to the application end of the output signal OUT.
 上記構成から成る切替信号生成回路86は、論理和演算器86-5で得られる論理和演算信号を第1切替信号CTL1として出力するとともに、論理和演算器86-6で得られる論理和演算信号を第2切替信号CTL2として出力する。 The switching signal generation circuit 86 configured as described above outputs the logical sum operation signal obtained by the logical sum operation unit 86-5 as the first switching signal CTL1, and the logical sum operation signal obtained by the logical sum operation unit 86-6. Is output as the second switching signal CTL2.
 従って、図13の(1)及び(4)で示すように、出力信号OUTがハイレベル(すなわち、N極信号の検出後、次にS極信号を検出すべき状態)である場合には、S極信号を増幅するべく、まず、第1切替信号CTL1にパルスが生じ、次いで第2切替信号CTL2にパルスが生じる形となる。言い換えると、出力信号OUTがハイレベルである場合、切替スイッチ回路20Xでは、第1切替状態から第2切替状態という順序で、スイッチ21~28の切り替え制御が行われることになる。 Therefore, as shown in (1) and (4) of FIG. 13, when the output signal OUT is at a high level (that is, after the detection of the N pole signal, the S pole signal should be detected next), In order to amplify the S pole signal, first, a pulse is generated in the first switching signal CTL1, and then a pulse is generated in the second switching signal CTL2. In other words, when the output signal OUT is at the high level, the changeover switch 20X performs the switching control of the switches 21 to 28 in the order from the first switching state to the second switching state.
 一方、図13の(2)及び(3)で示すように、出力信号OUTがローレベル(すなわち、S極信号の検出後、次にN極信号を検出すべき状態)である場合には、N極信号を増幅するべく、まず、第2切替信号CTL2にパルスが生じ、次いで第1切替信号CTL1にパルスが生じる形となる。言い換えると、出力信号OUTがローレベルである場合、切替スイッチ回路20Xでは、第2切替状態から第1切替状態という順序で、スイッチ21~28の切り替え制御が行われることになる。 On the other hand, as shown in (2) and (3) of FIG. 13, when the output signal OUT is at a low level (that is, the state where the N pole signal should be detected next after the detection of the S pole signal), In order to amplify the N pole signal, first, a pulse is generated in the second switching signal CTL2, and then a pulse is generated in the first switching signal CTL1. In other words, when the output signal OUT is at the low level, the changeover switch circuit 20X performs the switching control of the switches 21 to 28 in the order from the second switching state to the first switching state.
 また、切替信号生成回路86は、第1タイミング信号S1を第3切替信号CTL3としてそのまま出力する構成であり、第1タイミング信号S1の印加端は、第3切替信号CTL3の引出端として、第1スイッチ回路43及び第2スイッチ回路44(図12ではいずれも不図示)に接続されている。 Further, the switching signal generation circuit 86 is configured to output the first timing signal S1 as it is as the third switching signal CTL3, and the application terminal of the first timing signal S1 is used as the extraction terminal of the third switching signal CTL3. The switch circuit 43 and the second switch circuit 44 (both not shown in FIG. 12) are connected.
 次に、上記構成から成る磁気センサ装置1の動作について、図13のタイミングチャートを引き続いて参照しながら詳細な説明を行う。 Next, the operation of the magnetic sensor device 1 configured as described above will be described in detail with reference to the timing chart of FIG.
 まず、電源オン信号POWが間欠的にハイレベルとされることで、磁気センサ装置1の各部(具体的には、増幅回路30Xや比較回路50Xなどの主要ユニット)には、間欠的に電源電圧VDDが供給されて、その検出動作が可能となる。このような間欠電源制御と出力信号OUTのラッチ制御とを結合させることにより、磁気センサ装置1の検出動作に支障を来すことなく、これを搭載する電子機器(例えば電池駆動の携帯電話機)の電力消費を著しく低減することが可能となる。なお、電源オン信号POWをハイレベルとする周期や電源オン信号POWのハイレベル期間については、磁気センサ装置1が適用される用途に応じて、適切な時間長に設定すればよい。なお、磁気センサ装置1は、間欠的に動作させるのではなく、連続的に動作させる構成としてもよい。 First, since the power-on signal POW is intermittently set to the high level, the power supply voltage is intermittently applied to each part of the magnetic sensor device 1 (specifically, main units such as the amplifier circuit 30X and the comparison circuit 50X). The detection operation can be performed when VDD is supplied. By combining such intermittent power supply control and latch control of the output signal OUT, the detection operation of the magnetic sensor device 1 is not hindered, and an electronic device (for example, a battery-powered mobile phone) on which the magnetic sensor device 1 is mounted is used. Power consumption can be significantly reduced. Note that the period for setting the power-on signal POW to the high level and the high-level period of the power-on signal POW may be set to an appropriate time length according to the application to which the magnetic sensor device 1 is applied. The magnetic sensor device 1 may be configured to operate continuously rather than intermittently.
 さて、図13の(1)及び(4)で示す通り、出力信号OUTがハイレベルである場合(すなわち、N極信号の検出後、次にS極信号を検出すべき状態)には、基準クロック信号OSCの立上がりエッジに同期して、まず、第1切替信号CTL1及び第3切替信号CTL3がハイレベルとされる。第1切替信号CTL1がハイレベルとされたことにより、切替スイッチ回路20Xは第1切替状態になる。また、第3切替信号CTL3がハイレベルとされたことにより、第1スイッチ回路43及び第2スイッチ回路44はオンとなる。 As shown in (1) and (4) of FIG. 13, when the output signal OUT is at a high level (that is, after the detection of the N pole signal, the S pole signal is to be detected next), the reference In synchronization with the rising edge of the clock signal OSC, first, the first switching signal CTL1 and the third switching signal CTL3 are set to the high level. When the first switching signal CTL1 is set to the high level, the changeover switch circuit 20X enters the first switching state. Further, since the third switching signal CTL3 is set to the high level, the first switch circuit 43 and the second switch circuit 44 are turned on.
 第1切替信号CTL1のハイレベル遷移に応じて、切替スイッチ回路20Xが第1切替状態とされたことにより、ホール素子10Xの第1端子対である端子A・Cには、それぞれ、電源電圧VDD及びグランド電圧が印加され、第2端子対である端子B・Dには、それぞれ、ホール電圧が発生する。このとき、端子Bには電圧Vbが発生し、端子Dには電圧Vdが発生する。 In response to the high-level transition of the first switching signal CTL1, the changeover switch circuit 20X is set to the first switching state, so that the terminals A and C, which are the first terminal pair of the Hall element 10X, are respectively supplied with the power supply voltage VDD. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals B and D as the second terminal pair. At this time, the voltage Vb is generated at the terminal B, and the voltage Vd is generated at the terminal D.
 増幅回路30Xの第1増幅出力端iiiには、電圧Vbが増幅された第1増幅電圧AOUT1(=α(Vb-Voffa1))が発生し、第2増幅出力端ivには、電圧Vdが増幅された第2増幅電圧AOUT2(=α(Vd-Voffa2))が発生する。このαは、増幅回路30Xの増幅度であり、Voffa1、Voffa2は、それぞれ、第1増幅回路31、第2増幅回路32の入力オフセット電圧である。 A first amplified voltage AOUT1 (= α (Vb−Voffa1)) obtained by amplifying the voltage Vb is generated at the first amplified output terminal iii of the amplifier circuit 30X, and the voltage Vd is amplified at the second amplified output terminal iv. The second amplified voltage AOUT2 (= α (Vd−Voffa2)) is generated. Α is the amplification degree of the amplifier circuit 30X, and Voffa1 and Voffa2 are input offset voltages of the first amplifier circuit 31 and the second amplifier circuit 32, respectively.
 一方、第3切替信号CTL3のハイレベル遷移に応じて、第1スイッチ回路43及び第2スイッチ回路44がともにオンされたことにより、比較回路50Xの第1比較入力端vには、第1基準電圧Vref1が印加され、第2比較入力端viには、第2基準電圧Vref2が印加された状態となる。 On the other hand, when both the first switch circuit 43 and the second switch circuit 44 are turned on in response to the high level transition of the third switching signal CTL3, the first reference input terminal v of the comparison circuit 50X has a first reference input v. The voltage Vref1 is applied, and the second reference voltage Vref2 is applied to the second comparison input terminal vi.
 これにより、第1キャパシタ41には、第1基準電圧Vref1と第1増幅電圧AOUT1との差電圧(Vref1-α(Vb-Voffa1))が充電される。一方、第2キャパシタ42には、第2基準電圧Vref2と第2増幅電圧AOUT2との差電圧(Vref2-α(Vd-Voffa2))が充電される。 Thereby, the first capacitor 41 is charged with a voltage difference (Vref1-α (Vb-Voffa1)) between the first reference voltage Vref1 and the first amplified voltage AOUT1. On the other hand, the second capacitor 42 is charged with a difference voltage (Vref2-α (Vd−Voffa2)) between the second reference voltage Vref2 and the second amplified voltage AOUT2.
 上記の充電動作が行われた後、次に到来する基準クロック信号OSCの立上がりエッジに同期して、第1切替信号CTL1、第3切替信号CTL3がローレベルとされ、第2切替信号CTL2がハイレベルとされる。第2切替信号CTL2がハイレベルとされたことにより、切替スイッチ回路20Xは、第2切替状態になる。また、第3切替信号CTL3がローレベルとされたことにより、第1スイッチ回路43及び第2スイッチ回路44は、共にオフとなる。 After the above-described charging operation is performed, the first switching signal CTL1 and the third switching signal CTL3 are set to the low level and the second switching signal CTL2 is set to the high level in synchronization with the rising edge of the next incoming reference clock signal OSC. Level. When the second switching signal CTL2 is set to the high level, the changeover switch circuit 20X enters the second switching state. Further, since the third switching signal CTL3 is set to the low level, both the first switch circuit 43 and the second switch circuit 44 are turned off.
 第2切替信号CTL2のハイレベル遷移に応じて、切替スイッチ回路20Xが第2切替状態とされたことにより、ホール素子10Xの第2端子対である端子B・Dには、それぞれ、電源電圧VDD及びグランド電圧が印加され、第1端子対である端子C・Aには、それぞれ、ホール電圧が発生する。このとき、端子Cには電圧Vcが発生し、端子Aには電圧Vaが発生する。 In response to the high-level transition of the second switching signal CTL2, the changeover switch circuit 20X is set to the second switching state, so that the power supply voltage VDD is applied to the terminals B and D, which are the second terminal pair of the Hall element 10X, respectively. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals C and A, which is the first terminal pair. At this time, the voltage Vc is generated at the terminal C, and the voltage Va is generated at the terminal A.
 増幅回路30Xの第1増幅出力端iiiには、電圧Vaが増幅された第1増幅電圧AOUT1(=α(Va-Voffa1))が発生し、第2増幅出力端ivには、電圧Vcが増幅された第2増幅電圧AOUT2(=α(Vc-Voffa2))が発生する。 A first amplified voltage AOUT1 (= α (Va−Voffa1)) obtained by amplifying the voltage Va is generated at the first amplified output terminal iii of the amplifier circuit 30X, and the voltage Vc is amplified at the second amplified output terminal iv. The second amplified voltage AOUT2 (= α (Vc−Voffa2)) is generated.
 一方、第3切替信号CTL3のローレベル遷移に応じて、第1スイッチ回路43及び第2スイッチ回路44はともにオフされるが、第1キャパシタ41、第2キャパシタ42に充電されている電荷は変化することなく保持されるので、比較回路50Xの第1比較入力端vの第1比較電圧INC1及び第2比較入力端viの第2比較電圧INC2は、それぞれ、次の(2)式、(3)式のようになる。 On the other hand, according to the low-level transition of the third switching signal CTL3, both the first switch circuit 43 and the second switch circuit 44 are turned off, but the charges charged in the first capacitor 41 and the second capacitor 42 change. Therefore, the first comparison voltage INC1 at the first comparison input terminal v and the second comparison voltage INC2 at the second comparison input terminal vi of the comparison circuit 50X are respectively expressed by the following equations (2) and (3 )
INC1=Vref1-[α(Vb-Voffa1)-α(Va-Voff
     a1)]
    =Vref1-α(Vb-Va)  ・・・(2)
INC2=Vref2-[α(Vd-Voffa2)-α(Vc-Voff
     a2)]
    =Vref2-α(Vd-Vc)  ・・・(3)
INC1 = Vref1− [α (Vb−Voffa1) −α (Va−Voff
a1)]
= Vref1-α (Vb-Va) (2)
INC2 = Vref2- [α (Vd−Voffa2) −α (Vc−Voff
a2)]
= Vref2-α (Vd-Vc) (3)
 上記の(2)式、(2)式に示される通り、第1、第2比較電圧INC1、INC2には、入力オフセット電圧Voffa1、Voffa2が含まれていない。すなわち、入力オフセット電圧Voffa1、Voffa2は、第1切替状態と第2切替状態の操作を通じて相殺されている。 As shown in the above equations (2) and (2), the first and second comparison voltages INC1 and INC2 do not include the input offset voltages Voffa1 and Voffa2. That is, the input offset voltages Voffa1 and Voffa2 are canceled through the operations in the first switching state and the second switching state.
 そして、比較回路50Xでは、第1比較電圧INC1と第2比較電圧INC2との比較処理が行われる。ここで、図13の(1)で示すように、磁気センサ装置1にS極信号が入力されており、第1比較電圧INC1が第2比較電圧INC2よりも高ければ、比較結果信号COUTがハイレベルとされる。一方、図13の(4)で示すように、磁気センサ装置1にN極信号が入力されており、第1比較電圧INC1が第2比較電圧INC2よりも低ければ、比較結果信号COUTがローレベルに維持される。なお、比較回路50Xでの比較対象となる第1、第2比較電圧INC1、INC2の差分電圧を数式で表すと、以下の(4)式のようになる。 In the comparison circuit 50X, a comparison process between the first comparison voltage INC1 and the second comparison voltage INC2 is performed. Here, as shown by (1) in FIG. 13, if the S pole signal is input to the magnetic sensor device 1 and the first comparison voltage INC1 is higher than the second comparison voltage INC2, the comparison result signal COUT is high. Level. On the other hand, as shown in (4) of FIG. 13, if the N-pole signal is input to the magnetic sensor device 1 and the first comparison voltage INC1 is lower than the second comparison voltage INC2, the comparison result signal COUT is at a low level. Maintained. The difference voltage between the first and second comparison voltages INC1 and INC2 to be compared in the comparison circuit 50X is expressed by the following equation (4).
INC1-INC2
=Vref1-Vref2-α(Vb-Va)+α(Vd-Vc)
                            ・・・(4)
INC1-INC2
= Vref1-Vref2-α (Vb−Va) + α (Vd−Vc)
... (4)
 ところで、ホール素子10Xから発生されるホール電圧には、磁界の強さに比例した信号成分電圧と素子オフセット電圧とが含まれている。なお、ホール素子10Xの第1切替状態で端子B・D間に生じる電圧と、第2切替状態で端子C・A間に生じる電圧とでは、磁界の強さに応じた有効信号成分は同相で、素子オフセット電圧は逆相となる。 Incidentally, the Hall voltage generated from the Hall element 10X includes a signal component voltage and an element offset voltage proportional to the strength of the magnetic field. Note that the effective signal component corresponding to the strength of the magnetic field is in phase with the voltage generated between the terminals B and D in the first switching state of the Hall element 10X and the voltage generated between the terminals C and A in the second switching state. The element offset voltage is in reverse phase.
 電圧Vb、Vd、Va、Vcに含まれる素子オフセット電圧を、Vboffe、Vdoffe、Vaoffe、Vcoffeとすると、Vboffe-Vdoffe=Vaoffe-Vcoffeなる関係式が成立する。この関係式を変形すると、次の(5)式が得られる。 When the element offset voltages included in the voltages Vb, Vd, Va, and Vc are Vboffe, Vdoffe, Vaoffe, and Vcoffe, the relational expression Vboff−Vdoffe = Vaoffe−Vcoffe is established. When this relational expression is modified, the following expression (5) is obtained.
Vboffe-Vaoffe=Vdoffe-Vcoffe ・・・(5) Vboffe-Vaoffe = Vdoffe-Vcoffe (5)
 上記の(5)式は、先出の(4)式による第1比較電圧INC1と第2比較電圧INC2との比較において、素子オフセット電圧がキャンセルされていることを示している。 The above equation (5) indicates that the element offset voltage is canceled in the comparison between the first comparison voltage INC1 and the second comparison voltage INC2 according to the above equation (4).
 このように、ホール素子10Xの素子オフセット電圧及び増幅回路30Xの入力オフセット電圧はともに、比較回路50Xにおける比較動作においてキャンセルされている。 Thus, both the element offset voltage of the Hall element 10X and the input offset voltage of the amplifier circuit 30X are canceled in the comparison operation in the comparison circuit 50X.
 論理回路61は、上記で得られた比較結果信号COUTと、現在出力されている出力信号OUTに基づいて、論理演算信号LOUTを生成する。 The logic circuit 61 generates a logical operation signal LOUT based on the comparison result signal COUT obtained above and the output signal OUT currently output.
 より具体的に述べると、図13の(1)で示すように、出力信号OUTがハイレベルであるときに、比較結果信号COUTがハイレベルに遷移された場合には、S極信号が検出されたと判断され、出力信号OUTの論理を反転させるべく、論理演算信号LOUTがローレベルに遷移される。一方、図13の(4)で示すように、出力信号OUTがハイレベルであるときに、比較結果信号COUTがローレベルに維持された場合には、S極信号が検出されていないと判断され、出力信号OUTの論理を現状に維持すべく、論理演算信号LOUTがハイレベルに維持される。 More specifically, as shown in (1) of FIG. 13, when the comparison result signal COUT transitions to a high level when the output signal OUT is at a high level, the S pole signal is detected. In order to invert the logic of the output signal OUT, the logic operation signal LOUT is transited to a low level. On the other hand, as shown by (4) in FIG. 13, when the output signal OUT is at the high level and the comparison result signal COUT is maintained at the low level, it is determined that the S pole signal is not detected. The logic operation signal LOUT is maintained at a high level in order to maintain the logic of the output signal OUT at the current state.
 D型フリップフロップ62は、クロック信号CLK_SHの立上りエッジに同期して、論理回路61で生成された論理演算信号LOUTをラッチし、これを出力信号OUTとして出力する。従って、図13の(1)では、出力信号OUTがハイレベルからローレベルに切り替えられ、図13の(4)では、出力信号OUTがハイレベルのまま維持される。 The D-type flip-flop 62 latches the logical operation signal LOUT generated by the logic circuit 61 in synchronization with the rising edge of the clock signal CLK_SH, and outputs this as the output signal OUT. Accordingly, in (1) of FIG. 13, the output signal OUT is switched from the high level to the low level, and in (4) of FIG. 13, the output signal OUT is maintained at the high level.
 一方、図13の(2)及び(3)で示すように、出力信号OUTがローレベルである場合(すなわち、S極信号の検出後、次にN極信号を検出すべき状態)には、基準クロック信号OSCの立上がりエッジに同期して、まず第2切替信号CTL2及び第3切替信号CTL3がハイレベルとされる。第2切替信号CTL2がハイレベルとされたことにより、切替スイッチ回路20Xは第2切替状態になる。また、第3切替信号CTL3がハイレベルとされたことにより、第1スイッチ回路43及び第2スイッチ回路44はオンとなる。 On the other hand, as shown in (2) and (3) of FIG. 13, when the output signal OUT is at a low level (that is, after the detection of the S pole signal, the N pole signal should be detected next), In synchronization with the rising edge of the reference clock signal OSC, first, the second switching signal CTL2 and the third switching signal CTL3 are set to the high level. When the second switching signal CTL2 is set to the high level, the changeover switch circuit 20X enters the second switching state. Further, since the third switching signal CTL3 is set to the high level, the first switch circuit 43 and the second switch circuit 44 are turned on.
 第2切替信号CTL2のハイレベル遷移に応じて、切替スイッチ回路20Xが第2切替状態とされたことにより、ホール素子10Xの第2端子対である端子B・Dには、それぞれ、電源電圧VDD及びグランド電圧が印加され、第1端子対である端子C・Aには、それぞれ、ホール電圧が発生する。このとき、端子Cには電圧Vcが発生し、端子Aには電圧Vaが発生する。 In response to the high-level transition of the second switching signal CTL2, the changeover switch circuit 20X is set to the second switching state, so that the power supply voltage VDD is applied to the terminals B and D, which are the second terminal pair of the Hall element 10X, respectively. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals C and A, which is the first terminal pair. At this time, the voltage Vc is generated at the terminal C, and the voltage Va is generated at the terminal A.
 増幅回路30Xの第1増幅出力端iiiには、電圧Vaが増幅された第1増幅電圧AOUT1(=α(Va-Voffa1))が発生し、第2増幅出力端ivには、電圧Vcが増幅された第2増幅電圧AOUT2(=α(Vc-Voffa2))が発生する。 A first amplified voltage AOUT1 (= α (Va−Voffa1)) obtained by amplifying the voltage Va is generated at the first amplified output terminal iii of the amplifier circuit 30X, and the voltage Vc is amplified at the second amplified output terminal iv. The second amplified voltage AOUT2 (= α (Vc−Voffa2)) is generated.
 一方、第3切替信号CTL3のハイレベル遷移に応じて、第1スイッチ回路43及び第2スイッチ回路44がともにオンされたことにより、比較回路50Xの第1比較入力端vには、第1基準電圧Vref1が印加され、第2比較入力端viには、第2基準電圧Vref2が印加された状態となる。 On the other hand, when both the first switch circuit 43 and the second switch circuit 44 are turned on in response to the high level transition of the third switching signal CTL3, the first reference input terminal v of the comparison circuit 50X has a first reference input v. The voltage Vref1 is applied, and the second reference voltage Vref2 is applied to the second comparison input terminal vi.
 これにより、第1キャパシタ41には、第1基準電圧Vref1と第1増幅電圧AOUT1との差電圧(Vref1-α(Va-Voffa1))が充電される。一方、第2キャパシタ42には、第2基準電圧Vref2と第2増幅電圧AOUT2との差電圧(Vref2-α(Vc-Voffa2))が充電される。 Thereby, the first capacitor 41 is charged with a voltage difference (Vref1-α (Va-Voffa1)) between the first reference voltage Vref1 and the first amplified voltage AOUT1. On the other hand, the second capacitor 42 is charged with a difference voltage (Vref2−α (Vc−Voffa2)) between the second reference voltage Vref2 and the second amplified voltage AOUT2.
 上記の充電動作が行われた後、次に到来する基準クロック信号OSCの立上がりエッジに同期して、第2切替信号CTL2、第3切替信号CTL3がローレベルとされ、第1切替信号CTL1がハイレベルとされる。第1切替信号CTL1がハイレベルとされたことにより、切替スイッチ回路20Xは、第1切替状態になる。また、第3切替信号CTL3がローレベルとされたことにより、第1スイッチ回路43及び第2スイッチ回路44は、共にオフとなる。 After the above charging operation is performed, in synchronization with the rising edge of the next incoming reference clock signal OSC, the second switching signal CTL2 and the third switching signal CTL3 are set to the low level, and the first switching signal CTL1 is set to the high level. Level. When the first switch signal CTL1 is set to the high level, the switch circuit 20X enters the first switch state. Further, since the third switching signal CTL3 is set to the low level, both the first switch circuit 43 and the second switch circuit 44 are turned off.
 第1切替信号CTL1のハイレベル遷移に応じて、切替スイッチ回路20Xが第1切替状態とされたことにより、ホール素子10Xの第1端子対である端子A・Cには、それぞれ、電源電圧VDD及びグランド電圧が印加され、第2端子対である端子B・Dには、それぞれ、ホール電圧が発生する。このとき、端子Bには電圧Vbが発生し、端子Dには電圧Vdが発生する。 In response to the high-level transition of the first switching signal CTL1, the changeover switch circuit 20X is set to the first switching state, so that the terminals A and C, which are the first terminal pair of the Hall element 10X, are respectively supplied with the power supply voltage VDD. And a ground voltage are applied, and a Hall voltage is generated at each of the terminals B and D as the second terminal pair. At this time, the voltage Vb is generated at the terminal B, and the voltage Vd is generated at the terminal D.
 増幅回路30Xの第1増幅出力端iiiには、電圧Vbが増幅された第1増幅電圧AOUT1(=α(Vb-Voffa1))が発生し、第2増幅出力端ivには、電圧Vdが増幅された第2増幅電圧AOUT2(=α(Vd-Voffa2))が発生する。 A first amplified voltage AOUT1 (= α (Vb−Voffa1)) obtained by amplifying the voltage Vb is generated at the first amplified output terminal iii of the amplifier circuit 30X, and the voltage Vd is amplified at the second amplified output terminal iv. The second amplified voltage AOUT2 (= α (Vd−Voffa2)) is generated.
 一方、第3切替信号CTL3のローレベル遷移に応じて、第1スイッチ回路43及び第2スイッチ回路44はともにオフされるが、第1キャパシタ41、第2キャパシタ42に充電されている電荷は変化することなく保持されるので、比較回路50Xの第1比較入力端vの第1比較電圧INC1及び第2比較入力端viの第2比較電圧INC2は、それぞれ、次の(6)式、(7)式のようになる。 On the other hand, according to the low-level transition of the third switching signal CTL3, both the first switch circuit 43 and the second switch circuit 44 are turned off, but the charges charged in the first capacitor 41 and the second capacitor 42 change. Therefore, the first comparison voltage INC1 at the first comparison input terminal v and the second comparison voltage INC2 at the second comparison input terminal vi of the comparison circuit 50X are respectively expressed by the following equations (6) and (7 )
INC1=Vref1-[α(Va-Voffa1)-α(Vb-Voff
     a1)]
    =Vref1-α(Va-Vb)  ・・・(6)
INC2=Vref2-[α(Vc-Voffa2)-α(Vd-Voff
     a2)]
    =Vref2-α(Vc-Vd)  ・・・(7)
INC1 = Vref1− [α (Va−Voffa1) −α (Vb−Voff
a1)]
= Vref1-α (Va-Vb) (6)
INC2 = Vref2- [α (Vc−Voffa2) −α (Vd−Voff
a2)]
= Vref2-α (Vc-Vd) (7)
 上記の(6)式、(7)式に示される通り、第1、第2比較電圧INC1、INC2には、入力オフセット電圧Voffa1、Voffa2が含まれていない。すなわち、入力オフセット電圧Voffa1、Voffa2は、第2切替状態と第1切替状態の操作を通じて相殺されている。 As shown in the above formulas (6) and (7), the first and second comparison voltages INC1 and INC2 do not include the input offset voltages Voffa1 and Voffa2. That is, the input offset voltages Voffa1 and Voffa2 are canceled through the operations in the second switching state and the first switching state.
 そして、比較回路50Xでは、第1比較電圧INC1と第2比較電圧INC2との比較処理が行われる。ここで、図13の(3)で示すように、磁気センサ装置1にN極信号が入力されており、第1比較電圧INC1が第2比較電圧INC2よりも高ければ、比較結果信号COUTがハイレベルとされる。一方、図13の(2)で示すように、磁気センサ装置1にS極信号が入力されており、第1比較電圧INC1が第2比較電圧INC2よりも低ければ、比較結果信号COUTがローレベルに維持される。なお、比較回路50Xでの比較対象となる第1、第2比較電圧INC1、INC2の差分電圧を数式で表すと、以下の(8)式のようになる。 In the comparison circuit 50X, a comparison process between the first comparison voltage INC1 and the second comparison voltage INC2 is performed. Here, as shown by (3) in FIG. 13, if the N-pole signal is input to the magnetic sensor device 1 and the first comparison voltage INC1 is higher than the second comparison voltage INC2, the comparison result signal COUT is high. Level. On the other hand, as shown in (2) of FIG. 13, if the S pole signal is input to the magnetic sensor device 1 and the first comparison voltage INC1 is lower than the second comparison voltage INC2, the comparison result signal COUT is at a low level. Maintained. The differential voltage between the first and second comparison voltages INC1 and INC2 to be compared in the comparison circuit 50X is expressed by the following equation (8).
INC1-INC2
=Vref1-Vref2-α(Va-Vb)+α(Vc-Vd)
                            ・・・(8)
INC1-INC2
= Vref1-Vref2-α (Va−Vb) + α (Vc−Vd)
... (8)
 ところで、先述の通り、ホール素子10Xから発生されるホール電圧には、磁界の強さに比例した信号成分電圧と素子オフセット電圧が含まれている。なお、ホール素子10Xの第1切替状態で端子B・D間に生じる電圧と、第2切替状態で端子C・A間に生じる電圧では、磁界の強さに応じた有効信号成分は同相で、素子オフセット電圧は逆相となる。 Incidentally, as described above, the Hall voltage generated from the Hall element 10X includes a signal component voltage and an element offset voltage proportional to the strength of the magnetic field. The effective signal component according to the strength of the magnetic field is in phase with the voltage generated between the terminals B and D in the first switching state of the Hall element 10X and the voltage generated between the terminals C and A in the second switching state. The element offset voltage is in reverse phase.
 また、先述の通り、電圧Vb、Vd、Va、Vcに含まれる素子オフセット電圧を、Vboffe、Vdoffe、Vaoffe、Vcoffeとすると、Vboffe-Vdoffe=Vaoffe-Vcoffeなる関係式が成立する。この関係式を変形すると次の(9)式が得られる。 As described above, when the element offset voltage included in the voltages Vb, Vd, Va, and Vc is Vboff, Vdoffe, Vaoffe, and Vcoffe, a relational expression of Vboff−Vdoff = Vaoffe−Vcoffe is established. When this relational expression is transformed, the following expression (9) is obtained.
Vaoffe-Vboffe=Vcoffe-Vdoffe ・・・(9) Vaoffe-Vboffe = Vcoffe-Vdoffe (9)
 上記の(9)式は、先出の(8)式による第1比較電圧INC1と第2比較電圧INC2との比較において、素子オフセット電圧がキャンセルされていることを示している。 The above equation (9) indicates that the element offset voltage is canceled in the comparison between the first comparison voltage INC1 and the second comparison voltage INC2 according to the above equation (8).
 このように、ホール素子10Xの素子オフセット電圧及び増幅回路30Xの入力オフセット電圧はともに、比較回路50Xにおける比較動作においてキャンセルされている。 Thus, both the element offset voltage of the Hall element 10X and the input offset voltage of the amplifier circuit 30X are canceled in the comparison operation in the comparison circuit 50X.
 論理回路61は、上記で得られた比較結果信号COUTと、現在出力されている出力信号OUTに基づいて、論理演算信号LOUTを生成する。 The logic circuit 61 generates a logical operation signal LOUT based on the comparison result signal COUT obtained above and the output signal OUT currently output.
 より具体的に述べると、図13の(3)で示すように、出力信号OUTがローレベルであるときに、比較結果信号COUTがハイレベルに遷移された場合には、N極信号が検出されたと判断され、出力信号OUTの論理を反転させるべく、論理演算信号LOUTがハイレベルに遷移される。一方、図13の(2)で示すように、出力信号OUTがローレベルであるときに、比較結果信号COUTがローレベルに維持された場合には、N極信号が検出されていないと判断され、出力信号OUTの論理を現状に維持すべく、論理演算信号LOUTがローレベルに維持される。 More specifically, as shown in (3) of FIG. 13, when the output signal OUT is at a low level and the comparison result signal COUT transitions to a high level, an N pole signal is detected. The logic operation signal LOUT is transited to a high level to invert the logic of the output signal OUT. On the other hand, as shown in (2) of FIG. 13, when the comparison result signal COUT is maintained at the low level when the output signal OUT is at the low level, it is determined that the N pole signal is not detected. The logic operation signal LOUT is maintained at a low level in order to maintain the logic of the output signal OUT at the current state.
 D型フリップフロップ62は、クロック信号CLK_SHの立上りエッジに同期して、論理回路61で生成された論理演算信号LOUTをラッチし、これを出力信号OUTとして出力する。従って、図13の(3)では、出力信号OUTがローレベルからハイレベルに切り替えられ、図13の(2)では、出力信号OUTがローレベルのまま維持される。 The D-type flip-flop 62 latches the logical operation signal LOUT generated by the logic circuit 61 in synchronization with the rising edge of the clock signal CLK_SH, and outputs this as the output signal OUT. Accordingly, in (3) of FIG. 13, the output signal OUT is switched from the low level to the high level, and in (2) of FIG. 13, the output signal OUT is maintained at the low level.
 上記の交番磁界検知動作(出力信号OUTの生成動作)について、図14のフローチャートを参照しながら総括的に説明する。 The above-described alternating magnetic field detection operation (output signal OUT generation operation) will be generally described with reference to the flowchart of FIG.
 図14は、本発明に係る磁気センサ装置1の動作を説明するフローチャートである。 FIG. 14 is a flowchart for explaining the operation of the magnetic sensor device 1 according to the present invention.
 交番磁界を検知するに際して、ステップS1では、出力信号OUTがハイレベルであるか、ローレベルであるかの判定が行われる。ここで、出力信号OUTがハイレベルであると判定された場合には、フローがステップS2に進められる。一方、出力信号OUTがローレベルであると判定された場合には、フローがステップS6に進められる。 When detecting the alternating magnetic field, in step S1, it is determined whether the output signal OUT is at a high level or a low level. If it is determined that the output signal OUT is at a high level, the flow proceeds to step S2. On the other hand, if it is determined that the output signal OUT is at a low level, the flow proceeds to step S6.
 ステップS1において、出力信号OUTがハイレベルであると判定された場合、ステップS2では、現在の状況は、N極信号の検出後であって、次にS極信号を検出すべき状態であるという認識の下、S極信号を増幅すべく、第1切替状態から第2切替状態という順序で、切替スイッチ回路20Xのスイッチング制御が行われ、これにより得られた第1比較信号INC1と第2比較信号INC2との比較処理(両者の差分電圧と基準電圧VREFとの比較処理)が行われる。 If it is determined in step S1 that the output signal OUT is at a high level, in step S2, the current situation is that after the detection of the N pole signal, the S pole signal should be detected next. Under the recognition, in order to amplify the S pole signal, the switching control of the changeover switch circuit 20X is performed in the order from the first switching state to the second switching state, and the first comparison signal INC1 thus obtained and the second comparison signal are compared. Comparison processing with the signal INC2 (comparison processing between the difference voltage between them and the reference voltage VREF) is performed.
 続くステップS3では、比較結果信号COUTがハイレベルであるか、ローレベルであるかの判定が行われる。ここで、比較結果信号COUTがハイレベル(印加磁界B>S極の検出磁界レベルBop)であると判定された場合には、フローがステップS4に進められる。一方、比較結果信号COUTがローレベル(印加磁界B<S極の検出磁界レベルBop)であると判定された場合には、フローがステップS5に進められる。 In subsequent step S3, it is determined whether the comparison result signal COUT is at a high level or a low level. Here, if it is determined that the comparison result signal COUT is at the high level (applied magnetic field B> detected magnetic field level Bop of S pole), the flow proceeds to step S4. On the other hand, if it is determined that the comparison result signal COUT is at a low level (applied magnetic field B <detected magnetic field level Bop of S pole), the flow proceeds to step S5.
 ステップS3において、比較結果信号COUTがハイレベルであると判定された場合、ステップS4では、S極信号が検出されたという認識の下、出力信号OUTがハイレベルからローレベルに遷移される。その後、フローはステップS1に戻される。 In step S3, when it is determined that the comparison result signal COUT is at the high level, in step S4, the output signal OUT is changed from the high level to the low level with the recognition that the S pole signal has been detected. Thereafter, the flow returns to step S1.
 一方、ステップS3において、比較結果信号COUTがローレベルであると判定された場合、ステップS5では、S極信号が未検出であるという認識の下、出力信号OUTがハイレベルに維持される。その後、フローはステップS1に戻される。 On the other hand, when it is determined in step S3 that the comparison result signal COUT is at the low level, in step S5, the output signal OUT is maintained at the high level with the recognition that the S pole signal has not been detected. Thereafter, the flow returns to step S1.
 また、ステップS1において、出力信号OUTがローレベルであると判定された場合、ステップS6では、現在の状況は、S極信号の検出後であって、次にN極信号を検出すべき状態であるという認識の下、N極信号を増幅すべく、第2切替状態から第1切替状態という順序で、切替スイッチ回路20Xのスイッチング制御が行われ、これにより得られた第1比較信号INC1と第2比較信号INC2との比較処理(両者の差分電圧と基準電圧VREFとの比較処理)が行われる。 If it is determined in step S1 that the output signal OUT is at a low level, in step S6, the current situation is after detection of the S pole signal, and the state where the N pole signal should be detected next. With the recognition that there is, the switching control of the changeover switch circuit 20X is performed in the order from the second switching state to the first switching state in order to amplify the N pole signal, and the first comparison signal INC1 thus obtained and the first switching signal are obtained. Comparison processing with the two comparison signals INC2 (comparison processing between the difference voltage between them and the reference voltage VREF) is performed.
 続くステップS7では、比較結果信号COUTがハイレベルであるか、ローレベルであるかの判定が行われる。ここで、比較結果信号COUTがハイレベル(印加磁界B<N極の検出磁界レベルBrp)であると判定された場合には、フローがステップS8に進められる。一方、比較結果信号COUTがローレベル(印加磁界B>N極の検出磁界レベルBrp)であると判定された場合には、フローがステップS9に進められる。 In subsequent step S7, it is determined whether the comparison result signal COUT is at a high level or a low level. Here, if it is determined that the comparison result signal COUT is at the high level (applied magnetic field B <detected magnetic field level Brp with N poles), the flow proceeds to step S8. On the other hand, when it is determined that the comparison result signal COUT is at the low level (applied magnetic field B> N pole detection magnetic field level Brp), the flow proceeds to step S9.
 ステップS7において、比較結果信号COUTがハイレベルであると判定された場合、ステップS8では、N極信号が検出されたという認識の下、出力信号OUTがローレベルからハイレベルに遷移される。その後、フローはステップS1に戻される。 If it is determined in step S7 that the comparison result signal COUT is at a high level, in step S8, the output signal OUT is transitioned from a low level to a high level with the recognition that an N pole signal has been detected. Thereafter, the flow returns to step S1.
 一方、ステップS7において、比較結果信号COUTがローレベルであると判定された場合、ステップS9では、N極信号が未検出であるという認識の下、出力信号OUTがローレベルに維持される。その後、フローはステップS1に戻される。 On the other hand, when it is determined in step S7 that the comparison result signal COUT is at the low level, in step S9, the output signal OUT is maintained at the low level with the recognition that the N pole signal has not been detected. Thereafter, the flow returns to step S1.
 上記の通り、本発明に係る磁気センサ装置1は、検知された磁界の極性(S極/N極)に応じた論理の出力信号OUTを生成するものであって、ホール素子10Xと;ホール素子10Xの検出状態を第1切替状態と第2切替状態のいずれか一に切り替える切替スイッチ回路20Xと;ホール素子10Xの検出電圧と所定の基準電圧を用いて所定の比較処理を行い、その結果に応じた比較結果信号COUTを生成する比較回路50Xと;出力信号OUTと比較結果信号COUTに基づいて、出力信号OUTの論理を維持または反転するための論理演算信号LOUTを生成する論理回路61と;論理演算信号LOUTをラッチし、これを出力信号OUTとして出力するDフリップフロップ62と;出力信号OUTに基づいて、第1切替状態から第2切替状態という順序で、切替スイッチ回路20Xのスイッチング制御を行うか、或いは、第2切替状態から第1切替状態という順序で、切替スイッチ回路20Xのスイッチング制御を行うかを決定する制御回路80Xと;を有して成る構成とされている。 As described above, the magnetic sensor device 1 according to the present invention generates a logical output signal OUT corresponding to the detected polarity (S pole / N pole) of a magnetic field, and includes a Hall element 10X; A changeover switch circuit 20X that switches the detection state of 10X to one of the first switching state and the second switching state; a predetermined comparison process is performed using the detection voltage of the Hall element 10X and a predetermined reference voltage; A comparison circuit 50X that generates a corresponding comparison result signal COUT; and a logic circuit 61 that generates a logical operation signal LOUT for maintaining or inverting the logic of the output signal OUT based on the output signal OUT and the comparison result signal COUT; A D flip-flop 62 that latches the logical operation signal LOUT and outputs it as an output signal OUT; from the first switching state based on the output signal OUT; A control circuit 80X that determines whether to perform switching control of the changeover switch circuit 20X in the order of the two switching states or to perform switching control of the changeover switch circuit 20X in the order of the second switching state to the first switching state; It is set as the structure which comprises;
 このように、S極信号の検出時にもN極信号の検出時にも、比較回路50Xの各入力端間に印加する基準電圧VREFの極性を不変とする一方、出力信号OUTに応じて第1、第2切替状態の順序を決定することで、S極信号を増幅するかN極信号を増幅するかを切り替える構成とすることにより、仮に、比較回路50Xの非反転入力端(+)と反転入力端(-)との間に、比較オフセット電圧が存在する場合であっても、S極信号を検出するための検出磁界レベル、及び、N極信号を検出するための検出磁界レベルは、比較オフセット電圧に相当する分だけ、同様の傾向を持って変動することになる。すなわち、両者の差し引きを考えると、比較オフセット電圧の影響をキャンセルし、交番磁界検知の磁界検出レベルに対称性を持たせることが可能となる。 In this way, the polarity of the reference voltage VREF applied between the input terminals of the comparison circuit 50X is unchanged regardless of whether the S pole signal or the N pole signal is detected, while the first, By determining the order of the second switching state to switch between amplifying the S pole signal and the N pole signal, the non-inverting input terminal (+) and the inverting input of the comparison circuit 50X are temporarily assumed. The detected magnetic field level for detecting the S pole signal and the detected magnetic field level for detecting the N pole signal are compared with each other even when a comparative offset voltage exists between the terminal (−) and the terminal (−). The amount corresponding to the voltage fluctuates with the same tendency. In other words, considering the subtraction of the two, it is possible to cancel the influence of the comparison offset voltage and to give symmetry to the magnetic field detection level of the alternating magnetic field detection.
 従って、上記構成によれば、出力信号OUTに現れるパルスのデューティ比を理想値(50%)とすることができるので、ユーザにとって使い勝手の良い磁気センサ装置を提供することが可能となる。 Therefore, according to the above configuration, since the duty ratio of the pulse appearing in the output signal OUT can be set to an ideal value (50%), it is possible to provide a user-friendly magnetic sensor device.
 また、上記構成によれば、従来におけるスイッチタイプの磁気センサ装置を基礎としてその回路構成を流用し、ロジック部分(論理回路や制御回路)のみを修正するだけで、交番磁界検知タイプの磁気センサ装置を実現することができるので、開発コストを削減することが可能となる。 In addition, according to the above configuration, an alternating magnetic field detection type magnetic sensor device can be obtained by diverting only the logic portion (logic circuit or control circuit) by diverting the circuit configuration based on the conventional switch type magnetic sensor device. Therefore, development costs can be reduced.
 また、上記構成によれば、基準電圧VREFの極性切替用スイッチが不要となる。 Further, according to the above configuration, the polarity switching switch for the reference voltage VREF is not necessary.
 なお、本発明の構成は、上記実施形態のほか、発明の主旨を逸脱しない範囲で種々の変更を加えることが可能である。すなわち、上記実施形態は、全ての点で例示であって、制限的なものではないと考えられるべきであり、本発明の技術的範囲は、上記実施形態の説明ではなく、特許請求の範囲によって示されるものであり、特許請求の範囲と均等の意味及び範囲内に属する全ての変更が含まれると理解されるべきである。 The configuration of the present invention can be variously modified in addition to the above-described embodiment without departing from the spirit of the invention. That is, the above-described embodiment is an example in all respects and should not be considered as limiting, and the technical scope of the present invention is not the description of the above-described embodiment, but the claims. It should be understood that all modifications that come within the meaning and range of equivalents of the claims are included.
 例えば、上記実施形態では、磁電変換素子として、ホール素子を用いた構成を例に挙げて説明を行ったが、磁電変換素子としては、印加される磁界の変化に応じて電気的特性が変化され、その変化に応じた出力電圧を取り出し得るものであれば良く、ホール素子のほか、磁気抵抗素子などを用いても構わない。 For example, in the above-described embodiment, the configuration using a Hall element as the magnetoelectric conversion element has been described as an example. However, as the magnetoelectric conversion element, the electrical characteristics are changed according to the change of the applied magnetic field. As long as the output voltage can be extracted according to the change, a magnetoresistive element or the like may be used in addition to the Hall element.
 また、上記実施形態では、磁気センサ装置1を交番磁界検知タイプとした構成を例に挙げて説明を行ったが、本発明の構成はこれに限定されるものではなく、磁気センサ装置1を単極磁界検知タイプとしても構わない。 In the above embodiment, the magnetic sensor device 1 is described as an alternating magnetic field detection type as an example. However, the configuration of the present invention is not limited to this, and the magnetic sensor device 1 is a single unit. It may be a polar magnetic field detection type.
 また、上記実施形態では、単一チップ内に2つの磁電変換素子を集積化した構成を例に挙げて説明を行ったが、複数の運動方向に対応すべく、単一チップ内に3つ以上の磁電変換素子を集積化しても構わない。 In the above-described embodiment, the configuration in which two magnetoelectric conversion elements are integrated in a single chip has been described as an example. However, in order to correspond to a plurality of movement directions, three or more in a single chip are used. These magnetoelectric conversion elements may be integrated.
 また、上記実施形態では、磁気センサ装置を不動とし、磁石を有するターゲットを可動とした構成を例示して説明を行ったが、本発明の構成はこれに限定されるものではなく、磁石を不動とし、磁気センサ装置を有するターゲットを可動としても構わない。 Moreover, in the said embodiment, although demonstrated by exemplifying the structure which made the magnetic sensor apparatus stationary and made the target which has a magnet movable, the structure of this invention is not limited to this, A magnet is made stationary. The target having the magnetic sensor device may be movable.
 本発明に係る磁気センサ装置は、例えば、回転駆動やスライド駆動される磁石を有するアプリケーション全般(携帯電話機、デジタルスチルカメラ、デジタルビデオカメラ等)に好適に利用することができる。 The magnetic sensor device according to the present invention can be suitably used, for example, for all applications (mobile phone, digital still camera, digital video camera, etc.) having magnets that are driven to rotate or slide.
   1  磁気センサ装置
   2(2A、2B)  ターゲット
   3  解析装置
   10X、10Y  ホール素子
   20X、20Y  切替スイッチ回路
   21~28  スイッチ
   30X、30Y  増幅回路
   31、31A、31B  第1増幅回路
   32、32A、32B  第2増幅回路
   33  帰還抵抗
   34、35  スイッチ回路
   40X、40Y  サンプルホールド回路
   41、42  第1キャパシタ、第2キャパシタ
   43、44  第1、第2スイッチ回路
   50X、50Y  比較回路
   51  コンパレータ
   52、53 スイッチ回路
   60X、60Y  ラッチ回路
   61  論理回路
   61-1、61-2  インバータ
   61-3、61-4  論理積演算器
   61-5  論理和演算器
   62  D型フリップフロップ
   70X、70Y  出力回路
   80X、80Y  制御回路
   81  スタートパルス信号生成回路
   82  シフトレジスタ
   83  論理和演算器
   94、85  インバータ
   86  切替信号生成回路
   86-1、86-2、86-3、86-4  論理積演算器
   86-5、86-6  論理和演算器
   90  発振回路
   100  基準電圧生成回路
   100-1~100-3  分圧抵抗器
   100-4  P型MOSトランジスタ
   100-5  N型MOSトランジスタ
   100-6、100-7  インバータ
   VDD 電源電圧
   Vref1、Vref2 第1、第2基準電圧
   POW 電源オン信号
   /POW  反転電源オン信号
   CTL1、CTL2、CTL3 第1、第2、第3切替信号
   AOUT1、AOUT2  第1、第2増幅電圧
   INC1、INC2  第1、第2比較電圧
   COUT  比較結果信号
   LOUT  論理演算信号
   OUT 出力信号
   OUTX  第1出力信号
   OUTY  第2出力信号
   CLK_SH  クロック信号
   OSC 基準クロック信号
   SIG スタートパルス信号
   S1、S2  第1、第2タイミング信号
DESCRIPTION OF SYMBOLS 1 Magnetic sensor apparatus 2 (2A, 2B) Target 3 Analysis apparatus 10X, 10Y Hall element 20X, 20Y Changeover switch circuit 21-28 Switch 30X, 30Y Amplification circuit 31, 31A, 31B 1st amplification circuit 32, 32A, 32B 2nd Amplifier circuit 33 Feedback resistor 34, 35 Switch circuit 40X, 40Y Sample hold circuit 41, 42 First capacitor, Second capacitor 43, 44 First, second switch circuit 50X, 50Y Comparison circuit 51 Comparator 52, 53 Switch circuit 60X, 60Y latch circuit 61 logic circuit 61-1 and 61-2 inverter 61-3 and 61-4 AND operation unit 61-5 OR operation unit 62 D-type flip-flop 70X and 70Y output circuit 80X and 80Y control Control circuit 81 Start pulse signal generation circuit 82 Shift register 83 OR operation unit 94, 85 Inverter 86 Switching signal generation circuit 86-1, 86-2, 86-3, 86-4 AND operation unit 86-5, 86- 6 OR operator 90 Oscillation circuit 100 Reference voltage generation circuit 100-1 to 100-3 Voltage dividing resistor 100-4 P-type MOS transistor 100-5 N-type MOS transistor 100-6, 100-7 Inverter VDD Power supply voltage Vref1 , Vref2 first and second reference voltages POW power on signal / POW inverted power on signal CTL1, CTL2, CTL3 first, second, third switching signal AOUT1, AOUT2 first, second amplified voltage INC1, INC2 first, Second comparison voltage COUT comparison result signal OUT logic operation signal OUT output signal OUTX first output signal OUTY second output signal CLK_SH clock signal OSC reference clock signal SIG start pulse signal S1, S2 first, second timing signal

Claims (20)

  1.  所定の素子間距離を隔てて配置された複数の磁電変換素子と;
     前記複数の磁電変換素子で各々検知された磁界の強度ないしは極性に応じて各々の論理レベルが変化する複数の出力信号を各々生成する複数の信号処理回路と;
     を単一の半導体チップ内に集積化して成ることを特徴とする磁気センサ装置。
    A plurality of magnetoelectric transducers arranged at a predetermined inter-element distance;
    A plurality of signal processing circuits that respectively generate a plurality of output signals whose logic levels change according to the intensity or polarity of the magnetic field respectively detected by the plurality of magnetoelectric transducers;
    Are integrated in a single semiconductor chip.
  2.  前記複数の信号処理回路は、それぞれ、
     前記磁電変換素子の検出状態を第1、第2切替状態のいずれか一に切り替える切替スイッチ回路と;
     前記磁電変換素子の検出電圧と所定の基準電圧を用いて所定の比較処理を行い、その結果に応じた比較結果信号を生成する比較回路と;
     前記出力信号と前記比較結果信号に基づいて、前記出力信号の論理を維持または反転するための論理演算信号を生成する論理回路と;
     前記論理演算信号をラッチし、これを前記出力信号として出力するD型フリップフロップと;
     前記出力信号に基づいて、前記第1切替状態から前記第2切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うか、或いは、前記第2切替状態から前記第1切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うかを決定する制御回路と;
     を有して成ることを特徴とする請求項1に記載の磁気センサ装置。
    Each of the plurality of signal processing circuits is
    A changeover switch circuit for switching the detection state of the magnetoelectric conversion element to one of the first and second switching states;
    A comparison circuit that performs a predetermined comparison process using a detection voltage of the magnetoelectric conversion element and a predetermined reference voltage, and generates a comparison result signal according to the result;
    A logic circuit that generates a logical operation signal for maintaining or inverting the logic of the output signal based on the output signal and the comparison result signal;
    A D-type flip-flop that latches the logical operation signal and outputs it as the output signal;
    Based on the output signal, the switching control of the selector switch circuit is performed in the order from the first switching state to the second switching state, or in the order from the second switching state to the first switching state, A control circuit for determining whether to perform switching control of the changeover switch circuit;
    The magnetic sensor device according to claim 1, comprising:
  3.  前記複数の磁電変換素子は、いずれもホール素子であることを特徴とする請求項1に記載の磁気センサ装置。 The magnetic sensor device according to claim 1, wherein each of the plurality of magnetoelectric transducers is a Hall element.
  4.  前記複数の信号処理回路は、それぞれ、
     前記磁電変換素子の検出状態を第1、第2切替状態のいずれか一に切り替える切替スイッチ回路と;
     前記磁電変換素子の検出電圧と所定の基準電圧を用いて所定の比較処理を行い、その結果に応じた比較結果信号を生成する比較回路と;
     前記出力信号と前記比較結果信号に基づいて、前記出力信号の論理を維持または反転するための論理演算信号を生成する論理回路と;
     前記論理演算信号をラッチし、これを前記出力信号として出力するD型フリップフロップと;
     前記出力信号に基づいて、前記第1切替状態から前記第2切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うか、或いは、前記第2切替状態から前記第1切替状態という順序で、前記切替スイッチ回路のスイッチング制御を行うかを決定する制御回路と;
     を有して成ることを特徴とする請求項3に記載の磁気センサ装置。
    Each of the plurality of signal processing circuits is
    A changeover switch circuit for switching the detection state of the magnetoelectric conversion element to one of the first and second switching states;
    A comparison circuit that performs a predetermined comparison process using a detection voltage of the magnetoelectric conversion element and a predetermined reference voltage, and generates a comparison result signal according to the result;
    A logic circuit that generates a logical operation signal for maintaining or inverting the logic of the output signal based on the output signal and the comparison result signal;
    A D-type flip-flop that latches the logical operation signal and outputs it as the output signal;
    Based on the output signal, the switching control of the selector switch circuit is performed in the order from the first switching state to the second switching state, or in the order from the second switching state to the first switching state, A control circuit for determining whether to perform switching control of the changeover switch circuit;
    The magnetic sensor device according to claim 3, comprising:
  5.  請求項1に記載の磁気センサ装置と、
     磁石を有するターゲットと、
     前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、
     を有して成ることを特徴とする電子機器。
    A magnetic sensor device according to claim 1;
    A target having a magnet;
    An analysis device for analyzing the movement of the target based on the plurality of output signals output from the magnetic sensor device;
    An electronic device characterized by comprising:
  6.  前記磁気センサ装置は、自身に集積化された前記複数の磁電変換素子が前記ターゲットの運動方向に沿って並ぶように配置されており、
     前記解析装置は、前記磁気センサ装置から出力される第1出力信号の論理レベルが変化してから第2出力信号の論理レベルが変化するまでの出力時間差を検出し、前記出力時間差と前記所定の素子間距離から前記ターゲットの運動速度を算出することを特徴とする請求項5に記載の電子機器。
    The magnetic sensor device is arranged such that the plurality of magnetoelectric transducers integrated in the magnetic sensor device are arranged along the movement direction of the target,
    The analysis device detects an output time difference from a change in the logic level of the first output signal output from the magnetic sensor device to a change in the logic level of the second output signal, and the output time difference and the predetermined value The electronic apparatus according to claim 5, wherein a movement speed of the target is calculated from a distance between elements.
  7.  前記磁石は、前記ターゲットの運動方向に沿って交互に並ぶS極の磁区とN極の磁区を複数有して成り、
     前記磁気センサ装置には、前記ターゲットの運動に伴って交番磁界が印加されることを特徴とする請求項5に記載の電子機器。
    The magnet includes a plurality of S-pole magnetic domains and N-pole magnetic domains arranged alternately along the direction of movement of the target,
    6. The electronic apparatus according to claim 5, wherein an alternating magnetic field is applied to the magnetic sensor device as the target moves.
  8.  所定周波数の基準クロック信号を出力する発振器をさらに有し、前記制御回路は、前記発振器から出力される前記基準クロック信号に基づいて動作することを特徴とする請求項2に記載の磁気センサ装置。 3. The magnetic sensor device according to claim 2, further comprising an oscillator that outputs a reference clock signal having a predetermined frequency, wherein the control circuit operates based on the reference clock signal output from the oscillator.
  9.  前記制御回路は、
     前記基準クロック信号に基づいてスタートパルス信号を生成するスタートパルス信号生成回路と、
     前記基準クロック信号と前記スタートパルス信号とが入力され、前記基準クロック信号に基づいて前記スタートパルス信号を順次取り込むシフトレジスタと、
     前記シフトレジスタの出力と前記出力信号に基づいて第1切替信号、第2切替信号、及び、第3切替信号を生成する切替信号生成回路と、
     を含むことを特徴とする請求項8に記載の磁気センサ装置。
    The control circuit includes:
    A start pulse signal generation circuit that generates a start pulse signal based on the reference clock signal;
    A shift register that receives the reference clock signal and the start pulse signal, and sequentially captures the start pulse signal based on the reference clock signal;
    A switching signal generating circuit for generating a first switching signal, a second switching signal, and a third switching signal based on the output of the shift register and the output signal;
    The magnetic sensor device according to claim 8, comprising:
  10.  前記シフトレジスタの出力は、第1タイミング信号と第2タイミング信号から成ることを特徴とする請求項9に記載の磁気センサ装置。 10. The magnetic sensor device according to claim 9, wherein the output of the shift register includes a first timing signal and a second timing signal.
  11.  前記複数の信号処理回路は、それぞれ、
     非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、
     非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、
     前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、
     前記第1演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第2帰還抵抗と、
     前記第2演算増幅器の反転入力端と出力端との間に接続された第3帰還抵抗と、
     前記第2演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第4帰還抵抗と、
     を含むことを特徴とする請求項2に記載の磁気センサ装置。
    Each of the plurality of signal processing circuits is
    A first operational amplifier having a non-inverting input connected to the first output of the changeover switch circuit;
    A second operational amplifier having a non-inverting input terminal connected to a second output terminal of the changeover switch circuit;
    A first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier;
    A second feedback resistor connected between an inverting input terminal of the first operational amplifier and an application terminal of a predetermined reference voltage;
    A third feedback resistor connected between the inverting input terminal and the output terminal of the second operational amplifier;
    A fourth feedback resistor connected between an inverting input terminal of the second operational amplifier and an application terminal of a predetermined reference voltage;
    The magnetic sensor device according to claim 2, comprising:
  12.  前記複数の信号処理回路は、それぞれ、
     非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、
     非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、
     前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、
     前記第2演算増幅器の反転入力端と出力端との間に接続された第2帰還抵抗と、
     前記第1演算増幅器の反転入力端と前記第2演算増幅器の反転入力端との間に接続された第3帰還抵抗と、
     を含むことを特徴とする請求項2に記載の磁気センサ装置。
    Each of the plurality of signal processing circuits is
    A first operational amplifier having a non-inverting input connected to the first output of the changeover switch circuit;
    A second operational amplifier having a non-inverting input terminal connected to a second output terminal of the changeover switch circuit;
    A first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier;
    A second feedback resistor connected between an inverting input terminal and an output terminal of the second operational amplifier;
    A third feedback resistor connected between the inverting input terminal of the first operational amplifier and the inverting input terminal of the second operational amplifier;
    The magnetic sensor device according to claim 2, comprising:
  13.  前記基準電圧を生成する基準電圧生成回路は、
     電源電圧を分圧することにより前記基準電圧を生成する分圧抵抗器と、
     前記分圧抵抗器の前記電源電圧側に接続され、所定の制御信号に応じてオン/オフされる第1トランジスタと、
     前記分圧抵抗器のグランド側に接続され、前記制御信号に応じてオン/オフされる第2トランジスタと、
     を含むことを特徴とする請求項2に記載の磁気センサ装置。
    The reference voltage generation circuit for generating the reference voltage is:
    A voltage dividing resistor that generates the reference voltage by dividing a power supply voltage;
    A first transistor connected to the power supply voltage side of the voltage dividing resistor and turned on / off according to a predetermined control signal;
    A second transistor connected to the ground side of the voltage dividing resistor and turned on / off according to the control signal;
    The magnetic sensor device according to claim 2, comprising:
  14.  請求項2に記載の磁気センサ装置と、
     磁石を有するターゲットと、
     前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、
     を有して成ることを特徴とする電子機器。
    A magnetic sensor device according to claim 2;
    A target having a magnet;
    An analysis device for analyzing the movement of the target based on the plurality of output signals output from the magnetic sensor device;
    An electronic device characterized by comprising:
  15.  請求項3に記載の磁気センサ装置と、
     磁石を有するターゲットと、
     前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、
     を有して成ることを特徴とする電子機器。
    A magnetic sensor device according to claim 3,
    A target having a magnet;
    An analysis device for analyzing the movement of the target based on the plurality of output signals output from the magnetic sensor device;
    An electronic device characterized by comprising:
  16.  請求項4に記載の磁気センサ装置と、
     磁石を有するターゲットと、
     前記磁気センサ装置から出力される前記複数の出力信号に基づいて前記ターゲットの運動を解析する解析装置と、
     を有して成ることを特徴とする電子機器。
    A magnetic sensor device according to claim 4,
    A target having a magnet;
    An analysis device for analyzing the movement of the target based on the plurality of output signals output from the magnetic sensor device;
    An electronic device characterized by comprising:
  17.  前記磁石は、前記ターゲットの運動方向に沿って交互に並ぶS極の磁区とN極の磁区を複数有して成り、
     前記磁気センサ装置には、前記ターゲットの運動に伴って交番磁界が印加されることを特徴とする請求項6に記載の電子機器。
    The magnet includes a plurality of S-pole magnetic domains and N-pole magnetic domains arranged alternately along the direction of movement of the target,
    The electronic apparatus according to claim 6, wherein an alternating magnetic field is applied to the magnetic sensor device as the target moves.
  18.  前記複数の信号処理回路は、それぞれ、
     非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、
     非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、
     前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、
     前記第1演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第2帰還抵抗と、
     前記第2演算増幅器の反転入力端と出力端との間に接続された第3帰還抵抗と、
     前記第2演算増幅器の反転入力端と所定の基準電圧の印加端との間に接続された第4帰還抵抗と、
     を含むことを特徴とする請求項4に記載の磁気センサ装置。
    Each of the plurality of signal processing circuits is
    A first operational amplifier having a non-inverting input connected to the first output of the changeover switch circuit;
    A second operational amplifier having a non-inverting input terminal connected to a second output terminal of the changeover switch circuit;
    A first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier;
    A second feedback resistor connected between an inverting input terminal of the first operational amplifier and an application terminal of a predetermined reference voltage;
    A third feedback resistor connected between the inverting input terminal and the output terminal of the second operational amplifier;
    A fourth feedback resistor connected between an inverting input terminal of the second operational amplifier and an application terminal of a predetermined reference voltage;
    The magnetic sensor device according to claim 4, comprising:
  19.  前記複数の信号処理回路は、それぞれ、
     非反転入力端が前記切替スイッチ回路の第1出力端に接続された第1演算増幅器と、
     非反転入力端が前記切替スイッチ回路の第2出力端に接続された第2演算増幅器と、
     前記第1演算増幅器の反転入力端と出力端との間に接続された第1帰還抵抗と、
     前記第2演算増幅器の反転入力端と出力端との間に接続された第2帰還抵抗と、
     前記第1演算増幅器の反転入力端と前記第2演算増幅器の反転入力端との間に接続された第3帰還抵抗と、
     を含むことを特徴とする請求項4に記載の磁気センサ装置。
    Each of the plurality of signal processing circuits is
    A first operational amplifier having a non-inverting input connected to the first output of the changeover switch circuit;
    A second operational amplifier having a non-inverting input terminal connected to a second output terminal of the changeover switch circuit;
    A first feedback resistor connected between an inverting input terminal and an output terminal of the first operational amplifier;
    A second feedback resistor connected between an inverting input terminal and an output terminal of the second operational amplifier;
    A third feedback resistor connected between the inverting input terminal of the first operational amplifier and the inverting input terminal of the second operational amplifier;
    The magnetic sensor device according to claim 4, comprising:
  20.  前記基準電圧を生成する基準電圧生成回路は、
     電源電圧を分圧することにより前記基準電圧を生成する分圧抵抗器と、
     前記分圧抵抗器の前記電源電圧側に接続され、所定の制御信号に応じてオン/オフされる第1トランジスタと、
     前記分圧抵抗器のグランド側に接続され、前記制御信号に応じてオン/オフされる第2トランジスタと、
     を含むことを特徴とする請求項4に記載の磁気センサ装置。
    The reference voltage generation circuit for generating the reference voltage is:
    A voltage dividing resistor that generates the reference voltage by dividing a power supply voltage;
    A first transistor connected to the power supply voltage side of the voltage dividing resistor and turned on / off according to a predetermined control signal;
    A second transistor connected to the ground side of the voltage dividing resistor and turned on / off according to the control signal;
    The magnetic sensor device according to claim 4, comprising:
PCT/JP2010/063459 2009-08-19 2010-08-09 Magnetic sensor device and electronic equipment using same WO2011021521A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2009189650A JP2011043331A (en) 2009-08-19 2009-08-19 Magnetic sensor device and electronic equipment using device
JP2009-189650 2009-08-19

Publications (1)

Publication Number Publication Date
WO2011021521A1 true WO2011021521A1 (en) 2011-02-24

Family

ID=43606976

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2010/063459 WO2011021521A1 (en) 2009-08-19 2010-08-09 Magnetic sensor device and electronic equipment using same

Country Status (2)

Country Link
JP (1) JP2011043331A (en)
WO (1) WO2011021521A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8752437B2 (en) 2011-03-15 2014-06-17 Kla-Tencor Corporation Magnet strength measurement
US9921274B2 (en) 2014-04-30 2018-03-20 Haechitech Corporation Sensing apparatus using groups of hall sensors and apparatus using the sensing apparatus
CN107886614A (en) * 2017-11-28 2018-04-06 威海华菱光电股份有限公司 Magnetism sensor
CN108377146A (en) * 2018-04-16 2018-08-07 歌尔科技有限公司 A kind of Hall detection circuit and intelligent wearable device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6010880B2 (en) * 2011-04-15 2016-10-19 株式会社ニコン POSITION INFORMATION DETECTING SENSOR, POSITION INFORMATION DETECTING SENSOR MANUFACTURING METHOD, ENCODER, MOTOR DEVICE, AND ROBOT DEVICE
JP5970743B2 (en) * 2011-04-15 2016-08-17 株式会社ニコン POSITION INFORMATION DETECTING SENSOR, POSITION INFORMATION DETECTING SENSOR MANUFACTURING METHOD, ENCODER, MOTOR DEVICE, AND ROBOT DEVICE
JP6158682B2 (en) * 2013-10-25 2017-07-05 エスアイアイ・セミコンダクタ株式会社 Magnetic sensor circuit
JP7097671B2 (en) * 2017-01-15 2022-07-08 甲神電機株式会社 IC magnetic sensor and lead frame used for it

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004333436A (en) * 2003-05-12 2004-11-25 Nsk Ltd Rotational speed detecting device and roller bearing with rotational speed detecting sensor
JP2009002851A (en) * 2007-06-22 2009-01-08 Rohm Co Ltd Magnetic sensor circuit and electronic device with the use thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004333436A (en) * 2003-05-12 2004-11-25 Nsk Ltd Rotational speed detecting device and roller bearing with rotational speed detecting sensor
JP2009002851A (en) * 2007-06-22 2009-01-08 Rohm Co Ltd Magnetic sensor circuit and electronic device with the use thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8752437B2 (en) 2011-03-15 2014-06-17 Kla-Tencor Corporation Magnet strength measurement
US9921274B2 (en) 2014-04-30 2018-03-20 Haechitech Corporation Sensing apparatus using groups of hall sensors and apparatus using the sensing apparatus
CN107886614A (en) * 2017-11-28 2018-04-06 威海华菱光电股份有限公司 Magnetism sensor
CN108377146A (en) * 2018-04-16 2018-08-07 歌尔科技有限公司 A kind of Hall detection circuit and intelligent wearable device
CN108377146B (en) * 2018-04-16 2024-04-02 歌尔科技有限公司 Hall detection circuit and intelligent wearing equipment

Also Published As

Publication number Publication date
JP2011043331A (en) 2011-03-03

Similar Documents

Publication Publication Date Title
JP4897585B2 (en) Magnetic sensor circuit and electronic device using the same
JP4901720B2 (en) Magnetic sensor circuit and portable terminal having the magnetic sensor circuit
WO2011021521A1 (en) Magnetic sensor device and electronic equipment using same
JP2008032424A (en) Sensor circuit, semiconductor device, electronic equipment
US8193807B2 (en) Magnetic sensor device
US9128127B2 (en) Sensor device
JP2008032431A (en) Magnetic sensor circuit, semiconductor device, magnetic sensor device
TWI570388B (en) Sensing device
US9267818B2 (en) Magnetic sensor device
JP2013178229A (en) Hall electromotive force signal detector and its current sensor
KR102262379B1 (en) Sensor device
JP2012181128A (en) Magnetic sensor
US9322672B2 (en) Magnetic sensor device
CN114279470B (en) Latching hall sensor and electronic device
CN105937916B (en) Comparison circuit and sensor device
CN114280512B (en) Single Hall sensing device and electronic equipment
JP2012107939A (en) Magnetic sensor using magnetoresistive element
JPH112548A (en) Displacement quantity detecting device
JP2010243294A (en) Magnetometric sensor and magnetic detection method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10809866

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10809866

Country of ref document: EP

Kind code of ref document: A1