Semiconductor Device

The semiconductor device addresses asymmetrical magnetoelectric conversion issues in magnetic switches by switching drive current directions based on a latch output signal, ensuring symmetry and reducing offset voltage effects, thus improving stability and efficiency.

JP7535954B2Active Publication Date: 2024-08-19SEIKO INSTR INC
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2021006274
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-03-13
Filing Date
2021-01-19
Publication Date
2024-08-19
Estimated Expiration
2041-01-19

AI Technical Summary

Technical Problem

Conventional bidirectional driving spinning current methods in magnetic switches often result in asymmetrical magnetoelectric conversion characteristics due to offset voltages, leading to issues like rotation speed fluctuations in BL DC motors and variations in magnetic detection distance.

Method used

A semiconductor device with a magnetic switch that includes a Hall element and a control circuit to alternately switch the direction of drive current based on a latch output signal, using a first and second mode to ensure symmetry in magnetoelectric conversion characteristics.

Benefits of technology

The solution stabilizes magnetoelectric conversion characteristics, achieving symmetrical hysteresis and reducing the influence of residual offset voltage, while maintaining processing speed and reducing power consumption compared to four-direction methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007535954000001
    Figure 0007535954000001
  • Figure 0007535954000008
    Figure 0007535954000008
  • Figure 0007535954000014
    Figure 0007535954000014
Patent Text Reader

Abstract

To provide a semiconductor device capable of stably securing symmetry in magnetoelectric conversion property with bidirectional driven spinning current method.SOLUTION: A semiconductor device 1A comprises a magnetic switch 10A provided on a semiconductor substrate 2. The magnetic switch 10A comprises: a horizontal Hall element 20 including electrodes 21, 22 and electrodes 23, 24 arranged in a position perpendicular to the electrodes 21, 22; switches SP1-SP4, SN1-SN4; a switching circuit capable of selecting the driving current direction of the Hall element in four directions; an SH comparator 40A performing a first operation for sampling a signal transferred from the Hall element and a second operation for outputting a signal based on the comparison result of the sampled signal value and reference value, alternately; a latch circuit 80A holding the output signal and outputting it as latch output signal; and a control circuit 50 selecting driving current direction in a period of the first operation and a period of the second operation on the basis of the latch output signal.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a semiconductor device. [Background technology]

[0002] Hall elements are used in various applications because they can detect positions and angles as magnetic sensors without contact. One example of the application of Hall elements is a magnetic switch. A magnetic switch has, for example, a Hall element and a peripheral circuit including an amplifier and a comparator, and the Hall element and the peripheral circuit are integrated on a semiconductor chip. Magnetic switches are classified according to the method of detecting magnetism, and are known to include a bipolar magnetic field detection type that can detect magnetic fields of both poles, the south pole and the north pole, and an alternating magnetic field detection type that can detect an alternating magnetic field in which the south pole and the north pole alternate over time.

[0003] In alternating-polarity detection magnetic switches and omnipolar detection magnetic switches, symmetry between the south pole threshold and the north pole threshold is important. However, asymmetry occurs due to the effects of offset voltages in the Hall element itself and in the amplifier and comparator that are placed downstream of the Hall element.

[0004] A hysteresis width is sometimes set in magnetic switches to prevent chattering of the output signal due to internal and external noise when a zero magnetic field is applied. The hysteresis width is defined as the difference between the operating point, which is the south pole threshold, and the return point, which is the north pole threshold. The magnetic offset is defined as the average value of the operating point and the return point. The magnetic offset is used as a measure of the symmetry of sensitivity between magnetic poles, and is ideally zero.

[0005] When there is a deviation in the operating point or return point, the deviation in the duty ratio and phase of the output pulse signal increases in applications where alternating magnetic field detection is used. The deviation in the duty ratio and phase of the output pulse signal is undesirable because it causes fluctuations in the rotation speed and vibrations in BL (brushless) DC motors, in which alternating magnetic field detection type magnetic switches are mainly used.

[0006] Furthermore, in a bipolar detection magnetic switch, if the polarity of the magnet used in combination is not managed, this can lead to variation in the detection distance of the magnetic material detection mechanism, which can result in an offset voltage. The spinning current method is known as one method for removing the offset voltage. A technology has been proposed that uses the spinning current method to remove the offset voltage of the Hall element and the amplifier in the subsequent stage, while also removing the asymmetry caused by the offset voltage of the comparator (see, for example, Patent Document 1).

[0007] The technology described in Patent Document 1 is a technology that uses a so-called two-way drive spinning current method. In addition to the above-mentioned two-way drive spinning current method, there is also a four-way drive spinning current method. The two-way drive spinning current method and the four-way drive spinning current method each have their advantages and disadvantages. The two-way drive spinning current method is superior to the four-way drive spinning current method in terms of speeding up (shortening) the processing time. [Prior art documents] [Patent documents]

[0008] [Patent Document 1] JP 2009-2851 A Summary of the Invention [Problem to be solved by the invention]

[0009] However, a conventional technology using a two-way drive spinning current method such as the technology described in Patent Document 1 is inferior to a four-way drive spinning current method in terms of symmetry of magnetoelectric conversion characteristics in a magnetic switch. To be more specific, in a conventional technology using a two-way drive spinning current method, the magnetoelectric conversion characteristics in a magnetic switch may not necessarily be linearly symmetric between the south pole side and the north pole side.

[0010] In conventional technology using the two-way drive spinning current method, if the absolute value of the offset voltage of the Hall element differs between the current drive directions, an offset voltage remains. If an offset voltage remains, the magnetoelectric conversion characteristics of the magnetic switch become asymmetric. Therefore, with conventional technology using the two-way drive spinning current method, it may not be possible to obtain magnetoelectric conversion characteristics with good symmetry.

[0011] In view of the above circumstances, an object of the present invention is to provide a semiconductor device capable of stably ensuring symmetry of magnetoelectric conversion characteristics by using a two-way driving spinning current method. [Means for solving the problem]

[0012] A semiconductor device according to the present invention is a semiconductor device including a magnetic switch provided on a semiconductor substrate, the magnetic switch including a Hall element including a first electrode and a second electrode arranged on a first straight line and a third electrode and a fourth electrode arranged on a second straight line perpendicular to the first straight line, a first switch circuit having a plurality of switches and configured to be able to select one of four directions of a drive current of the Hall element, the first direction from the first electrode to the second electrode, a second direction from the second electrode to the first electrode, a third direction from the third electrode to the fourth electrode, and a fourth direction from the fourth electrode to the third electrode, a first operation of sampling a signal transmitted from the Hall element, and a second operation of detecting a signal transmitted from the Hall element and the first operation. a comparison circuit that alternates between a comparison operation of comparing a value of a difference signal between the sampled signal and a reference value and outputting a result signal based on the result of comparing the value of a difference signal between the sampled signal and a reference value; a latch circuit that holds the result signal output from the comparison circuit and outputs the held signal as a latch output signal; and a control circuit configured to be able to select, based on the latch output signal, one of a first mode that controls an open / closed state of the switch so that the drive current flows in the third direction during a first period in which the first operation is performed and the drive current flows in the first direction during a second period in which the second operation is performed, and a second mode that controls an open / closed state of the switch so that the drive current flows in the second direction during the first period and the drive current flows in the fourth direction during the second period. Effect of the Invention

[0013] According to the present invention, it is possible to provide a semiconductor device capable of stably ensuring the symmetry of magnetoelectric conversion characteristics by using a two-way driving spinning current method. [Brief description of the drawings]

[0014] [Figure 1] 1 is a schematic diagram of a semiconductor device according to a first embodiment. [Diagram 2]1 is a circuit diagram showing an example of a sample-and-hold comparator in the semiconductor device according to the embodiment. [Diagram 3] 2 is a circuit diagram showing an example of a control circuit in the semiconductor device according to the embodiment; [Figure 4] FIG. 2 is an explanatory diagram showing an example of a control logic pattern of a logic circuit in a control circuit. [Diagram 5] 5(a) to 5(d) are diagrams illustrating the direction of a drive current of a horizontal Hall element in the semiconductor device according to the present embodiment. [Figure 6] 1A is a schematic diagram for explaining the relationship between the magnetic flux density Bin and the input voltage of the amplifier when the direction of the drive current flowing through the horizontal Hall element is the second pair of directions, and FIG. [Figure 7] 10A and 10B are schematic diagrams illustrating the relationship between the magnetic flux density Bin and the output voltage of the amplifier when the direction of the drive current flowing through the horizontal Hall element of the semiconductor device according to the present embodiment is a first pair of directions. [Figure 8] 10A and 10B are schematic diagrams illustrating the relationship of the output voltage of the latch circuit to the magnetic flux density Bin when the direction of the drive current flowing through the horizontal Hall element of the semiconductor device according to the present embodiment is a first pair of directions. [Figure 9] 11 is a schematic diagram for explaining the relationship of the output voltage of the amplifier to the magnetic flux density Bin when the direction of the drive current flowing through the horizontal Hall element of the semiconductor device according to the embodiment is a second pair of directions. FIG. [Figure 10] 11 is a schematic diagram for explaining the relationship of the output voltage of the latch circuit to the magnetic flux density Bin when the direction of the drive current flowing through the horizontal Hall element of the semiconductor device according to the embodiment is a second pair of directions. FIG. [Figure 11] 10 is a schematic diagram for explaining the relationship between the output voltage of the amplifier and the output voltage of the latch circuit and the magnetic flux density Bin when the magnetic offset of the horizontal Hall element itself of the semiconductor device according to the embodiment is positive. FIG. [Figure 12]10 is a schematic diagram for explaining the relationship between the output voltage of the amplifier and the output voltage of the latch circuit and the magnetic flux density Bin when the magnetic offset of the horizontal Hall element itself of the semiconductor device according to the embodiment is negative. FIG. [Figure 13] 4 is a schematic diagram illustrating the relationship between a reference clock signal input to a control circuit, a magnetic flux density Bin, and a magnetic detection state. FIG. [Figure 14] 4 is a timing chart of a reference clock signal and a latch output signal input to a control circuit, and a drive control signal and a transfer control signal output from the control circuit. [Figure 15] FIG. 4 is a schematic diagram of a semiconductor device according to a second embodiment. [Figure 16] 5(a) to 5(d) are diagrams illustrating the direction of a drive current of a vertical Hall element of the semiconductor device according to the present embodiment. [Figure 17] FIG. 11 is a schematic diagram of a semiconductor device according to a third embodiment. [Figure 18] 1 is a circuit diagram showing an example of a sample-and-hold comparator in the semiconductor device according to the embodiment. [Figure 19] 10 is a schematic diagram for explaining the relationship between the output voltage of the amplifier and the output voltage of the latch circuit and the magnetic flux density Bin when the magnetic offset of the horizontal Hall element itself of the semiconductor device according to the embodiment is positive. FIG. [Figure 20] 10 is a schematic diagram for explaining the relationship between the output voltage of the amplifier and the output voltage of the latch circuit and the magnetic flux density Bin when the magnetic offset of the horizontal Hall element itself of the semiconductor device according to the embodiment is negative. FIG. [Figure 21] FIG. 2 is an enlarged view showing a portion Pa. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] A semiconductor device according to an embodiment of the present invention will be described below with reference to the drawings. The semiconductor device according to the embodiment includes a magnetic switch provided on a semiconductor substrate. In the description, the conversion characteristic from the magnetic flux density acting on the semiconductor substrate to an analog signal will be referred to as the "magnetoelectric conversion characteristic," and the conversion characteristic from the magnetic flux density to a logic signal will be referred to as the "magnetoelectric conversion switching characteristic."

[0016] [First embodiment] FIG. 1 is a schematic diagram showing the configuration of a semiconductor device 1A according to the first embodiment.

[0017] The semiconductor device 1A includes a magnetic switch 10A provided on a semiconductor substrate 2. The magnetic switch 10A includes drive terminals 11P and 11N, an output terminal 12, a horizontal Hall element 20, switches SP1-SP4, SN1-SN4 and switches SS1-SS4 as a first switch circuit, an amplifier 30, a sample-and-hold comparator (hereinafter referred to as "SH comparator") 40A as a comparison circuit, a control circuit 50 and a latch circuit 80A.

[0018] The horizontal Hall element 20 is a magnetic detection element having electrodes 21-24 and obtaining an output according to a magnetic flux density Bin perpendicular to the semiconductor substrate 2. The electrodes 21-24 are provided on a resistor formed of an impurity diffusion layer or a well layer of the semiconductor substrate 2. As described later, the electrodes 21-24 are disposed at a position where a first straight line L1 (see FIG. 5(a)) passing through the electrodes 21 and 22 and a second straight line L2 (see FIG. 5(a)) passing through the electrodes 23 and 24 are perpendicular to each other. In other words, the electrode 21 as the first electrode and the electrode 22 as the second electrode are disposed on the first straight line L1. The electrode 23 as the third electrode and the electrode 24 as the fourth electrode are disposed on the second straight line L2.

[0019] Each of the switches SP1 to SP4, SN1 to SN4, and SS1 to SS4 has a first end and a second end provided at both ends of an open / closeable electric path, and an open / close control end as a control terminal. Each of the switches SP1 to SP4, SN1 to SN4, and SS1 to SS4 is configured to be switchable between an open state (open) in which the path is open, and a closed state (short-circuit) in which the path is closed, according to the level of a control signal input from the open / close control end. The switches SP1 to SP4, SN1 to SN4, and SS1 to SS4 are controlled so that the switch is in a closed state when the level of the control signal input from the open / close control end is high (hereinafter simply referred to as "H"), and in an open state when the level of the control signal input from the open / close control end is low (hereinafter simply referred to as "L").

[0020] The amplifier 30 is composed of a differential amplifier circuit having a positive phase input terminal INP and a negative phase input terminal INN to which signals transmitted from the horizontal Hall element 20 are input, and an output terminal OT to amplify and output the difference between the two signals input from the positive phase input terminal INP and the negative phase input terminal INN.

[0021] As described later in detail, the SH comparator 40A has an input terminal 41 to which a signal S1 output from the amplifier 30 is input, an input terminal 42 to which a signal S3 fed back from the latch circuit 80A is input, an input terminal 44 to which a reference clock signal CLK is input, and an output terminal 43 from which a signal is output.

[0022] As will be described later, the control circuit 50 has an input terminal 51a to which a reference clock signal CLK is input, an input terminal 51b to which a signal S3 is input, output terminals 56a to 56d that output drive control signals Sd1 to Sd4 as control signals, and output terminals 56e and 56f that output transmission control signals St1 and St2.

[0023] The latch circuit 80A has a signal input terminal to which the signal S2 is input, an inverted clock input terminal to which an inverted-phase reference clock signal CLKX, which is a signal whose phase is inverted relative to the reference clock signal CLK, an output terminal from which a signal S3 is output as a latch output signal, and a latch output signal generating section (not shown) that generates the signal S3 based on the signal S2 and the inverted-phase reference clock signal CLKX. The latch circuit 80A is configured to perform so-called data latching.

[0024] The drive terminal 11P as a first drive terminal is connected to a first power supply (not shown) that supplies a power supply voltage VDD. The drive terminal 11P is also connected to the first ends of the switches SP1 to SP4.

[0025] A second terminal of the switch SP1 as the first switch is connected to a first terminal of the switch SN2 as the sixth switch, the electrode 21, and a first terminal of the switch SS1. The connection point thereof forms a node P1.

[0026] A second terminal of the fifth switch SP2 is connected to a first terminal of the second switch SN1, the electrode 22, and a first terminal of the switch SS4, the connection point of which forms a node P2.

[0027] A second terminal of the switch SP3 as the third switch is connected to a first terminal of the switch SN4 as the eighth switch, the electrode 23, and a first terminal of the switch SS3, the connection point of which forms a node P3.

[0028] A second terminal of the seventh switch SP4 is connected to a first terminal of the fourth switch SN3, the electrode 24, and a first terminal of the switch SS2, the connection point of which forms a node P4.

[0029] The second terminals of the switches SN1 to SN4 are connected to a drive terminal 11N serving as a second drive terminal. The drive terminal 11N is connected to a second power supply (not shown) that supplies a power supply voltage VSS.

[0030] The second terminals of the switches SS1 and SS2 are connected to a positive phase input terminal INP of the amplifier 30. The second terminals of the switches SS3 and SS4 are connected to a negative phase input terminal INN of the amplifier 30.

[0031] An output terminal OT of the amplifier 30 is connected to an input terminal 41 of the SH comparator 40A. An output terminal 43 of the SH comparator 40A is connected to a signal input terminal of the latch circuit 80A. An output terminal of the latch circuit 80A is connected to an output terminal 12 of the magnetic switch 10A, an input terminal 51b of the control circuit 50, and an input terminal 42 of the SH comparator 40A.

[0032] The configurations of the SH comparator 40A and the control circuit 50 will be further described. FIG. 2 is a circuit diagram showing the SH comparator 40A.

[0033] The SH comparator 40A has input terminals 41, 42, and 44, a sample and hold amplifier (hereinafter, referred to as “SHA”) 45, a reference voltage circuit 46, a comparator 47, and an output terminal 43.

[0034] The SHA45 has a first input terminal connected to the input terminal 41, a second input terminal connected to the input terminal 44, a third input terminal connected to the input terminal 42, and an output terminal. The reference voltage circuit 46 has an input terminal 46a connected to the input terminal 42, an output terminal 46b, and a variable voltage source 46c. The variable voltage source 46c has a first terminal connected to the output terminal 46b and a second terminal connected to GND (grounded). The comparator 47 has a non-inverting input terminal connected to the output terminal of the SHA45, ​​an inverting input terminal connected to the output terminal 46b, and an output terminal connected to the output terminal 43.

[0035] Fig. 3 is a circuit diagram showing an example of the control circuit 50. Fig. 4 is an explanatory diagram showing an example of a control logic pattern of the logic circuit 57 in the control circuit 50.

[0036] The control circuit 50 includes input terminals 51a, 51b, a logic circuit 57 and a switch circuit 58 as a control signal generating circuit, output terminals 56a to 56d as the first control signal output terminal to the fourth control signal output terminal, and output terminals 56e, 56f.

[0037] The control circuit 50 is configured to generate six control signals, including four control signals, drive control signals Sd1 to Sd4, and two control signals, transfer control signals St1 and St2, based on a reference clock signal CLK input from an input terminal 51a and a signal S3 input from an input terminal 51b. The reference clock signal CLK is generated over a period T C It is a periodic signal with one period.

[0038] The drive control signals Sd1 to Sd4 are output from output terminals 56a to 56d, respectively. The transfer control signals St1 and St2 are output from output terminals 56e and 56f, respectively.

[0039] The logic circuit 57 has two input terminals connected to the input terminals 51a, 51b, respectively, six output terminals connected to the output terminals 56a to 56f, respectively, and a plurality of logic operation elements connecting the two input terminals and the six output terminals. The logic circuit 57 is configured to be able to output L-level or H-level control signals, i.e., the drive control signals Sd1 to Sd4 and the transfer control signals St1, St2, in accordance with at least one of the first control logic pattern and the second control logic pattern shown in FIG.

[0040] The plurality of logical operation elements include, for example, inverters 52a, 52b, 54a to 54e, NAND elements 53a to 53d, and an EXOR element 55. The plurality of logical operation elements, together with a switch circuit 58, form paths capable of transmitting signals between the input terminals 51a, 51b and the output terminals 56a to 56f.

[0041] The input terminals of the inverter 52a, the NAND elements 53b and 53c, and the EXOR element 55 are connected to the input terminal 51a. The input terminal of the inverter 52b is connected to the input terminal 51b. Of the first and second input terminals of the NAND elements 53a to 53d and the EXOR element 55, the second input terminal is connected to the input terminal 51b via the switch circuit 58 or the inverter 52b and the switch circuit 58.

[0042] The switch circuit 58 as the second switch circuit has a pair of switches SL1a, SL2a, a pair of switches SL1b, SL2b, and a pair of switches SL1c, SL2c, which have different open and closed states. When one of the switches SL1a, SL1b, SL1c of the pair is in a closed state, the other of the switches SL2a, SL2b, SL2c of the pair is in an open state. When one of the switches SL1a, SL1b, SL1c of the pair is in an open state, the other of the switches SL2a, SL2b, SL2c of the pair is in a closed state.

[0043] When the switches SL1a, SL1b, and SL1c are in a closed state and the switches SL2a, SL2b, and SL2c are in an open state, the second input terminals of the NAND elements 53a to 53d and the EXOR element 55 are connected to the input terminal 51b via a first path. When the switches SL1a, SL1b, and SL1c are in an open state and the switches SL2a, SL2b, and SL2c are in a closed state, the second input terminals of the NAND elements 53a to 53d and the EXOR element 55 are connected to the input terminal 51b via a second path different from the first path.

[0044] The control logic pattern output when the second input terminals of the NAND elements 53a to 53d and the EXOR element 55 are connected to the input terminal 51b via the first path corresponds to the first control logic pattern, and the control logic pattern output when the second input terminals of the NAND elements 53a to 53d and the EXOR element 55 are connected to the input terminal 51b via the second path corresponds to the second control logic pattern. Next, the operation of the magnetic switch 10A will be described.

[0045] 5(a) to 5(d) are explanatory diagrams illustrating the direction of the drive current defined in the horizontal Hall element 20. FIG.

[0046] The magnetic switch 10A is configured to be able to select one of four directions of the drive current of the horizontal Hall element 20 via the switches SP1 to SP4 and SN1 to SN4. The open / closed states of the switches SP1 to SP4 and SN1 to SN4 are controlled by the control circuit 50, so that the direction of the drive current of the horizontal Hall element 20 can be appropriately switched. For ease of explanation, the direction from the electrode 21 to the electrode 22 is referred to as the "first direction", and the direction from the electrode 22 to the electrode 21 is referred to as the "second direction". The direction of the drive current from the electrode 23 to the electrode 24 is referred to as the "third direction", and the direction from the electrode 24 to the electrode 23 is referred to as the "fourth direction".

[0047] Moreover, the pair of the first direction and the third direction is referred to as the "first direction pair," and the pair of the second direction and the fourth direction is referred to as the "second direction pair." Since the straight lines L1 and L2 are orthogonal to each other, the first direction and the second direction are orthogonal to the third direction and the fourth direction, respectively. Therefore, the "first direction pair" and the "second direction pair" are each pairs of two orthogonal directions.

[0048] The horizontal Hall element 20 is formed parallel to the XY plane in the XYZ three-dimensional Cartesian coordinate system. In an environment where a magnetic flux density Bin is applied to the horizontal Hall element 20 in a direction (Z-axis direction) perpendicular to the paper surface, when the direction of the drive current is a first direction, a positive Hall electromotive force is generated between the electrodes 24 and 23, and when the direction of the drive current is a second direction, a negative Hall electromotive force is generated between the electrodes 24 and 23. When the direction of the drive current is a third direction, a positive Hall electromotive force is generated between the electrodes 21 and 22, and when the direction of the drive current is a fourth direction, a negative Hall electromotive force is generated between the electrodes 21 and 22. The horizontal Hall element 20 generally generates an offset voltage with a certain regularity for each direction of the drive current, the absolute value of which is larger than the Hall electromotive force, which is its output signal.

[0049] The output signal of the horizontal Hall element 20 is transmitted from the electrodes 21-24 to the amplifier 30 via the switches SS1-SS4. The switches SS1-SS4 are controlled to be opened or closed based on the transmission control signals St1, St2 such that the open / closed states of the switches SS2, SS3 and the open / closed states of the switches SS1, SS4 are different from each other.

[0050] When the direction of the drive current is the first direction, the switches SS2 and SS3 are closed and the switches SS1 and SS4 are open, so that the electrode 23 is connected to the negative phase input terminal INN via the switch SS3. When the direction of the drive current is the second direction, the open / close states of the switches SS1 to SS4 are the same as the open / close states of the switches SS1 to SS4 when the direction of the drive current is the first direction. Therefore, the electrode 23 is connected to the negative phase input terminal INN via the switch SS3, and the electrode 24 is connected to the positive phase input terminal INP via the switch SS2.

[0051] When the driving current direction is the third direction, the switches SS1 and SS4 are closed and the switches SS2 and SS3 are open, so that the electrode 23 is connected to the negative phase input terminal INN via the switch SS3. When the driving current direction is the fourth direction, the open / close states of the switches SS1 to SS4 are the same as those of the switches SS1 to SS4 when the driving current direction is the third direction. Therefore, the electrode 23 is connected to the negative phase input terminal INN via the switch SS3, and the electrode 24 is connected to the positive phase input terminal INP via the switch SS2.

[0052] The amplifier 30 amplifies the differential input voltage ΔV between the positive-phase input terminal INP and the negative-phase input terminal INN by a predetermined amplification factor G, and outputs the amplified signal from the output terminal OT to the SH comparator 40A. OSA The signal S1 output from the output terminal OT is equal to the input offset voltage V OSA The signal S1 is affected by the differential input voltage ΔV and the input offset voltage V OSA The sum of and the amplification factor G, that is, (ΔV + V OSA)·G. The input offset voltage V OSA is cancelled out in the process of implementing the spinning current method described above.

[0053] The SH comparator 40A performs an operation of sampling the signal S1 and an operation of comparing a differential voltage signal, which is a differential signal with the signal S1 in the immediately preceding period, with a predetermined reference voltage and outputting a result signal based on the comparison result. The sampling of the signal S1 as the first operation is performed by the SHA 45. The comparison operation as the second operation is performed by the comparator 47. The sampling of the signal S1 and the comparison operation are performed alternately.

[0054] The SH comparator 40A samples the signal S1 in the first period Φ1, and compares a differential voltage signal between the sampled signal S1 in the first period Φ1 and the sampled signal S1 in the second period Φ2 with a predetermined reference voltage. The SH comparator 40A outputs a signal S2 whose level corresponds to the result of the comparison between the differential voltage signal and the predetermined reference voltage. The level of the signal S2 is switched depending on the result of the comparison, for example, to an L level when the differential voltage signal is lower than the predetermined reference voltage, and to an H level when the differential voltage signal is equal to or higher than the predetermined reference voltage.

[0055] A predetermined reference voltage serving as a reference value is generated by a variable voltage source 46c. The generated voltage is switched between a first voltage or a second voltage different from the first voltage, depending on a signal S3 output from a latch circuit 80A.

[0056] The difference processing between the first period Φ1 and the second period Φ2 is used to cancel the offset voltages of the horizontal Hall element 20 and the amplifier 30. In the SH comparator 40A, a so-called auto-zero processing is performed over the first period Φ1 and the second period Φ2, so that the offset voltage of the SH comparator 40A itself can also be canceled.

[0057] The signal S2 is input from the SH comparator 40A to the latch circuit 80A. The latch circuit 80A holds the opposite level to the level of the input signal S2 at the final timing of the second period Φ2, i.e., at the falling edge of the inverted-phase reference clock signal CLKX, and outputs the held signal as a signal S3. Thus, the signal S3 is held for a period T corresponding to one cycle of the reference clock signal CLK. C is updated every time according to the level of the signal S3.

[0058] Fig. 6(a) is a schematic diagram for explaining the relationship of the input voltage of the amplifier 30 to the magnetic flux density Bin when the direction of the drive current flowing through the horizontal Hall element 20 is the first pair of directions (pair of the first and third directions). Fig. 6(b) is a schematic diagram for explaining the relationship of the input voltage of the amplifier 30 to the magnetic flux density Bin when the direction of the drive current flowing through the horizontal Hall element 20 is the second pair of directions (pair of the second and fourth directions).

[0059] 6(a) and 6(b), the horizontal axis represents the magnetic flux density Bin acting on the semiconductor substrate 2, and the vertical axis represents the voltage V. ID1 ~L ID4 respectively represent the differential input voltage ΔV of the amplifier 30 with respect to the magnetic flux density Bin corresponding to the first to fourth directions. The differential input voltage ΔV corresponds to the sum of two voltages output from the horizontal Hall element 20, i.e., one positive-phase voltage and the other negative-phase voltage. The differential input voltage ΔV (hereinafter referred to as the "vertical axis intercept") when the magnetic flux density Bin is 0 (zero) represents the offset voltage in a zero magnetic field. The slope of the straight line represents the magnetoelectric conversion coefficient. The solid line L ID1 , L ID4 The gradient of the magnetoelectric conversion coefficient K H (∂ΔV / ∂Bin=K H ). Solid line L ID2 , L ID3 The slope of the magnetoelectric conversion coefficient -K H (∂ΔV / ∂Bin=-K H ).

[0060] The dashed line BL1 represents the magnetoelectric conversion characteristic of the difference between the offset voltage ΔV1 when the drive current flows in the first direction and the offset voltage ΔV3 when the drive current flows in the third direction. The dashed line BL2 represents the magnetoelectric conversion characteristic of the difference between the offset voltage ΔV2 when the drive current flows in the second direction and the offset voltage ΔV4 when the drive current flows in the fourth direction.

[0061] The difference calculation process between the offset voltage ΔV1 and the offset voltage ΔV3 and the difference calculation process between the offset voltage ΔV2 and the offset voltage ΔV4 are performed by the SH comparator 40A. H and magnetoelectric conversion coefficient -K H The difference between the solid line L ID1 , L ID4 twice the slope of (=2K H ) has been established.

[0062] Here, the offset voltage when the direction of the drive current flowing through the horizontal Hall element 20 is the first direction and the second direction is defined as the offset voltage V OS2 The offset voltages in the third and fourth directions are offset voltages V OS1 Then, the offset voltages ΔV1 to ΔV4 are expressed by the following equations (1) to (4). ΔV1=+K H ·Bin+V OS2 (1) ΔV3=-K H ·Bin+V OS1 (2) ΔV2=-K H ·Bin+V OS2 (3) ΔV4=+K H ·Bin+V OS1 (4)

[0063] Next, the difference between each of the directions constituting the first direction pair is expressed by the following formulas (5) and (6).The difference between each of the directions constituting the second direction pair is expressed by the following formulas (7) and (8). ΔV1-ΔV3=+2K H ·Bin+(V OS2 -V OS1 ) (5) ΔV3-ΔV1=-2K H ·Bin-(V OS2 -V OS1 ) (6) ΔV2-ΔV4=+2K H ·Bin+(V OS2 -V OS1 ) (7) ΔV4-ΔV2=-2K H ·Bin-(V OS2 -V OS1 ) (8)

[0064] Since the offset voltage is different between each direction, the effect of the offset voltage is not canceled by the difference processing. OS2 -V OS1 ) or (V OS1 -V OS2 ) which is a non-ideal characteristic.

[0065] Here, the slope value "2K H When the magnetic flux density Bin (horizontal axis intercept) at which the differential input voltage ΔV becomes zero (ΔV=0) is calculated from the above, the magnetic offset B OSDP1 , B OSDP2 can be expressed by the following equations (9) and (10), respectively. B OSDP1 =(V OS2 -V OS1 ) / 2K H (9) B OSDP2 =(V OS1 -V OS2 ) / 2K H (10)

[0066] 7 and 8 are respectively the case shown in FIG. 6(a), i.e., the magnetic offset B OSDP1 is positive (B OSDP1 =(V OS2 -V OS1 ) / 2K H 1 is a schematic diagram illustrating the relationship between the signal S1 and the signal S3 and the magnetic flux density Bin when Bin is 0.

[0067] 9 and 10 respectively show the case shown in FIG. 6(b), i.e., the magnetic offset B OSDP2 is negative (B OSDP2 =(V OS1 -V OS2 ) / 2K H 7 and 9 are schematic diagrams illustrating the relationship between the signal S1 and the signal S3 and the magnetic flux density Bin when the dashed lines BL OD1 ~BL OD4 represent the signal S1 for the magnetic flux density Bin corresponding to the first to fourth directions, respectively.

[0068] According to FIG. 7 and FIG. 9, the dashed line BL OD1 ~BL OD4 is the solid line L ID1 ~L ID4 On the vertical axis, the voltage GV OSA Here, the voltage GV OSA is the amplification factor G and the input offset voltage V OSA The magnetic offset B OSDP1 If is positive, the magnetoelectric conversion switching characteristic is as shown in Figure 8, at operating point B OP and return point B RP Both of these shift in the positive magnetic flux density direction (to the right in the figure). OSDP2 If is negative, the magnetoelectric conversion switching characteristic is as shown in Figure 10, operating point B OP and return point B RP Both shift in the negative magnetic flux density direction (to the left in the figure).

[0069] In the above formulas (9) and (10), |V OS2 -V OS1 | is 0 or magnetic offset B OSDP1、 B OSDP2 is negligible |V OS2 -V OS1 | is small (this state is called "near 0"), that is, the offset voltage V OS2 and the offset voltage V OS1 and is equal to or magnetic offset B OSDP1 , B OSDP2If the difference is so small that it can be ignored (this state is called "same degree"), the magnetic offset B OSDP1 , B OSDP2 can be ignored.

[0070] However, in the semiconductor device 1A, |V OS2 -V OS1 Therefore, in this embodiment, the difference in the offset voltage (V OS2 -V OS1 We are proposing a new technology to counteract the effects of

[0071] The right-hand sides of the above formulas (9) and (10) have the same absolute value and opposite signs. In this embodiment, the direction of the drive current is switched between the first direction pair and the second direction pair depending on the polarity of the detected magnetic field, that is, the level of the signal S3 which is the output signal of the latch circuit 80A.

[0072] In the case where the direction of the drive current in the magnetic switch 10A is not changed according to the level of the signal S3, the operating point B OP and return point B RP is asymmetric with respect to the magnetic flux density Bin=0. That is, when the magnetic switch 10A does not switch the direction of the drive current according to the level of the signal S3, the magnetic switch 10A has asymmetric magnetoelectric conversion switching characteristics, for example, as shown in FIGS.

[0073] The magnetic switch 10A switches the direction of the drive current according to the level of the signal S3, thereby setting the operating point B OP The return point B on the N pole side is inverted with respect to the line of Bin=0. RP That is, the magnetic switch 10A obtains magnetoelectric conversion switching characteristics that are line symmetric with respect to the line Bin=0 by switching the direction of the drive current in accordance with the level of the signal S3.

[0074] FIG. 11 shows the magnetic offset B OSDP13 is a schematic diagram illustrating the relationship of the signals S1 and S3 to the magnetic flux density Bin when is positive.

[0075] In FIG. 11, the solid line L DP1 is the magnetic offset B when the direction pair of the driving current is the first direction pair. OSDP The solid line L DP2 is the magnetic offset B when the direction pair of the driving current is the second direction pair. OSDP The dashed line BL indicates the magnetoelectric conversion characteristic where id is magnetic offset B OS = 0. The white arrows (1), (1a), (2), (3), (3a), and (4) represent the locus of hysteresis in the magnetoelectric conversion characteristics.

[0076] 11 is an example of a case where the third direction is selected when the signal S3 is at H level and in the first period Φ1, the first direction is selected when the signal S3 is at H level and in the second period Φ2, the second direction is selected when the signal S3 is at L level and in the first period Φ1, and the fourth direction is selected when the signal S3 is at L level and in the second period Φ2. This example corresponds to the first control logic pattern.

[0077] In the first control logic pattern, a drive control signal Sd1 is output as a first control signal from an output terminal 56a. Similarly, drive control signals Sd2, Sd3, and Sd4 are output as second, third, and fourth control signals from output terminals 56b, 56c, and 56d, respectively. In addition, transfer control signals St1 and St2 are output from output terminals 56e and 56f, respectively.

[0078] The opening and closing operations of the switches SP1 to SP4, SN1 to SN4 and the switches SS1 to SS4 based on the drive control signals Sd1 to Sd4 and the transmission control signals St1, St2 select the third direction when the signal S3 is at the H level and in the first period Φ1, and select the first direction when the signal S3 is at the H level and in the second period Φ2.

[0079] When the signal S3 is at the H level and the magnetic flux density Bin increases to the S pole side, the solid line L DP1 The voltage input to the SH comparator 40A, i.e., the voltage of the signal S1, is equal to or exceeds the reference voltage V BOP exceeds (ΔV G>V BOP ), the signal S3 transitions to the L level. BOP In the magnetoelectric conversion characteristics, the magnetic flux density Bin is at the operating point B OP is the voltage at

[0080] With the level transition of the signal S3, the reference voltage of the SH comparator 40A becomes the reference voltage V BOP to the reference voltage V as the second voltage BRP The reference voltage V BRP In the magnetoelectric conversion characteristics, the magnetic flux density Bin reaches the return point B RP The reference voltage V BRP is the reference voltage V BOP The voltage is opposite in polarity to the positive voltage.

[0081] When the signal S3 is at the L level, the second or fourth direction is selected as the direction of the drive current, and thus the solid line L DP2 Then, when the magnetic flux density Bin increases further toward the south pole, the voltage V shifts to the solid line L DP2 The magnetic flux density Bin then increases further to the positive side along the line (white arrow (3a)). On the other hand, the trajectory of the magnetic flux density Bin as it decreases to the south pole, goes to B=0, and then increases to the north pole is shown by the white arrow (3). Furthermore, the magnetic flux density Bin increases toward the north pole side, and the voltage input to the SH comparator 40A, i.e., the voltage of the signal S1, increases toward the reference voltage V BRP exceeds the negative side (ΔV G <V BRP ), the signal S3 transitions to the H level. With the level transition of the signal S3, the reference voltage of the SH comparator 40A becomes the reference voltage V BRP to the reference voltage V BOP can be switched to.

[0082] When the signal S3 is at the H level, the direction of the drive current is selected to be either the third direction or the first direction, so that the solid line L DP1 Then, if the magnetic flux density Bin increases further toward the N pole, the voltage V shifts to the solid line L DP1 The magnetic flux density Bin then increases further to the negative side along the line (white arrow (1a)). On the other hand, the locus when the magnetic flux density Bin decreases in the N pole, becomes 0, and then increases in the S pole is shown by the white arrow (1) described above. In this embodiment, the shape of the locus of hysteresis in the magnetoelectric conversion characteristic is a parallelogram.

[0083] For magnetic switch 10A, solid line L DP1 Magnetoelectric conversion characteristics and solid line L DP2 The horizontal Hall element 20 itself has a magnetic offset B OSDP When the magnetic flux density Bin changes in a direction increasing toward the south pole, the driving current in the third direction and the first direction is used. When the magnetic flux density Bin changes in a direction increasing toward the north pole, the driving current in the second direction and the fourth direction is used. Therefore, the operating point B OP is the design value (hereinafter referred to as the "operating point design value") B OPid From magnetic offset B OSDP The sensitivity is shifted to the low sensitivity side (away from Bin=0) by the amount of the return point B. RP is the design value (hereinafter referred to as the "return point design value") B RPid From magnetic offset B OSDP The sensitivity has shifted to the low side by this amount.

[0084] Magnetic offset B of the horizontal Hall element 20 itself OSDP When is positive, the following equations (11) to (16) are true. HYS , B HYSid and B. OS are the hysteresis width and the hysteresis width B HYS and the magnetic offset in the magnetoelectric conversion switching characteristics of the magnetic switch 10A. B OP =B OPid +BOSDP (11) B RP =B RPid -B OSDP (12) B HYS =B HYSid +2B OSDP (13) B OS =(B OP +B RP ) / 2=0 (14) B OPid =V BOP / (2GK H ) (15) B RPid =V BRP / (2GK H ) (16)

[0085] According to the above formula (11) and formula (12), the operating point B OP and return point B RP is the design value of the operating point B OPid and return point design value B RPid The absolute value of the deviation from B OSDP The magnetic offset B of the horizontal Hall element 20 itself is equal to and has the opposite sign. Therefore, the magnetic switch 10A operates as if the sensitivity is shifted between the S pole and the N pole while maintaining the symmetry of the magnetoelectric conversion switching characteristic. OSDP When is positive, the magnetic switch 10A operates as if it were insensitively shifted in both the south and north poles.

[0086] FIG. 12 shows the magnetic offset B OSDP 13 is a schematic diagram illustrating the relationship of the signals S1 and S3 with respect to the magnetic flux density Bin when is negative.

[0087] In FIG. 12, the solid line L DP1 , solid line L DP2, the dashed line BLid and the white arrows (1), (1a), (2), (3), (3a) and (4) are the same as in Fig. 11. Also, the magnetoelectric conversion characteristics shown in Fig. 12 are an example in which the second direction is selected when the signal S3 is at H level and in the first period Φ1, the fourth direction is selected when the signal S3 is at H level and in the second period Φ2, the third direction is selected when the signal S3 is at L level and in the first period Φ1, and the first direction is selected when the signal S3 is at L level and in the second period Φ2. This example corresponds to the second control logic pattern.

[0088] In the second control logic pattern, the drive control signal Sd1 is output from the output terminal 56a as the fifth control signal. Similarly, the drive control signals Sd2, Sd3, and Sd4 are output from the output terminals 56b, 56c, and 56d as the sixth, seventh, and eighth control signals, respectively. In addition, the transfer control signals St1 and St2 are output from the output terminals 56e and 56f, respectively.

[0089] By the opening and closing operations of the switches SP1 to SP4, SN1 to SN4 and the switches SS1 to SS4 based on the drive control signals Sd1 to Sd4 and the transmission control signals St1, St2, the second direction is selected when the signal S3 is at the H level and in the first period Φ1, the fourth direction is selected when the signal S3 is at the H level and in the second period Φ2, the first direction is selected when the signal S3 is at the L level and in the first period Φ1, and the third direction is selected when the signal S3 is at the L level and in the second period Φ2.

[0090] When the signal S3 is at the H level and the magnetic flux density Bin increases to the S pole side, the solid line L DP2 The locus of the magnetoelectric conversion characteristic corresponding to the voltage input to the SH comparator 40A, i.e., the voltage of the signal S1, is traced (indicated by the open arrow (1)). BOP exceeds the positive side (ΔV G>V BOP ), the signal S3 transitions to the L level. With the level transition of the signal S3, the reference voltage of the SH comparator 40A is the reference voltage V BOP to the reference voltage V BRP can be switched to.

[0091] When the signal S3 is at the L level, the direction of the drive current is selected to be either the third direction or the first direction, so that the solid line L DP1 Then, when the magnetic flux density Bin increases further toward the south pole, the voltage V shifts to the solid line L DP1 The concentration of β increases further in the positive direction along the line (white arrow (3a)).

[0092] On the other hand, the locus when the magnetic flux density Bin decreases to the south pole, goes to Bin=0, and then increases to the north pole is indicated by the white arrow (3). Furthermore, the magnetic flux density Bin increases toward the north pole side, and the voltage input to the SH comparator 40A, i.e., the voltage of the signal S1, falls to the reference voltage V BRP exceeds the negative side (ΔV G <V BRP ), the signal S3 transitions to the H level. With the level transition of the signal S3, the reference voltage of the SH comparator 40A becomes the reference voltage V BRP to the reference voltage V BOP can be switched to.

[0093] When the signal S3 is at the H level, the second or fourth direction is selected as the direction of the drive current, and the solid line L DP2 Then, if the magnetic flux density Bin increases further toward the N pole, the voltage V shifts to the solid line L DP2 The magnetic flux density Bin increases further to the negative side along the line (white arrow (1a)). On the other hand, the trajectory of the magnetic flux density Bin as it decreases in the north pole, goes to Bin=0, and then increases in the south pole is shown by the white arrow (1) mentioned above.

[0094] For magnetic switch 10A, solid line L DP1 Magnetoelectric conversion characteristics and solid line L DP2 The horizontal Hall element 20 itself has a magnetic offset B OSDP When becomes negative, when the magnetic flux density Bin changes in a direction increasing toward the south pole side, the drive currents in the second and fourth directions are used.

[0095] When the magnetic flux density Bin changes in a direction increasing toward the N pole side, the driving current in the third direction and the first direction is used. OP is the operating point design value B OPid From magnetic offset B OSDP The return point B is shifted to the high sensitivity side (approaching Bin=0). RP is the design return point B RPid From magnetic offset B OSDP The sensitivity has shifted to the high side by this amount.

[0096] The magnetic offset B of the horizontal Hall element 20 itself OSDP When is negative, the following equations (17) to (19) hold. Note that the magnetic offset B OS is the same as equation (14) above, i.e., 0. B OP =B OPid -B OSDP (17) B RP =B RPid +B OSDP (18) B HYS =B HYSid -2B OSDP (19)

[0097] According to the above formula (17) and formula (18), the operating point B OP and return point B RP is the design value of the operating point B OPid and return point design value B RPid The absolute value of the deviation from B OSDP The magnetic offset B of the horizontal Hall element 20 itself is equal to and has the opposite sign. Therefore, the magnetic switch 10A operates as if the sensitivity is shifted between the S pole and the N pole while maintaining the symmetry of the magnetoelectric conversion switching characteristic. OSDP becomes negative, the magnetic switch 10A operates as if it were highly sensitive to deviations in both the south and north poles.

[0098] Next, the relationship between the magnetic flux density Bin and the magnetic detection state indicated by the signal S3 will be described. 13 is a schematic diagram for explaining the relationship between the reference clock signal CLK, the magnetic flux density Bin, and the magnetic detection state. In the explanation, it is assumed that the latch circuit 80A is reset at time t=0. Also, the initial values ​​of the magnetic flux density Bin and the signal S3 at time t=0 are magnetic flux density Bin=0 and signal S3=H level, respectively.

[0099] The reference clock signal CLK is a periodic signal that is at H level in the first period Φ1 and at L level in the second period Φ2. The latch circuit 80A updates the determination result of the magnetic flux density Bin based on the magnetoelectric conversion characteristic in which the signal S3 is offset cancelled at the final timing of the second period Φ2.

[0100] As the magnetic flux density Bin increases from time t=0, the operating point B OP When the magnetic flux density Bin exceeds the positive side (from bottom to top in the figure) and transitions to the state of S pole detection, the determination operation of S pole detection starts at time t1, which is the first time the first period Φ1 begins. At time t1, the previous detection state of N pole detection is maintained. After that, OP The state where the S pole is detected is maintained for a period T C At time t2, the latch circuit 80A outputs a signal S3 of L level indicating detection of the S pole. That is, at time t2, the determination result of the magnetic flux density Bin is updated from detection of the N pole to detection of the S pole.

[0101] As time passes, the magnetic flux density Bin changes from S pole to N pole, and the return point B RP When the magnetic flux density Bin transitions to a state where it exceeds the negative side (from top to bottom in the figure), the operation of determining whether the N pole is detected starts from time t3 when the first period Φ1 begins. At time t3, the previous detection state of the S pole is maintained. After that, the magnetic flux density Bin maintains the state of the N pole detection for the period T CWhen time reaches t4 after passing through, the latch circuit 80A outputs a signal S3 at the H level indicating N-pole detection. That is, at time t4, the determination result of the magnetic flux density Bin is updated from S-pole detection to N-pole detection. When the magnetic flux density Bin fluctuates periodically, the above-described operation is repeated.

[0102] In this way, the signal S3 that transitions between the L level and the H level is sent from the latch circuit 80A to the output terminal 12, the control circuit 50, and the SH comparator 40A. A reference clock signal CLK is input to the control circuit 50 together with the signal S3. In the control circuit 50, drive control signals Sd1 to Sd4 and transmission control signals St1, St2 are generated based on the input signal S3 and the reference clock signal CLK.

[0103] FIG. 14 is a timing chart of the reference clock signal CLK and the signal S3 input to the control circuit 50, and the drive control signals Sd1 to Sd4 and the transmission control signals St1, St2 output from the control circuit 50. Note that the timing chart shown in this figure is the case where the above-described first control logic pattern is applied. Also, similar to FIG. 13, it is assumed that the latch circuit 80A is reset at time t = 0, and the initial values of the magnetic flux density Bin and the signal S3 at time t = 0 are set to the magnetic flux density Bin = 0 and the signal S3 = H level, respectively.

[0104] The control circuit 50 switches between a first mode according to the table (FIG. 4) at the time of N-pole detection and a second mode according to the table (FIG. 4) at the time of S-pole detection based on the signal S3. In the timing chart shown in FIG. 14, N-pole detection is performed at times 0 < t < t2 and t ≧ t4, and S-pole detection is performed at times t2 ≦ t < t4.

[0105] In N - pole detection, the drive control signals Sd1, Sd2 and the transmission control signals St2, St1 operate in synchronization with the reference clock signal CLK. The drive control signal Sd1 and the drive control signal Sd2 are output in a state where the levels of the L level and the H level are different from each other, that is, in an inverted phase. The transmission control signal St2 and the transmission control signal St1 are also output in an inverted phase, similar to the drive control signal Sd1 and the drive control signal Sd2.

[0106] Therefore, in the time periods 0 < t < t2 and t ≧ t4 when N - pole detection occurs, the drive control signal Sd1 and the transmission control signal St2 become H level in the first period Φ1 and L level in the second period Φ2. The drive control signal Sd2 and the transmission control signal St1 become L level in the first period Φ1 and H level in the second period Φ2.

[0107] On the other hand, in S - pole detection, the drive control signals Sd3, Sd4 and the transmission control signals St1, St2 operate in synchronization with the reference clock signal CLK. The drive control signal Sd3 and the drive control signal Sd4 are output in an inverted phase. The transmission control signal St1 and the transmission control signal St2 are output in an inverted phase.

[0108] Therefore, in the time period t2 < t < t4 when S - pole detection occurs, the drive control signal Sd3 and the transmission control signal St1 become H level in the first period Φ1 and L level in the second period Φ2. The drive control signal Sd4 and the transmission control signal St2 become L level in the first period Φ1 and H level in the second period Φ2.

[0109] In this way, the magnetic switch 10A includes a SH comparator 40A configured to be able to switch and output a predetermined reference voltage from a plurality of candidates. According to the magnetic switch 10A and the semiconductor device 1A including the magnetic switch 10A, by switching the direction of the drive current according to the level of the signal S3, the operating point B on the S - pole side OP is inverted with respect to the straight line of Bin = 0 to obtain the return point B on the N - pole side RP or the return point B on the N - pole side RP is inverted with respect to the straight line of Bin = 0 to obtain the operating point B on the S - pole side. The operating point B on the S - pole side OP can be obtained. The operating point B on the S - pole side OPThe return point B on the N pole side is inverted with respect to the line of Bin=0. RP or the return point B on the N pole side RP Operating point B on the south pole side, which is inverted with respect to the line of Bin=0 OP can be changed by switching the open / closed states of the switches SL1a, SL1b, SL1c and the switches SL2a, SL2b, SL2c.

[0110] According to this embodiment, the effect of the residual offset voltage can be generated line-symmetrically on the S pole side and the N pole side by using the two-way drive spinning current method that switches the direction of the drive current according to the level of the signal S3, so that a highly symmetrical hysteresis characteristic can be obtained. OP and return point B RP In other words, it is possible to obtain magnetoelectric conversion switching characteristics that are axisymmetric between the south pole and the north pole.

[0111] As described above, the magnetoelectric conversion switching characteristics of the entire magnetic switch 10A are linearly symmetrical with respect to the S pole and the N pole. Therefore, according to this embodiment, by using the two-way drive spinning current method in which the direction of the drive current is switched according to the level of the signal S3, it is possible to obtain magnetoelectric conversion switching characteristics capable of suppressing the influence of the residual offset voltage to the same extent as the four-way drive spinning current method.

[0112] In addition, because the two-way spinning current method is used, the processing time required to detect and determine the magnetic pole can be halved compared to the four-way spinning current method, even if the processing time per direction is the same. Therefore, magnetic switch 10A and semiconductor device 1A including magnetic switch 10A can process signals in a shorter time than a magnetic switch using the four-way spinning current method and a semiconductor device including the same, even if the processing time per direction is the same.

[0113] In addition, in a magnetic switch using the four-way drive spinning current method and a semiconductor device including the same, if the reference clock frequency is increased, it may be possible to make the processing time per cycle the same. However, when the reference clock frequency is increased, the bandwidth of the amplifier and comparator must be increased, which increases power consumption. Therefore, the magnetic switch 10A and the semiconductor device 1A including the magnetic switch 10A can process signals with lower power consumption than a magnetic switch using the four-way drive spinning current method and a semiconductor device including the same, even if the processing time per all drive directions (one cycle) is the same.

[0114] According to this embodiment, the direction of the drive current is controlled by the magnetic offset B OSDP By allocating the magnetic offset B of the horizontal Hall element 20 itself to be positive or negative, two different patterns of line-symmetric magnetoelectric conversion switching characteristics can be obtained. OSDP When the magnetic offset B of the horizontal Hall element 20 is positive, the apparent sensitivity deviation can be regarded as a deviation toward the low sensitivity side. OSDP When the line symmetric magnetoelectric conversion switching characteristic is negative, the apparent sensitivity deviation can be regarded as a deviation toward the high sensitivity side. In addition, according to the present embodiment, it is possible to select a desired line symmetric magnetoelectric conversion switching characteristic by switching from two different line symmetric magnetoelectric conversion switching characteristics.

[0115] According to this embodiment, the operating point B OP and return point B RP For example, the magnetic offset B OSDP The variation in is systematic and the magnetic offset B OSDP If the polarity of B is known, the magnetic offset B OSDP The reference voltage V BRP , V BRP The absolute value of

[0116] On the other hand, the magnetic offset B OSDP When the random variation in the polarity is large and the polarity is unknown, first, the magnetic offset B OS Then, the magnetic offset B OS It is sufficient to add adjustment processes such as fuse trimming and EEPROM writing that take into account the measurement results.

[0117] According to this embodiment, the magnetic offset B OSDP Regardless of the magnitude of the magnetic offset B of the horizontal Hall element 20 itself, the influence of the residual offset voltage can be generated line-symmetrically with respect to the S pole side and the N pole side. OSDP In order to suppress this, it is not necessary to use the horizontal Hall element 20 in which a plurality of Hall element cells are connected in parallel. According to this embodiment, it is possible to obtain magnetoelectric conversion switching characteristics that are axisymmetrical with respect to the S pole and the N pole without increasing the chip occupation area and current consumption.

[0118] [Second embodiment] FIG. 15 is a schematic diagram showing the configuration of a semiconductor device 1B according to the second embodiment. 16(a) to 16(d) are schematic diagrams showing the configuration and connection state of a vertical Hall element 60 included in the semiconductor device 1B.

[0119] The semiconductor device 1B is different from the semiconductor device 1A in that the semiconductor device 1B includes a vertical Hall element 60 instead of the horizontal Hall element 20 connected from the node P1 to the node P4, but is otherwise similar to the semiconductor device 1A. Therefore, in this embodiment, the vertical Hall element 60 will be mainly described, and descriptions overlapping with those of the semiconductor device 1A will be omitted.

[0120] The semiconductor device 1B includes a magnetic switch 10B provided on a semiconductor substrate 2. The magnetic switch 10B includes drive terminals 11P and 11N, an output terminal 12, a vertical Hall element 60, switches SP1 to SP4, SN1 to SN4 and switches SS1 to SS4, an amplifier 30, an SH comparator 40A, a control circuit 50, and a latch circuit 80A.

[0121] The vertical Hall element 60 has electrodes 61 to 65, and for example, electrodes 61 to 65 are arranged at a predetermined distance along the Y-axis direction. The two electrodes 61 and 65 located at the ends in the direction along the Y-axis direction are connected (shorted) by a wiring 66. The electrodes 61 and 65 are connected to a node P3 via the wiring 66. The electrode 62 is connected to a node P2. The electrode 63 is connected to a node P1. The electrode 64 is connected to a node P4.

[0122] In the magnetic switch 10B configured as described above, the first to fourth current driving directions can be defined in the same manner as in the magnetic switch 10A. For example, the direction in which the driving current flows from the third electrode 63 located in the center among the electrodes 61 to 65 to the first electrode 61 and the fifth electrode 65 located at the ends is defined as the first current driving direction (see FIG. 16(a)). The direction in which the driving current flows from the electrodes 61 and 65 to the electrode 63, respectively, that is, the opposite direction to the first current driving direction is defined as the second current driving direction (see FIG. 16(b)). The direction in which the driving current flows from the electrode 62 located in the second position among the electrodes 61 to 65 to the electrode 64 located in the fourth position is defined as the third current driving direction (see FIG. 16(c)). The direction in which the driving current flows from the electrode 64 to the electrode 62, that is, the opposite direction to the third current driving direction is defined as the fourth current driving direction (see FIG. 16(d)).

[0123] According to the above example, the vertical Hall element 60 generates a positive Hall electromotive force between the electrode 64 and the electrode 62 in the first current driving direction, and generates a positive Hall electromotive force between the electrode 63 and the electrodes 61 and 65 in the third current driving direction. On the other hand, the vertical Hall element 60 generates a negative Hall electromotive force between the electrode 64 and the electrode 62 in the second current driving direction, and generates a negative Hall electromotive force between the electrode 63 and the electrodes 61 and 65 in the fourth current driving direction.

[0124] The semiconductor device 1B and the magnetic switch 10B configured in this manner can be operated in the same manner as the semiconductor device 1A and the magnetic switch 10A. By performing the same operation as the semiconductor device 1A and the magnetic switch 10A, the semiconductor device 1B and the magnetic switch 10B can obtain the same effect as the semiconductor device 1A and the magnetic switch 10A.

[0125] In this way, according to this embodiment, it is possible to obtain an axisymmetric magnetoelectric conversion switching characteristic by using a two-way drive spinning current method that switches the direction of the drive current according to the level of the signal S3. In other words, it is possible to obtain magnetoelectric conversion switching characteristics that can suppress the influence of the residual offset voltage to the same extent as the four-way drive spinning current method, and it is possible to obtain the same effects as the first embodiment. can .

[0126] In addition, the vertical Hall element 60 has a smaller magnetic offset B due to its asymmetric geometric structure compared to the horizontal Hall element 20. OSDP Therefore, the advantage of obtaining line-symmetric magnetoelectric conversion characteristics in this embodiment is a more significant advantage than the advantage of obtaining line-symmetric magnetoelectric conversion characteristics in the first embodiment.

[0127] 16 is an example in which the electrodes 61-65 are arranged in a direction along the Y-axis and the direction of the magnetic flux density Bin is parallel to the X-axis, but the vertical Hall element 60 is not limited to this example. The vertical Hall element 60 may have any configuration in which the direction in which the electrodes 61-65 are arranged and the direction of the magnetic flux density Bin are orthogonal to each other. For example, the vertical Hall element 60 may have the electrodes 61-65 arranged in a direction along the X-axis and the direction of the magnetic flux density Bin is parallel to the Y-axis.

[0128] [Third embodiment] FIG. 17 is a schematic diagram showing the configuration of a semiconductor device 1C according to the third embodiment.

[0129] The semiconductor device 1C differs from the semiconductor device 1A in that it further includes a chopper switch 70 that switches the input terminal and the output destination based on a signal S3, that it includes an SH comparator 40C instead of the SH comparator 40A, and that it includes a latch circuit 80C instead of the latch circuit 80A, but is otherwise similar. Therefore, in this embodiment, the above differences will be mainly described, and descriptions that overlap with the semiconductor device 1A will be omitted.

[0130] The semiconductor device 1C includes a magnetic switch 10C provided on a semiconductor substrate 2. The magnetic switch 10C includes drive terminals 11P and 11N, an output terminal 12, a horizontal Hall element 20, switches SP1 to SP4, SN1 to SN4, switches SS1 to SS4, a chopper switch 70, an amplifier 30, an SH comparator 40C, a control circuit 50, and a latch circuit 80C.

[0131] 17, the chopper switch 70 is connected between the second terminals of the switches SS1 to SS4 and the positive phase input terminal INP and the negative phase input terminal INN of the amplifier 30.

[0132] The chopper switch 70 has a differential input section, a differential output section, a switching section capable of switching between two paths connecting the differential input section and the differential output section, and a control terminal to which a signal S3, which is a control signal for switching the paths, is input.

[0133] In the chopper switch 70, the differential input section includes a first input end and a second input end. The first input end and the second input end are connected to the second ends of the switches SS1, SS2 and the switches SS3, SS4, respectively. The differential output section includes a first output end and a second output end. The first output end and the second output end are connected to the positive phase input terminal INP and the negative phase input terminal INN, respectively.

[0134] The switching section of the chopper switch 70 has four paths that openably connect between the first input terminal and the second input terminal and the first output terminal and the second output terminal. The four paths are a first path that openably connects the first input terminal and the first output terminal, a second path that openably connects the first input terminal and the second output terminal, a third path that openably connects the second input terminal and the first output terminal, and a fourth path that openably connects the second input terminal and the second output terminal. The open / close states of the four paths can be switched based on a control signal input from a control terminal.

[0135] The chopper switch 70 is configured to be switchable between a first connection state in which the first path and the fourth path are closed and the second path and the third path are open, and a second connection state in which the first path and the fourth path are open and the second path and the third path are closed. Here, the first connection state is a straight connection state, and the second connection state is a cross connection state.

[0136] In the first connection state, i.e., in a straight connection state, the chopper switch 70 can output signals inputted from the first input terminal and the second input terminal with the same polarity from the first output terminal and the second output terminal, while in the second connection state, i.e., in a cross connection state, the chopper switch 70 can invert the polarity of signals inputted from the first input terminal and the second input terminal and output the inverted polarity from the first output terminal and the second output terminal.

[0137] FIG. 18 is a circuit diagram showing an example of the SH comparator 40C. The SH comparator 40C differs from the SH comparator 40A in that it has a reference voltage circuit 48 instead of the reference voltage circuit 46, but is substantially the same in other respects.

[0138] The reference voltage circuit 48 is configured to be able to output a predetermined reference voltage (constant voltage). That is, the SH comparator 40C is configured by omitting the function of varying the reference voltage from the SH comparator 40A, and the operating point B of the horizontal Hall element 20 OP and return point B RP This is because the chopper switch 70 can invert the polarity of the differentially input signal and output it, so that the polarity of the signal input after the amplifier 30 can be unified to either positive or negative. In the description of this embodiment, the predetermined reference voltage is set to a positive voltage, the reference voltage V BOP Let us assume that.

[0139] The latch circuit 80C differs from the latch circuit 80A in the logic that determines the signal S3 to be output in response to the input signal S2, i.e., the latch output signal generating unit (not shown), but otherwise is substantially similar. The latch circuit 80C is configured to be capable of outputting, as the signal S3, a signal having the same level as the signal S2 or a signal having an opposite level to the signal S2, based on the input signal S2 and the inverse-phase reference clock signal CLKX. In other words, the latch circuit 80C is a so-called toggle-type latch circuit that is configured to be capable of toggle operation.

[0140] Next, the operation of the magnetic switch 10C will be described. In the magnetic switch 10C, similarly to the magnetic switch 10A, an output signal of the horizontal Hall element 20 is inputted from a first input terminal and a second input terminal, which are a differential input section, to the chopper switch 70 via the switches SS1 to SS4. Also, a signal S3 outputted from the latch circuit 80A is inputted to the chopper switch 70 from a control terminal.

[0141] The chopper switch 70 transitions to either a first connection state in which the differentially input signal is output without being inverted in polarity, or a second connection state in which the differentially input signal is output after being inverted in polarity, according to the level of the signal S3. Thus, the chopper switch 70 outputs the differentially input signal as is or after inverting the polarity of the differentially input signal, according to the level of the signal S3. Since the polarity of the signal differentially input to the chopper switch 70 is switched according to the level of the signal S3, a magnetoelectric conversion switching characteristic that is symmetrical with respect to the line Bin=0 (FIGS. 19 and 20 to be described later) is obtained.

[0142] The signals output from the first and second output terminals of the chopper switch 70 are input to the positive and negative phase input terminals INP and INN. The operation within the amplifier 30 is as described above.

[0143] In the SH comparator 40C following the amplifier 30, similarly to the SH comparator 40A, a differential voltage signal, which is a differential signal between the sampled signal S1 in the first period Φ1 and the sampled signal S1 in the second period Φ2, is compared with a predetermined reference voltage. The SH comparator 40C outputs a signal S2 whose level corresponds to the result of the comparison between the differential voltage signal and the predetermined reference voltage. The predetermined reference voltage is output from the reference voltage circuit 48 and is a constant voltage independent of the level of the signal S3. The signal S2 is input from the SH comparator 40C to the latch circuit 80C.

[0144] The latch circuit 80C performs a toggle operation at the final timing of the second period Φ2, i.e., at the falling edge of the inverted-phase reference clock signal CLKX. To explain this toggle operation in detail, when the level of the signal S2 is H level, a signal S3 switched to the opposite level from the level of the currently held signal S3 is output. When the level of the signal S2 is L level, a signal S3 that holds the level of the currently held signal S3 is output. The signal S3 output from the latch circuit 80C is transmitted to the output terminal 12, the control circuit 50, and the chopper switch 70. The operation of the control circuit 50 is as described above.

[0145] Next, the magnetoelectric conversion switching characteristics of the magnetic switch 10C will be described. Like magnetic switch 10A, magnetic switch 10C not only switches the combination of drive current directions, but also switches the magnetoelectric conversion characteristics after offset cancellation when the first direction pair is selected, depending on signal S3, to either invert the polarity of the signal input to chopper switch 70 and output it without inverting it.

[0146] FIG. 19 is a schematic diagram for explaining the relationship of the signals S1 and S3 with respect to the magnetic flux density Bin in the case where the magnetic offset of the horizontal Hall element 20 itself of the semiconductor device 1C is positive.

[0147] In FIG. 19, the solid line L DP1S is the magnetic offset B when the direction pair of the driving current is the first direction pair. OSDP The solid line L DP2C is the magnetic offset B when the direction pair of the driving current is the second direction pair. OSDP The dashed line BL indicates the magnetoelectric conversion characteristic where id1 is the magnetoelectric conversion characteristic obtained by taking the difference between the magnetoelectric conversion characteristics in both directions when the driving current is in the first direction pair. id2is the magnetoelectric conversion characteristic obtained by taking the difference between the magnetoelectric conversion characteristics in both directions when the driving current is in the second direction pair. The white arrows (1), (1a), (2), (3), (3a), and (4) represent the locus of hysteresis of the magnetoelectric conversion characteristic.

[0148] 19 is an example of a case where the third direction is selected when the signal S3 is at H level and in the first period Φ1, the first direction is selected when the signal S3 is at H level and in the second period Φ2, the fourth direction is selected when the signal S3 is at L level and in the first period Φ1, and the second direction is selected when the signal S3 is at L level and in the second period Φ2. In this example, the chopper switch 70 is in a straight connection state as the first connection state when the signal S3 is at H level. The chopper switch 70 is in a cross connection state as the second connection state when the signal S3 is at L level.

[0149] The magnetic switch 10C includes the chopper switch 70, and is therefore capable of inverting the polarity of the signal input to the chopper switch 70 and outputting it. DP1S and the solid line L shown in FIG. DP1C is a line segment symmetrical with respect to the horizontal axis, which is the magnetic flux density Bin. DP2C and the solid line L shown in FIG. DP2S is a line segment symmetrical with respect to the horizontal axis, which is the magnetic flux density Bin.

[0150] The white arrow (1) indicates the solid line L when the signal S3 is at the H level and the magnetic flux density Bin increases to the S pole side. DP1S The voltage input to the SH comparator 40C, i.e., the voltage of the signal S1, is the reference voltage V BOP exceeds (ΔV G>V BOP ), the signal S3 transitions to the L level.

[0151] When the signal S3 transitions to the L level, the direction of the selected drive current is switched to the second direction pair, and the chopper switch 70 is switched from the straight connection state to the cross connection state. DP1S From the locus on the magnetoelectric conversion characteristic corresponding to the solid line L DP2C Then, if the magnetic flux density Bin increases further toward the south pole, the voltage V changes to the locus on the magnetoelectric conversion characteristic corresponding to the solid line L DP2C The negative voltage increases further along the line (white arrow (3a)).

[0152] On the other hand, the locus when the magnetic flux density Bin decreases to the south pole, goes to Bin=0, and then increases to the north pole is shown by the white arrow (3). Furthermore, the magnetic flux density Bin increases toward the north pole side, and the voltage of the signal S1 becomes equal to the reference voltage V BOP exceeds (ΔV G>V BOP ), the signal S3 transitions to the H level.

[0153] When the signal S3 transitions to the H level, the direction of the selected drive current is switched to the first direction pair, and the chopper switch 70 is switched from the cross connection state to the straight connection state. DP2C From the locus on the magnetoelectric conversion characteristic corresponding to the solid line L DP1S Then, if the magnetic flux density Bin increases further toward the N pole, the voltage V changes to the solid line L DP1S The magnetic flux density Bin increases further to the negative side along the line (white arrow (1a)). On the other hand, the trajectory of the magnetic flux density Bin as it decreases in the north pole, goes to Bin=0, and then increases in the south pole is shown by the white arrow (1) mentioned above.

[0154] Fig. 20 is a schematic diagram for explaining the relationship between the signal S1 and the signal S3 and the magnetic flux density Bin when the magnetic offset of the horizontal Hall element 20 itself of the semiconductor device 1C is negative. Fig. 21 is an enlarged view of the portion Pa (see Fig. 20).

[0155] In FIG. 20, the solid line L DP1Cis the magnetic offset B when the direction pair of the driving current is the first direction pair. OSDP The solid line L DP2S is the magnetic offset B when the direction pair of the driving current is the second direction pair. OSDP The dashed line BL indicates the magnetoelectric conversion characteristic where id1 is the magnetoelectric conversion characteristic obtained by taking the difference between the magnetoelectric conversion characteristics in both directions when the driving current is in the first direction pair. id2 is the magnetoelectric conversion characteristic obtained by taking the difference between the magnetoelectric conversion characteristics in both directions when the driving current is in the second direction pair. The white arrows (1), (1a), (2), (3), (3a), and (4) represent the locus of hysteresis of the magnetoelectric conversion characteristic.

[0156] 20 is an example of a case where the fourth direction is selected when the signal S3 is at H level and in the first period Φ1, the second direction is selected when the signal S3 is at H level and in the second period Φ2, the third direction is selected when the signal S3 is at L level and in the first period Φ1, and the first direction is selected when the signal S3 is at L level and in the second period Φ2. In this example, the chopper switch 70 is in a straight connection state as the first connection state when the signal S3 is at H level. The chopper switch 70 is in a cross connection state as the second connection state when the signal S3 is at L level.

[0157] The white arrow (1) indicates the solid line L when the signal S3 is at the H level and the magnetic flux density Bin increases to the S pole side. DP2S The voltage input to the SH comparator 40C, i.e., the voltage of the signal S1, is equal to or lower than the reference voltage V BOP exceeds (ΔV G>V BOP ), the signal S3 transitions to the L level.

[0158] When the signal S3 transitions to the L level, the direction of the selected drive current is switched to the first direction pair, and the chopper switch 70 is switched from the straight connection state to the cross connection state. DP2SFrom the locus on the magnetoelectric conversion characteristic corresponding to the solid line L DP1C Then, if the magnetic flux density Bin increases further toward the south pole, the voltage V changes to the locus on the magnetoelectric conversion characteristic corresponding to the solid line L DP1C The concentration of β increases further in the positive direction along the line (white arrow (3a)).

[0159] On the other hand, the locus when the magnetic flux density Bin decreases to the south pole, goes to Bin=0, and then increases to the north pole is shown by the white arrow (3). Furthermore, the magnetic flux density Bin increases toward the north pole side, and the voltage of the signal S1 becomes equal to the reference voltage V BOP exceeds (ΔV G>V BOP ), the signal S3 transitions to the H level.

[0160] When the signal S3 transitions to the H level, the direction of the selected drive current is switched to the second direction pair, and the chopper switch 70 is switched from the cross connection state to the straight connection state. DP1C From the locus on the magnetoelectric conversion characteristic corresponding to the solid line L DP2S The magnetoelectric conversion characteristic then transitions to a locus corresponding to the above (white arrow (4)).

[0161] If the magnetic flux density Bin then increases further to the N pole side, the voltage V will change to the solid line L DP2S It further increases to the negative side along the line (white arrow (1a)). On the other hand, the locus when the magnetic flux density Bin decreases in the N pole, goes to Bin=0, and then increases in the S pole is shown by the white arrow (1) described above. In this embodiment, the shape of the hysteresis locus in the magnetoelectric conversion characteristic is a figure eight. In this way, the shape of the hysteresis locus in the magnetoelectric conversion characteristic of this embodiment is different from the shape of the hysteresis locus in the magnetoelectric conversion characteristic of the first and second embodiments, i.e., a parallelogram shape.

[0162] In this embodiment, for example, the reference voltage V BOPThe magnetoelectric conversion characteristics can be switched by applying one predetermined reference voltage, such as 1. In the present embodiment, since the magnetoelectric conversion characteristics are switched by applying one reference voltage, the magnetic switch 10C can use a reference voltage circuit 48 having a smaller circuit scale than the reference voltage circuit 46. Therefore, the magnetic switch 10C can be configured with a smaller circuit scale than the magnetic switches 10A and 10B.

[0163] According to this embodiment, the magnetoelectric conversion characteristic is switched for one reference voltage, so that the reference voltage V BOP and the reference voltage V BRP In the magnetic switch 10C, the reference voltage V BOP The variation of the two independent reference voltages V BOP and the reference voltage V BRP Therefore, according to this embodiment, magnetoelectric conversion switching characteristics with good symmetry between the south pole and the north pole can be obtained.

[0164] The present invention is not limited to the above-mentioned embodiment, and can be implemented in various forms other than the above-mentioned examples at the implementation stage, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. For example, a delay element or a buffer that delays the drive control signals Sd1 to Sd4 and the transfer control signals St1 and St2 by a predetermined time and outputs them may be further provided.

[0165] The semiconductor device 1C and the magnetic switch 10C described above are examples including the horizontal Hall element 20 as the Hall element, but like the semiconductor device 1B and the magnetic switch 10B, the Hall element may include a vertical Hall element 60 instead of the horizontal Hall element 20. The chopper switch 70 may be another circuit having a similar function. That is, in the magnetic switch 10C, a circuit having the above-mentioned differential input section, differential output section, switching section, and control terminal, and capable of switching an input signal to the same phase or opposite phase and outputting it based on the signal S3 input from the control terminal, can be applied instead of the chopper switch 70.

[0166] For example, instead of the chopper switch 70, a switch circuit configured by arranging a switch that turns on (short circuit) or off (open) based on a signal S3 input from a control terminal in parallel with a signal transmission path can be applied. The magnetic switch 10C to which this switch circuit is applied has a suppressed series resistance component and can obtain better noise characteristics than the magnetic switch 10C to which the chopper switch 70 is applied. Therefore, by applying the above switch circuit instead of the chopper switch 70, it is possible to provide a magnetic switch 10C having magnetoelectric conversion switching characteristics with good reproducibility.

[0167] The magnetic switch 10C may include an amplifier 30 having a polarity inversion function, instead of the chopper switch 70 and the amplifier 30 without a polarity inversion function.

[0168] Furthermore, the above-mentioned magnetic switches 10A to 10C are alternating current detection type magnetic switches, but may be configured as omnipolar detection type magnetic switches. When the magnetic switches 10A to 10C are configured as omnipolar detection type magnetic switches, the magnetic switches 10A to 10C may be configured to switch the gain of the amplifier 30 or the gain of the amplifier 30 and the absolute value of the predetermined reference voltage of the SH comparators 40A and 40C according to the signal level of the signal S3.

[0169] The configuration capable of switching the gain of the amplifier 30 or the gain of the amplifier 30 and the absolute value of the predetermined reference voltage of the SH comparators 40A and 40C can be formed by, for example, a logic circuit, a switch circuit including a switch that opens and closes based on the signal S3, or a circuit that combines these. When the magnetic switches 10A to 10C are formed as omnipolar detection type magnetic switches, the variation in the detection distance of the magnetic material detection mechanism including the semiconductor device according to this embodiment can be reduced even if the polarity of the combined magnets is not managed.

[0170] The above-mentioned magnetic switches 10A to 10C may be configured as a so-called one-pole detection type magnetic switch. The one-pole detection type magnetic switch has an operating point B OP and return point B RP When the magnetic switches 10A to 10C are configured as one-pole detection type magnetic switches, if a control logic switching process is added during manufacturing, the operating point B can be set to either the S pole or the N pole. OP and return point B RP Operating point B has both OP and return point B RP can be adjusted.

[0171] In the above-mentioned embodiment, the horizontal Hall element 20 has the electrodes 21-24 formed at the four corners of a square (see, for example, FIGS. 1 and 17), but the present invention is not limited thereto. The horizontal Hall element 20 may have any shape that allows at least the driving current direction to define the four directions, the first to fourth directions, described above. That is, the horizontal Hall element 20 may be formed in a square shape, a cross shape, an octagonal shape, a circle shape, or the like. The number of the electrodes 21-24 may be four or more.

[0172] In the above-mentioned embodiment, the vertical Hall element 60 having five electrodes 61 to 65, i.e., five terminals, is exemplified, but is not limited thereto. The vertical Hall element 60 may be configured so that at least the driving current direction can be defined in the four directions, the first to fourth directions, described above.

[0173] In the above-described embodiment, the logic circuit 57 is not limited to the logic operation elements and circuit configuration exemplified in Fig. 3. Any logic operation elements and circuit configurations may be used as long as the circuit can obtain the same logical operation result when the above-described input signals are input.

[0174] In the above embodiment, the switch circuit 58 for switching the control logic pattern has been described as an example of a means for switching the control logic pattern, but the means for switching the control logic pattern is not limited to this. For example, the switches SL1a, SL2a, SL1b, SL2b, SL1c, and SL2c may be mechanical switches, electronic switches such as transistors, or a combination of these.

[0175] In addition, the switches SL1a, SL2a, SL1b, SL2b, SL1c, and SL2c may be switches having control terminals. When the switches SL1a, SL2a, SL1b, SL2b, SL1c, and SL2c that can be opened and closed in response to a signal input from the control terminal are used, it is possible to construct a semiconductor device and a magnetic switch that can automatically switch between the first control logic pattern and the second control logic pattern in response to a change in a factor of interest.

[0176] For example, the factor of interest is the polarity of the asymmetry of the voltage offset of the Hall element, and the magnetic switches 10A to 10C are further provided with a detection circuit for detecting the polarity of the asymmetry of the voltage offset of the Hall element. The detection circuit outputs a signal based on the result of detecting the polarity of the asymmetry of the voltage offset of the Hall element. The magnetic switch is configured to input the signal output from the detection circuit to each of the control terminals of the switches SL1a, SL2a, SL1b, SL2b, SL1c, and SL2c. The magnetic switch configured in this way and the semiconductor device including the same can switch the control logic pattern to a first control logic pattern or a second control logic pattern according to the polarity of the asymmetry of the voltage offset of the Hall element.

[0177] In addition, a circuit for evaluating the absolute value of the voltage offset difference of the Hall element is further provided, and the amplification factor G of the amplifier 30 and the reference voltage V of the SH comparator 40A are adjusted based on a signal indicating the evaluation result of this circuit. BOP and the reference voltage V BRP In this case, the magnetic offset B OS Not only can it reduce the magnetic offset B OSDP Operating point B occurs at OP and return point B RP This can suppress deviations from the design values.

[0178] Furthermore, the means for switching the control logic pattern may be configured to include a control circuit that performs a control operation according to a first control logic pattern, a second control circuit that performs a control operation according to a second control logic pattern, and a control circuit selection switch that switches between either the control circuit or the second control circuit.

[0179] For example, the control circuit 50 in the connection state in which the switches SL1a, SL1b, and SL1c are "on" and the switches SL2a, SL2b, and SL2c are "off" as illustrated in Fig. 3 is a control circuit that performs a control operation according to the first control logic pattern. Also, the control circuit 50 in the connection state in which the switches SL1a, SL1b, and SL1c are "off" and the switches SL2a, SL2b, and SL2c are "on" is a second control circuit. In this case, the control circuit selection switch may be configured to connect the control circuit and the second control circuit in parallel, and to switch between the control circuit and the second control circuit as the circuit to which the signal S3 is input and the circuit from which the drive control signals Sd1 to Sd4 and the transfer control signals St1 and St2 are output.

[0180] In the above-described embodiment, the switch circuit 58 is provided in the control circuit 50, but may be formed as an independent circuit separate from the control circuit 50. In this case, the reference clock signal CLK and the signal S3, whose signal levels have been switched by the switch circuit 58, are input to the control circuit 50.

[0181] In the above embodiment, the horizontal Hall element 20 and the vertical Hall element 60 are a single element. OSDP In order to reduce the size of the operating point B, a configuration in which a plurality of Hall element cells are connected in parallel may be adopted. OP and return point B RP Therefore, the magnetic switches 10A to 10C using the Hall element configured by connecting a plurality of Hall element cells in parallel can obtain magnetoelectric conversion switching characteristics closer to the design values ​​than the magnetic switches 10A to 10C configured without connecting a plurality of Hall element cells in parallel, i.e., equipped with a Hall element that is a single element.

[0182] In addition, when processing speed is important, magnetic switches 10A to 10C having a Hall element configured by connecting multiple Hall element cells in parallel can suppress the output resistance and time constant of the Hall element, and therefore can achieve faster processing speeds than magnetic switches 10A to 10C having a Hall element configured as a single element.

[0183] In the above-described embodiment, the driving terminal 11P is connected to a first power supply and the driving terminal 11N is connected to a second power supply, i.e., the driving power supply for the magnetic switches 10A to 10C is a constant voltage source. However, the driving power supply for the magnetic switches 10A to 10C may be a constant current source.

[0184] When a constant voltage source is used as the driving power supply, a constant current source circuit for driving is not required, and therefore the circuit size is smaller than when a constant current source is used as the driving power supply. Also, when a constant current source is used as the driving power supply, the residual offset voltage of the Hall element is relatively smaller than when a constant voltage source is used as the driving power supply.

[0185] In the above embodiment, the signal processing of the magnetic switches 10A to 10C is described as being in voltage mode, but some or all of the signal processing may be in current mode. Current mode signal processing is faster than voltage mode signal processing, so it is easier to increase the reference clock frequency compared to when voltage mode signal processing is used. Therefore, the magnetic switches 10A to 10C with current mode signal processing can further improve the detection accuracy and signal processing speed compared to the magnetic switches 10A to 10C with voltage mode signal processing.

[0186] In the above-described embodiment, a configuration example of the magnetic switches 10A to 10C to which the differential input / single phase output type amplifier 30 and the single phase input type SH comparators 40A and 40C are applied is described. However, the amplifier 30 and the SH comparators 40A and 40C are not limited to this example. The magnetic switches 10A to 10C may be provided with a differential input / output type amplifier 30 and a differential input type SH comparator 40A and 40C. In this case, it is possible to provide the magnetic switches 10A to 10C that are relatively robust against common-mode noise superimposed from a power supply or the like.

[0187] These embodiments and their variations are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]

[0188] 1A~1C Semiconductor Devices 2. Semiconductor Substrate 10A~10C Magnetic Switch 20 Horizontal Hall element 21~24 electrodes 30 Amplifier 40A, 40C SH comparator 50 Control circuit 51a, 51b Input terminals 56a~56f Output terminals 57 Logic circuit (control signal generation circuit) 58 Switch circuit (second switch circuit) 60 Vertical Hall Element 70 Chopper Switch 80A, 80C Latch circuit SP1 to SP4, SN1 to SN4 switches (first switch circuits) Φ1, Φ2 First period, second period CLK Reference clock signal S3 signal (latch output signal)

Claims

1. A semiconductor device including a magnetic switch provided on a semiconductor substrate, The magnetic switch includes a Hall element including a first electrode and a second electrode arranged on a first line, and a third electrode and a fourth electrode arranged on a second line perpendicular to the first line; a first switch circuit including a plurality of switches and configured to be able to select one of four directions, a first direction from the first electrode to the second electrode, a second direction from the second electrode to the first electrode, a third direction from the third electrode to the fourth electrode, and a fourth direction from the fourth electrode to the third electrode, as a direction of a drive current of the Hall element; a comparison circuit that alternately performs a first operation of sampling a signal transmitted from the Hall element and a second operation of comparing a value of a difference signal between the signal transmitted from the Hall element and the signal sampled by the first operation with a reference value and outputting a result signal based on the result; a latch circuit that holds the result signal output from the comparison circuit and outputs the held signal as a latch output signal; a control circuit configured to be able to select, based on the latch output signal, one of a first mode in which an open / closed state of the switch is controlled so that the drive current flows in the third direction during a first period in which the first operation is performed and the drive current flows in the first direction during a second period in which the second operation is performed, and a second mode in which an open / closed state of the switch is controlled so that the drive current flows in the second direction during the first period and the drive current flows in the fourth direction during the second period.

2. The control circuit includes a first input terminal to which the latch output signal is input; a second input terminal to which a reference clock signal having one cycle equal to the sum of the first period and the second period is input; a control signal generating circuit that generates, based on the latch output signal input from the first input terminal, four control signals synchronized with the reference clock signal input from the second input terminal; 2. The semiconductor device according to claim 1, further comprising: a first control signal output terminal for outputting a first control signal, a second control signal output terminal for outputting a second control signal, a third control signal output terminal for outputting a third control signal, and a fourth control signal output terminal for outputting a fourth control signal, among the four control signals.

3. The control circuit includes a first input terminal to which the latch output signal is input; a second input terminal to which a reference clock signal having one cycle equal to the sum of the first period and the second period is input; a logic circuit including a logic operation element connected to the first input terminal and the second input terminal, which obtains four control signals synchronized with the reference clock signal input from the second input terminal based on the latch output signal input from the first input terminal; 2. The semiconductor device according to claim 1, further comprising: a first control signal output terminal for outputting a first control signal, a second control signal output terminal for outputting a second control signal, a third control signal output terminal for outputting a third control signal, and a fourth control signal output terminal for outputting a fourth control signal, among the four control signals.

4. the logic circuit includes a second switch circuit provided between the first input terminal and the second input terminal and between the logic operation element, 4. The semiconductor device according to claim 3, wherein the second switch circuit includes a first path and a second path different from the first path, which are mutually switchable between the first input terminal and the second input terminal and the logical operation element.

5. the control circuit is configured to generate a first control signal, a second control signal, a third control signal, and a fourth control signal as the four control signals synchronized with the reference clock signal input from the second input terminal, based on the latch output signal input via the first path, output the first control signal from the first control signal output terminal, output the second control signal from the second control signal output terminal, output the third control signal from the third control signal output terminal, and output the fourth control signal from the fourth control signal output terminal; 5. The semiconductor device according to claim 4, configured to generate a fifth control signal, a sixth control signal, a seventh control signal, and an eighth control signal as the four control signals synchronized with the reference clock signal input from the second input terminal based on the latch output signal input via the second path, output the fifth control signal from the first control signal output terminal, output the sixth control signal from the second control signal output terminal, output the seventh control signal from the third control signal output terminal, and output the eighth control signal from the fourth control signal output terminal.

6. a second control circuit having the first input terminal and the second input terminal, the control signal generation circuit, and the first to fourth control signal output terminals, and configured to be able to select one of the first mode and the second mode based on the latch output signal; 3. The semiconductor device according to claim 2, further comprising: a control circuit selection switch configured to be able to switch whether a terminal to which the latch output signal is input and a terminal to which the four control signals are output are the first input terminal and the first to fourth control signal output terminals of the control circuit, or the first input terminal and the first to fourth control signal output terminals of the second control circuit.

7. a first drive terminal connected to a first power supply; a second drive terminal connected to a second power supply; the Hall element is connected to the first drive terminal and the second drive terminal via the plurality of switches, The plurality of switches include a first switch including a control terminal to which a control signal output from the first control signal output terminal is input, the first switch being capable of opening and closing a path between the first drive terminal and the first electrode; a second switch including a control terminal to which a control signal output from the first control signal output terminal is input, the second switch being capable of opening and closing a path between the second electrode and the second drive terminal; a third switch including a control terminal to which a control signal output from the second control signal output terminal is input, the third switch being capable of opening and closing a path between the first drive terminal and the third electrode; a fourth switch including a control terminal to which a control signal output from the second control signal output terminal is input, the fourth switch being capable of opening and closing a path between the fourth electrode and the second drive terminal; a fifth switch including a control terminal to which a control signal output from the third control signal output terminal is input, the fifth switch being capable of opening and closing a path between the first drive terminal and the second electrode; a sixth switch including a control terminal to which a control signal output from the third control signal output terminal is input, the sixth switch being capable of opening and closing a path between the first electrode and the second drive terminal; a seventh switch including a control terminal to which a control signal output from the fourth control signal output terminal is input, the seventh switch being capable of opening and closing a path between the first drive terminal and the fourth electrode; 7. The semiconductor device according to claim 2, further comprising: an eighth switch including a control terminal to which a control signal output from the fourth control signal output terminal is input, the eighth switch being capable of opening and closing a path between the third electrode and the second drive terminal.

8. the comparison circuit includes a reference voltage circuit including an output terminal for outputting, as the reference value, one of a first voltage and a second voltage different from the first voltage; a sample and hold amplifier including a first input terminal to which a signal transmitted from the Hall element is input, a second input terminal to which a reference clock signal having one cycle equal to the total period of the first period and the second period is input, and an output terminal to output a value of a difference signal between a signal sampled in the first period and a signal transmitted from the Hall element in the second period; 8. The semiconductor device according to claim 1, further comprising: a comparator including: a first input terminal connected to an output terminal of the sample and hold amplifier; a second input terminal connected to an output terminal of the reference voltage circuit; and an output terminal for outputting a result signal based on a result of comparing a value of a signal input from the first input terminal with the reference value input from the second input terminal.

9. the chopper switch further comprises: a first input end and a second input end; a first output end connected to the first input end via a first path that can be opened and closed and connected to the second input end via a second path that can be opened and closed; a second output end connected to the second input end via a third path that can be opened and closed and connected to the second input end via a fourth path that can be opened and closed; and a control terminal to which the latch output signal is input, the chopper switch being configured to be switchable between a first connection state in which the first path and the fourth path are closed and the second path and the third path are opened, based on the latch output signal input from the control terminal; the chopper switch is provided in a stage preceding the comparison circuit, The comparison circuit includes: a sample and hold amplifier including: a reference voltage circuit that outputs a predetermined reference voltage; a first input terminal to which a signal transmitted from the Hall element is input; a second input terminal to which a reference clock signal having one cycle equal to the total period of the first period and the second period is input; and an output terminal that outputs a value of a difference signal between a signal sampled in the first period and a signal transmitted from the Hall element in the second period; 8. The semiconductor device according to claim 1, further comprising: a comparator including: a first input terminal connected to an output terminal of the sample and hold amplifier; a second input terminal connected to an output terminal of the reference voltage circuit; and an output terminal for outputting a result signal based on a result of comparing a value of a signal input from the first input terminal with the reference value input from the second input terminal.

10. 10. The semiconductor device according to claim 1, wherein the Hall element is a horizontal Hall element that obtains an output according to a magnetic flux density perpendicular to the semiconductor substrate.

11. 10. The semiconductor device according to claim 1, wherein the Hall element is a vertical Hall element that obtains an output according to a magnetic flux density parallel to the semiconductor substrate.

12. The semiconductor device according to claim 1 , wherein the Hall element includes a plurality of Hall element cells, and the plurality of Hall element cells are connected in parallel.

Citation Information

Patent Citations

  • Magnetic-field sensor with hall effect device

    JP2006133240A

  • Magnetic sensor circuit and electronic device with the use thereof

    JP2009002851A

  • Magnetic sensor and magnetic measurement method

    JP2010054301A

  • Magnetic sensor

    JP2013253886A

  • Signal processing circuit and signal processing method

    JP2017125783A