Semiconductor Device
The semiconductor device corrects asymmetrical magnetoelectric conversion in Hall elements by adjusting reference voltages, improving symmetry and reducing detection variations in magnetic switches, thus stabilizing rotation speed and accuracy.
Patent Information
- Application Number
- JP2021048068
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-23
- Publication Date
- 2024-11-11
- Estimated Expiration
- 2041-03-23
AI Technical Summary
Existing semiconductor devices with Hall elements suffer from asymmetrical magnetoelectric conversion characteristics due to offset voltages, leading to fluctuations in rotation speed and vibrations in BL DC motors, and variations in detection distance in magnetic switches.
A semiconductor device with a magnetic switch that includes a Hall element, a switch circuit, an amplifier, a comparator, and a reference voltage circuit, where the connection state between input and output terminals is adjusted based on a control signal to correct magnetic offset, using adjustable reference voltages to align operating and return points for symmetric conversion.
The solution improves the symmetry of magnetoelectric conversion characteristics, stabilizing rotation speed and reducing detection variations, enhancing the accuracy and reliability of magnetic switches.
Smart Images

Figure 0007580318000001 
Figure 0007580318000002 
Figure 0007580318000003
Abstract
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 absolute values of the operating point and the reset 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, which are primarily used with alternating magnetic field detection type magnetic switches.
[0006] Furthermore, in a omnipolar detection magnetic switch, if the polarity of the magnets used in combination is not managed, this can lead to variations in the detection distance of the detection mechanism, which can result in offset voltage. The spinning current method is known as one method for removing 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 asymmetry caused by the offset voltage of the comparator (see, for example, Patent Documents 1 and 2). [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2009-2851 A [Patent Document 2] JP 2015-95727 A Summary of the Invention [Problem to be solved by the invention]
[0008] However, in the technology using the two-way drive spinning current method such as the technology described in Patent Documents 1 and 2, the symmetry of the magnetoelectric conversion characteristics of the magnetic switch may not be ensured. More specifically, in the 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, the offset voltage remains. In other words, the magnetoelectric conversion characteristics of the magnetic switch may become asymmetric.
[0009] In view of the above circumstances, an object of the present invention is to provide a semiconductor device capable of improving the symmetry of magnetoelectric conversion characteristics. [Means for solving the problem]
[0010] A semiconductor device according to the present invention is a semiconductor device including a magnetic switch provided on a semiconductor substrate, the magnetic switch having a Hall element having at least four electrodes, a first power supply terminal and a second power supply terminal, a drive current source for driving the Hall element, an input terminal pair to which a differential output voltage is supplied from two of the four electrodes, an output terminal pair, and a control terminal, and further comprising a switch circuit capable of switching a connection state between the input terminal pair and the output terminal pair between a first state and a second state based on a control signal supplied to the control terminal, an amplifier for amplifying a signal supplied from the output terminal pair of the switch circuit, and a control circuit for controlling a reference common-mode voltage and the control signal to be inputted, Output Reference Voltage Adjustable A reference voltage circuit, an output signal of the amplifier and the reference voltage Differential input voltage with a comparator to which the output voltage of the comparator is input, and a latch circuit that latches the output voltage of the comparator and uses the latch output signal as the control signal. the reference voltage circuit is configured to, when a magnetic offset of the Hall element is negative, adjust the reference voltage by adding an adjustment value of the reference voltage based on the control signal in a positive direction to a reference value of the reference voltage, which is a voltage based on the reference in-mode voltage, in the first state, and adjust the reference voltage by adding the adjustment value in a negative direction to the reference value in the second state; when a magnetic offset of the Hall element is positive, adjust the reference voltage by adding the adjustment value in a negative direction to the reference value of the reference voltage in the first state, and adjust the reference voltage by adding the adjustment value in a positive direction to the reference value in the second state; the reference value is the differential input voltage at a magnetic flux density that is an operating point or a return point of an ideal Hall element where the magnetic offset is zero, and the adjustment value is a difference between the differential input voltage of the ideal Hall element and the differential input voltage of the Hall element included in the magnetic switch at the magnetic flux density. It is characterized by the above. Effect of the Invention
[0011] According to the present invention, it is possible to provide a semiconductor device capable of improving the symmetry of magnetoelectric conversion characteristics. [Brief description of the drawings]
[0012] [Figure 1] 1 is a schematic diagram of a semiconductor device according to a first embodiment. [Diagram 2] 2 is a schematic diagram illustrating an example of a reference voltage circuit in the semiconductor device according to the first embodiment. [Diagram 3] 4 is a circuit diagram showing a more detailed configuration example of a current source circuit in the reference voltage circuit. FIG. [Figure 4] 2 is a circuit diagram showing a configuration example of a decoder in the semiconductor device according to the first embodiment. FIG. [Diagram 5] 4 is a truth table showing an operation of a decoder in the semiconductor device according to the first embodiment. [Figure 6]4 is an explanatory diagram illustrating magnetoelectric conversion characteristics when the magnetic offset of the Hall element is negative (BOS<0) and is not adjusted in the semiconductor device according to the present embodiment. FIG. [Figure 7] 10 is an explanatory diagram illustrating magnetoelectric conversion characteristics when the magnetic offset of the Hall element is negative (BOS<0) and adjustment is performed in the semiconductor device according to the present embodiment. FIG. [Figure 8] 4 is an explanatory diagram illustrating magnetoelectric conversion characteristics when the magnetic offset of the Hall element is positive (BOS>0) and not adjusted in the semiconductor device according to the present embodiment. FIG. [Figure 9] 10 is an explanatory diagram illustrating magnetoelectric conversion characteristics when the magnetic offset of the Hall element is positive (BOS>0) and adjustment is performed in the semiconductor device according to the present embodiment. FIG. [Figure 10] 3 is a schematic diagram illustrating the relationship between a control signal and an adjustment current, a reference voltage, and a magnetic offset in the semiconductor device according to the first embodiment. FIG. [Figure 11] 10 is a circuit diagram illustrating an example of a reference voltage circuit in a semiconductor device according to a second embodiment. [Figure 12] FIG. 11 is a circuit diagram showing a configuration of a decoder in a semiconductor device according to a second embodiment. [Figure 13] 10 is a truth table showing an operation of a decoder in the semiconductor device according to the second embodiment. [Figure 14] 11 is a schematic diagram illustrating the relationship between a control signal and an adjustment current, a reference voltage, and a magnetic offset in the semiconductor device according to the second embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] 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."
[0014] [First embodiment] FIG. 1 is a schematic diagram showing the configuration of a semiconductor device 1A according to the first embodiment.
[0015] The semiconductor device 1A includes a magnetic switch 10A provided on a semiconductor substrate 2. The magnetic switch 10A includes a first power supply terminal 5, a second power supply terminal 6, a Hall element 30, a switch circuit 80, a current source 41, an amplifier 50, a comparator 60, a reference voltage circuit 70A, and a latch circuit 100.
[0016] The Hall element 30 is a magnetic detection element having four electrodes 30a to 30d, and obtaining a differential output voltage VH according to the drive current IDRV and the magnetic flux density Bin perpendicular to the semiconductor substrate 2. The electrodes 30a to 30d are provided on a resistor formed of an impurity diffusion layer or a well layer of the semiconductor substrate 2, and are disposed, for example, at positions that are the vertices of a square, i.e., at diagonal positions.
[0017] The current source 41 as a drive current source has a first end 411 connected to the electrode 30a and a second end 412 connected to a first power supply terminal 5 that supplies a voltage VDD. The current source 41 is configured to supply a drive current IDRV that is a predetermined current so that the Hall element 30 can obtain a desired magnetoelectric conversion effect.
[0018] The switch circuit 80 is a so-called chopper switch circuit having an input terminal pair consisting of input terminals 80a and 80b, an output terminal pair consisting of output terminals 80c and 80d, and a control terminal 80e. The switch circuit 80 is configured to be able to switch the connection state between the input terminal pair and the output terminal pair between a first state (straight connection state) and a second state (cross connection state) according to the logic level input to the control terminal 80e. Here, the first state (straight connection state) is a connection state in which the differential output voltage VH input from the input terminal 80a and the input terminal 80b is transmitted to the output terminal 80c and the output terminal 80d, respectively. The second state (cross connection state) is a connection state in which the differential output voltage VH input from the input terminal 80a and the input terminal 80b is transmitted to the output terminal 80d and the output terminal 80c, respectively.
[0019] The amplifier 50 is composed of a differential amplifier circuit having two input terminals, a positive phase input terminal 50a and a negative phase input terminal 50b, a reference terminal 50c to which an output reference in-phase voltage is input, and an output terminal 50OT which amplifies and outputs the difference between the two signals input from the positive phase input terminal 50a and the negative phase input terminal 50b.
[0020] The reference voltage circuit 70A has a control terminal 70c, a reference common-mode voltage terminal 70b, and an output terminal 70OT, and is configured to output a reference voltage 701 from the output terminal 70OT in response to a logic signal input to the control terminal 70c, based on the reference common-mode voltage VCM input to the reference common-mode voltage terminal 70b.
[0021] The comparator 60 has a positive phase input terminal 60a to which the amplifier output signal 501 is input, a negative phase input terminal 60b to which a reference voltage 701 is input, and an output terminal 60OT. The comparator 60 is configured to compare the magnitude of the amplifier output signal 501 with that of the reference voltage 701, and to output a binary logic signal according to the comparison result as a comparator output signal 601.
[0022] The latch circuit 100 has a signal input terminal to which the comparator output signal 601 is input, a clock input terminal to which a latch clock signal 706 is input, and an output terminal from which a control signal 702 is output as a latch output signal. The latch circuit 100 is configured to perform a so-called data latch operation. The output terminal of the latch circuit 100 is connected to the output terminal OUT of the magnetic switch 10A.
[0023] 2 is a schematic diagram of the reference voltage circuit 70 A. The configuration of the reference voltage circuit 70 A will be described with reference to the diagram.
[0024] The reference voltage circuit 70A includes a first resistor 704, current sources 42, 43, and 44, an output terminal 70OT that outputs a reference voltage 701, a control terminal 70c, and a reference common-mode voltage terminal 70b. The current source 42 (specifically, a first terminal 421 described later), the current source 43 (specifically, a second terminal 432 described later), the current source 44 (specifically, a first terminal 441 described later), the first resistor 704 (specifically, the other terminal described later), and the output terminal 70OT are connected at a node N1.
[0025] The first resistor 704 is composed of a single or multiple resistive elements having a predetermined resistance value, one end of which is connected to the reference common-mode voltage terminal 70b and the other end of which is connected to the output terminal 70OT.
[0026] The current sources 42 and 43 are variable current sources that are set to two continuously variable values and are configured to be switchable to one of the two set values based on a control signal given to a control end. The current source 42 has a first end 421 connected to the other end of the first resistor 704 and the output terminal 70OT, a second end 422 connected to the first power supply terminal 5, and a control end connected to the control terminal 70c.
[0027] The current source 43 has a first end 431 connected to the second power supply terminal 6 supplying the voltage VSS, a second end 432 connected to the node N1, and further has a control end.
[0028] The current source 44 is configured as a constant current source that supplies a current having a predetermined characteristic current value. The current source 44 has a first end 441 connected to the node N1 and a second end 442 connected to the first power supply terminal 5.
[0029] The current source 42 and the current source 43 supply the internally adjusted (details will be described later) current values IDACP and IDACN to the first resistor 704 in response to the control signal 702. IDACP flows into the first resistor 704, and IDACN flows out of the first resistor 704. The current value nIREF of the current source 44 flows into the first resistor 704 regardless of the control signal 702. As a result, a current of nIREF+IDACP or nIREF-IDACN flows into the first resistor 704. One end of the first resistor 704 is connected to the reference common-mode voltage terminal 70b, so that a reference voltage 701 is generated that is determined by the product of the resistance value of the first resistor 704 and the current of nIREF+IDACP or nIREF-IDACN with reference to the reference common-mode voltage VCM.
[0030] FIG. 3 is a circuit diagram showing a more detailed configuration example of the current source 41 and the current sources 42, 43, and 44 in the reference voltage circuit 70A, specifically, a configuration example of a current source circuit including the current sources 41 to 44.
[0031] The current source circuit of FIG. 3 includes a reference current source 40 that supplies a reference current from a first power supply terminal 5 to a second power supply terminal 6, first to third transistors T1 to T3, current source transistors T41, T42A to T42C, T43A to T43C, first to sixth current switches SC1 to SC6, a memory circuit 93A, and a decoder 94A.
[0032] The reference current source 40 is configured as a current source having a current value IREF, one end of which is connected to the second power supply terminal 6, and the other end of which is connected to the drain terminal and gate terminal of the first transistor T1.
[0033] The first transistor T1 is a Pch transistor, with a source terminal connected to the first power supply terminal 5 and a drain terminal commonly connected to the reference current source 40, so that a drain current having a current value IREF flows.
[0034] The second transistor T2 is a Pch transistor having the same (W / L) ratio as the first transistor, with its source terminal connected to the first power supply terminal 5, its gate terminal commonly connected to the gate terminal of the first transistor T1, and its drain terminal commonly connected to the gate terminal and drain terminal of the third transistor T3, forming a current mirror circuit, through which a drain current of current value IREF flows.
[0035] The third transistor T3 is an Nch transistor with a source terminal commonly connected to the second power supply terminal 6 and a drain terminal commonly connected to the drain terminal of the second transistor T2, so that a drain current having a current value IREF flows.
[0036] The current source transistor T41 is configured as a Pch transistor having a (W / L) ratio m times that of the first transistor T1, and has a gate terminal commonly connected to the gate terminal of the first transistor T1 and a source terminal connected to the first power supply terminal 5, forming a current mirror circuit, through which a drain current of a current value mIREF flows. This drain current is the drive current IDRV of the Hall element 30 (see FIG. 1).
[0037] The current source transistors T42A to T42C are configured as Pch transistors having a (W / L) ratio of 4 times, 2 times, and 1 times that of the first transistor T1, respectively, and have gate terminals commonly connected to the gate terminal of the first transistor T1, source terminals connected to the first power supply terminal 5, and are configured to be able to supply drain currents weighted to current values 4IREF, 2IREF, and IREF, respectively, to configure a current mirror circuit. The drain terminals of the current source transistors T42A to T42C are connected to one end of the first to third current switches SC1 to SC3, respectively. The other ends of the first to third current switches SC1 to SC3 are commonly connected to the first terminal 421, and whether or not the drain currents of the current source transistors T42A to T42C are supplied to the first terminal 421 is controlled according to the open / close state of the switches.
[0038] Here, if the first to third current switches SC1 to SC3 are all short-circuited, the drain current supplied from the current source transistors T42A to T42C to the first terminal 421 of the current source 42 is 7IREF in total, and if the first to third current switches SC1 to SC3 are all open, the drain current supplied from the current source transistors T42A to T42C to the first terminal 421 is zero. Depending on the individual open / close states of the first to third current switches SC1 to SC3, the drain current supplied from the current source transistors T42A to T42C to the first terminal 421 can be controlled with a resolution of the current value IREF within the range of 0 to 7IREF.
[0039] The current source transistors T43A to T43C are configured as Nch transistors having a (W / L) ratio of 4 times, 2 times, and 1 times that of the third transistor T3, respectively, and have gate terminals commonly connected to the gate terminal of the third transistor T3, source terminals connected to the second power supply terminal 6, and are configured to be able to supply drain currents weighted by current values 4IREF, 2IREF, and IREF, respectively, to configure a current mirror circuit. The drain terminals of the current source transistors T43A to T43C are connected to one end of the fourth to sixth current switches SC4 to SC6, respectively. The other ends of the fourth to sixth current switches SC4 to SC6 are commonly connected to the first end 431 of the current source 43, and depending on the open / closed state, it is controlled whether or not to supply the drain currents of the current source transistors T43A to T43C to the first end 431.
[0040] Here, if the fourth to sixth current switches SC4 to SC6 are all short-circuited, the drain current supplied from the current source transistors T43A to T43C to the first terminal 431 is −7IREF in total, and if the fourth to sixth current switches SC4 to SC6 are all open, the drain current supplied from the current source transistors T43A to T43C to the first terminal 431 is zero. Depending on the individual open / close states of the fourth to sixth current switches SC4 to SC6, the drain current supplied from the current source transistors T43A to T43C to the first terminal 431 of the current source 43 can be controlled with a resolution of the current value IREF in the range of −7IREF to 0.
[0041] The current source transistor T44 is configured as a Pch transistor having a (W / L) ratio n times that of the first transistor T1, and has a gate terminal commonly connected to the gate terminal of the first transistor T1 and a source terminal connected to the first power supply terminal 5, forming a current mirror circuit, through which a drain current of a current value nIREF flows. This drain current is a current that constantly drives the first resistor 704 regardless of the state of the control signal 702 (see FIG. 2).
[0042] The memory circuit 93A is configured as a 4-bit non-volatile memory such as a fuse ROM or an EEPROM, and outputs binary signals D0 to D3 that are connected to a decoder 94A. The binary signals D0 to D3 are set in advance during the manufacturing process in accordance with a binary adjustment code BinCode that is defined according to the amount of current adjustment required to adjust the magnetoelectric conversion characteristics.
[0043] The decoder 94A receives the control signal 702 and the binary signals D3 to D0, and outputs binary control signals 941 to 946 for the first to sixth current switches SC1 to SC6 in response to the binary signals. 。 When the binary control signals 941 to 946 are "1", the corresponding first to sixth current switches SC1 to SC6 are conductive, and the drain currents of the current source transistors T42A to T42C and the current source transistors T43A to T43C flow to the first terminal 421 of the current source 42 and the first terminal 431 of the current source 43, respectively. When the binary control signals 941 to 946 are "0", the corresponding first to sixth current switches SC1 to SC6 are cut off, and the drain currents of the current source transistors T42A to T42C and the current source transistors T43A to T43C are cut off, respectively.
[0044] Fig. 4 shows an example of a detailed configuration of the decoder 94A, and Fig. 5 shows a truth table of the decoder 94A. A detailed configuration example of the decoder 94A will be described with reference to Fig. 4.
[0045] The decoder 94A includes various logic gates IV1 , IV 2, AN1~AN10, OR1 , OR2, and the control signal 702 and the binary signal D3 (polarity bit) Combinational logic signals 5, the binary signals D2 to D0 (absolute value bits) are enabled and output to the binary control signals 941 to 946. More specifically, the binary control signals 941 to 946 of the first to sixth current switches SC1 to SC6 are output in accordance with a truth table as shown in FIG.
[0046] 5, the allocation of the binary control signals 941-946 to the binary signal D[3:0] is switched and the sign of the IDAC for the binary signal D[3:0] is reversed according to the sign of the control signal 702. In this example, D[3:0]=0000b and D[3:0]=1000b correspond to 0 (zero), that is, the adjustment range is 0 (zero) or the magnetic offset adjustment is not performed.
[0047] Next, the operation of the semiconductor device 1A will be described. 6 and 7 are explanatory diagrams illustrating the magnetoelectric conversion characteristics of the semiconductor device 1A when the magnetic offset of the Hall element 30 is negative. Fig. 6 shows the magnetoelectric conversion characteristics without adjustment, and Fig. 7 shows the magnetoelectric conversion characteristics when the semiconductor device of this embodiment is optimally adjusted.
[0048] 6 and 7, the horizontal axis represents the magnetic flux density Bin applied to the detection axis of the semiconductor device 1A, and the vertical axis represents the voltage VSIG which is the differential input voltage of the comparator 60 and the voltage VOUT which is the output voltage of the comparator 60. First, the operation in the case of no adjustment (no adjustment performed) (FIG. 6) will be described. When the Hall element 30 has ideal magnetoelectric conversion characteristics, when an N-pole magnetic field is detected, the switch circuit 80 is in a first state (straight connection state), so that it has magnetoelectric conversion characteristics along a straight line Lsi, and when an S-pole magnetic field is detected, the switch circuit 80 is in a second state (cross connection state), so that it has magnetoelectric conversion characteristics along a straight line Lci.
[0049] On the other hand, when the Hall element 30 has a negative magnetic offset BOS, when an N-pole magnetic field is detected, the switch circuit 80 is in the first state (straight connection state), and therefore has magneto-electric conversion characteristics along a straight line Ls obtained by negatively translating the straight line Lsi in parallel with the BOS, and when an S-pole magnetic field is detected, the switch circuit 80 is in the second state (cross connection state), and therefore has magneto-electric conversion characteristics along a straight line Lc obtained by negatively translating the straight line Lci in parallel with the BOS.
[0050] When the Hall element 30 has ideal magnetoelectric conversion characteristics, a strong S-pole magnetic field is detected at the intersection of the straight line Lsi and the reference value VREF of the reference voltage, and a strong N-pole magnetic field is detected at the intersection of the straight line Lci and the reference value VREF. The magnetic flux densities BOPid and BRPid corresponding to each intersection indicate the ideal operating point and return point. On the other hand, when the Hall element 30 has a negative magnetic offset BOSDP, each intersection also moves negatively by the amount of BOSDP in parallel, just like the straight lines Ls and Lc, so the magnetic flux densities BOP and BRP corresponding to each intersection become the operating point and return point. The relationship between BOPid, BRPid, BOP, BRP, and BOSDP is expressed by the following formulas (1) and (2). BOP=BOPid-|BOSDP| (1) BRP=BRPid-|BOSDP| (2)
[0051] Next, the operation during adjustment (FIG. 7) will be described. The difference from FIG. 6 is that comparator 60 To The supplied reference voltage (hereinafter referred to as "comparator reference voltage") can be switched to a comparator reference voltage VREF+ΔV obtained by adding a reference voltage adjustment value ΔV (ΔV>0) in the positive direction to a reference value VREF, or to a comparator reference voltage VREF-ΔV obtained by adding ΔV in the negative direction to the reference value VREF. The reference voltage VREF is the same as in Fig. 6, and the comparator reference voltages VREF+ΔV and VREF-ΔV are voltages obtained by shifting the reference voltage VREF in parallel in both the positive and negative directions by the adjustment value ΔV. The straight lines Ls, Lsi, Lc, and Lci that represent the magnetoelectric conversion characteristics are the same as in Fig. 6, so their explanation will be omitted.
[0052] 7, when the Hall element 30 has ideal magnetoelectric conversion characteristics, an S-pole magnetic field is detected at the intersection of the straight line Ls and the comparator reference voltage VREF+ΔV, and an N-pole magnetic field is detected at the intersection of the straight line Lc and the comparator reference voltage VREF-ΔV. Therefore, if ΔV is set to an appropriate value, the operating point BOP represented by the intersection of the straight line Ls and the comparator reference voltage VREF+ΔV coincides with the ideal operating point BOPid, and the return point BRP represented by the intersection of the straight line Lc and the comparator reference voltage VREF-ΔV can be made to coincide with the ideal return point BRPid.
[0053] 8 and 9 are explanatory diagrams illustrating the magnetoelectric conversion characteristics of the semiconductor device 1A when the magnetic offset of the Hall element 30 is positive. Fig. 8 shows the magnetoelectric conversion characteristics without adjustment, and Fig. 9 shows the magnetoelectric conversion characteristics when optimally adjusted in this embodiment.
[0054] 8 and 9, the horizontal and vertical axes are the same as those in FIG. 6, and therefore the explanation thereof will be omitted. First, the operation in the case of no adjustment (no adjustment performed) (FIG. 8) will be explained. If the Hall element 30 has ideal magnetoelectric conversion characteristics, when an N-pole magnetic field is detected, the switch circuit 80 is in the first state (straight connection state), and therefore has magnetoelectric conversion characteristics along the straight line Lsi, and when an S-pole magnetic field is detected, the switch circuit 80 is in the second state (cross connection state), and therefore has magnetoelectric conversion characteristics along the straight line Lci.
[0055] On the other hand, when the Hall element 30 has a positive magnetic offset BOSDP, the switch circuit 80 is in the first state (straight connection state) when an N-pole magnetic field is detected, so that the switch circuit 80 has magnetoelectric conversion characteristics along the straight line Ls obtained by moving the straight line Lsi in the positive direction parallel to the BOSDP. When an S-pole magnetic field is detected, the switch circuit 80 is in the second state (cross connection state), so that the switch circuit 80 has magnetoelectric conversion characteristics along the straight line Lci obtained by moving the straight line Lsi in the positive direction parallel to the BOSDP. Positive The magnetoelectric conversion characteristic is along a straight line Lc, which is a parallel translation of the BOSDP.
[0056] A description of the case where the Hall element 30 has ideal magnetoelectric conversion characteristics will be omitted since it overlaps with Fig. 6. When the Hall element 30 has a positive magnetic offset BOSDP, each intersection point also moves in parallel by the positive amount of BOSDP, just like the straight lines Ls and Lc, so the magnetic flux densities BOP and BRP corresponding to each intersection point become the operating point and return point. The relationship between BOPid, BRPid, BOP, BRP, and BOSDP is expressed by the following equations (3) and (4). BOP=BOPid+BOSDP (3) BRP=BRPid+BOSDP (4)
[0057] Next, the operation during adjustment (FIG. 9) will be described. The difference from FIG. 8 is that the reference voltage of the comparator 60 can be switched between VREF+ΔV and VREF-ΔV. The lines Ls, Lsi, Lc, and Lci are the same as those in FIG. 8, so their description will be omitted. In FIG. 9, when the Hall element 30 has ideal magnetoelectric conversion characteristics, a strong S-pole magnetic field is detected at the intersection of the line Ls and the comparator reference voltage VREF-ΔV, and a strong N-pole magnetic field is detected at the intersection of the line Lc and the comparator reference voltage VREF+ΔV. Therefore, if the adjustment value ΔV is set to an appropriate value, the operating point represented by the intersection of the line Ls and the comparator reference voltage VREF-ΔV coincides with the magnetic flux density BOPid, which is the ideal operating point, and the return point represented by the intersection of the line Lc and the comparator reference voltage VREF+ΔV can be made to coincide with the magnetic flux density BRPid, which is the ideal return point.
[0058] Next, the principle of the magnetic offset adjustment of this embodiment will be described with reference to the drawings. Fig. 10 shows an example of a reference current IDAC, a reference voltage VREF, and a magnetic offset adjustment amount ΔBOS for a 4-bit (3 positive and 3 negative) binary adjustment code BinCode, i.e., a binary adjustment code BinCode with an adjustment bit number N (design constant) = 4, which will be described later.
[0059] The binary adjustment code BinCode has a total of 16 values from 0000b to 1111b, with the MSB corresponding to the sign of the adjustment amount and the lower bits corresponding to the absolute value of the adjustment amount. The reference current IDAC is configured so that when D[3:0]=0111b, IDAC=-7ΔI, and when D[3:0]=1111b, IDAC=+7ΔI. Similarly, the reference voltage VREF is configured so that when D[3:0]=0111b, VREF=VREF-7ΔV, and when D[3:0]=1111b, VREF=VREF+7ΔV.
[0060] As a result, the magnetic offset adjustment amount ΔBOS is ΔBOS=-7ΔB when D[3:0]=0111b, and ΔBOS=+7ΔB when D[3:0]=1111b. The magnetic offset adjustment resolution ΔB is expressed by the following equation (5) using the adjustment resolution ΔI (design constant) of the reference current IDAC, the resistance value RREF (design constant) of the first resistor 704, the magneto-electric conversion coefficient KH of the Hall element, and the gain G of the amplifier 50. ΔB=ΔV / (KH×G)=(RREF×ΔI) / (KH×G) (5)
[0061] Moreover, the adjustment range Brng of the magnetic offset is expressed by the following formula (6) using the magnetic offset adjustment resolution ΔB and the number of adjustment bits N (design constant). Brng=ΔB×2^(N-1) (6) Here, 2^(N-1) represents 2 to the (N-1)th power.
[0062] In this way, the magnetic offset adjustment resolution ΔB and adjustment range Brng can be controlled by the design constants, taking into consideration the range of variation in the magnetic offset of the Hall element 30 and the accuracy required of the magnetic switch.
[0063] According to this embodiment, the influence of the magnetic offset BOSDP of the Hall element 30 on the operating point and the return point can be corrected by switching the reference voltage VREF used for determining the magnetic flux density BOP as the operating point and the magnetic flux density BRP as the return point using the control signal 702 according to the output level of the comparator 60. That is, according to this embodiment, it is possible to obtain magnetoelectric conversion switching characteristics capable of suppressing the influence of the magnetic offset BOSDP of the Hall element 30.
[0064] According to this embodiment, the operating point and the return point can be optimized by a prior adjustment. For example, when the magnetic offset BOS can be measured in an inspection process, the binary signal D[3:0] may be set so that the current values of the current sources 42 and 43 are adjusted to optimal current values so that the adjusted BOS approaches zero according to the initial value of the measured BOS. Also, when the magnetic offset BOS has a systematic bias, the binary signal D[3:0] may be set so that the current values of the current sources 42 and 43 are adjusted to optimal current values so that the adjusted magnetic offset BOS approaches zero.
[0065] In the above-described first embodiment, the current sources 42 and 43 are configured to be adjustable by 3 bits each for positive and negative, but may be configured with any number of adjustment bits N. In this case, it is possible to obtain an adjustment range and adjustment resolution of the magnetic offset BOS according to the number of adjustment bits N.
[0066] [Second embodiment] Next, the second embodiment will be described with reference to the drawings, focusing on the differences from the first embodiment. The semiconductor device 1B according to the second embodiment is different from the semiconductor device 1A illustrated in Fig. 1 in that it includes a reference voltage circuit 70B instead of the reference voltage circuit 70A, but is otherwise similar. That is, if the reference symbols 1A and 70A in Fig. 1 are replaced with 1B and 70B, respectively, it becomes a schematic diagram showing the configuration of the semiconductor device 1B. Therefore, in this embodiment, the reference voltage circuit 70B will be mainly described, and descriptions that overlap with the semiconductor device 1A will be omitted.
[0067] FIG. 11 is a circuit diagram showing a configuration of a reference voltage circuit 70B in the semiconductor device 1B. The reference voltage circuit 70B includes a memory circuit 93B, a decoder 94B, a second resistor 705 including first to seventh resistor segments 705A to 705G, a current source 44, and first to sixth short-circuit switches SS1 to SS6.
[0068] The second resistor 705 is configured by connecting first to seventh resistor segments 705A to 705G in series, one end of which is connected to the reference common-mode voltage terminal 70b, and the other end of which is connected to the reference voltage 701.
[0069] The first short-circuit switch SS1 is connected to both ends of the second resistor segment 705B, the second short-circuit switch SS2 is connected to both ends of the third resistor segment 705C, the third short-circuit switch SS3 is connected to both ends of the fourth resistor segment 705D, the fourth short-circuit switch SS4 is connected to both ends of the fifth resistor segment 705E, the fifth short-circuit switch SS5 is connected to both ends of the sixth resistor segment 705F, and the sixth short-circuit switch SS6 is connected to both ends of the seventh resistor segment 705G. The resistance values of the first to sixth short-circuit switches SS1 to SS6 in the closed state (conducting state) are relatively sufficiently small compared to the resistance values of the first to seventh resistor segments 705A to 705G, and are switched and controlled so that each of the first to seventh resistor segments 705A to 705G connected in parallel is enabled or disabled depending on the open / close state.
[0070] The first resistor segment 705A is a reference resistor for defining the resistance value of the second resistor 705 when the first to sixth short-circuit switches SS1 to SS6 are all in a short-circuit state, and the resistance value is set to be, for example, R-7ΔR. The second to seventh resistor segments 705B to 705G are weighted resistors. For example, the second to third resistor segments 705B to 705C are configured to be 4ΔR, the fourth to fifth resistor segments 705D to 705E are configured to be 2ΔR, and the sixth to seventh resistor segments 705F to 705G are configured to be ΔR. In that case, when the first to sixth short-circuit switches SS1 to SS6 are all in an open state (disconnected state), the resistance value of the second resistor 705 is R+7ΔR. In this way, depending on the states of the first to sixth short-circuit switches SS1 to SS6, the resistance value of the second resistor 705 can be arbitrarily set by the control signals 941B to 946B to a resistance value in increments of ΔR between a minimum value R-7ΔR and a maximum value R+7ΔR.
[0071] The current source 44 has a first terminal 441 connected to the reference voltage 701 and a second terminal 442 connected to the first power supply terminal. The current source 44 is connected to the reference voltage circuit 70A. As well as , it does not need to be switched and the current value IREF of the output current may be a fixed value.
[0072] The memory circuit 93B outputs 4-bit signals D20 to D23 constituting the binary adjustment code BinCode in the same manner as the memory circuit 93A, and inputs them to the decoder 94B.
[0073] The decoder 94B outputs control signals to signal lines 941B to 946B for controlling the open / closed states of the first to sixth short-circuit switches SS1 to SS6 in response to the control signal 702 and the 4-bit signals D20 to D23. 20 is the LSB (least significant bit) of the binary adjustment code BinCode, and the signal D 23 respectively represent the MSB (most significant bit) of the binary adjusted code BinCode.
[0074] Next, the operation of the reference voltage circuit 70B will be described. A current value IREF of a reference current injected into a second resistor 705 having a resistance value R±ΔnR (n is an integer from 0 to 7) generates a reference voltage VREF expressed by the following equation (7). VREF=VCM+(R±nΔR)×IREF (7) The adjustment sign is 、 D 2 [3:0] = 0000b and D 2 [3:0]=1000b, n=0, D2 [3:0]=0001b, n=-1, D2 [3:0]=0111b, n=-7, D2 [3:0]=1001b, n=+1, D2 When [3:0]=1111b, n=+7. According to the above example, it is possible to generate VREF±nΔV that changes stepwise according to the adjustment code.
[0075] Fig. 12 is a circuit diagram showing an example of a detailed configuration of the decoder 94B. Fig. 13 is a truth table showing the operation of the decoder 94B.
[0076] An example of the configuration of the decoder 94B will be described with reference to FIG. 12. The decoder 94B includes various logic gates IV3 , IV4 , AN11~AN19, OR3 , OR 4. NR1 , N.R. 2, ND1, a control signal 702 and a binary signal D 23 ~D 20 13, the control signal 702 is decoded and output as binary control signals 941B-946B. More specifically, the control signals 941B-946B for the open / close state of the first to sixth short-circuit switches SS1-SS6 are output according to a truth table as shown in FIG. 13. As shown in the truth table of FIG. 13, the binary signal D2 The allocation of the binary control signals 941B to 946B to [3:0] is switched, and the binary signal D2 The sign of the deviation (±nΔR) from the center value R of the RDAC for [3:0] is inverted.
[0077] Next, the magnetic offset adjustment of this embodiment will be described. FIG. 14 is a schematic diagram showing an example of the resistance value RDAC of the second resistor 705, the reference voltage VREF, and the magnetic offset adjustment amount ΔBOS relative to the binary adjustment code BinCode.
[0078] Adjustment sign D2 [3:0] is 0000b to 1111b, total of 16 possible values. MSB(D 23 ) is the polarity sign of the adjustment, and the lower bit (D 22 ~D 20 ) corresponds to the absolute value of the adjustment amount. The resistance value RDAC is D2 [3:0]=0111b, RDAC=R-7ΔR, D 2 When [3:0]=1111b, RDAC is configured to be R+7ΔR. The reference voltage VREF and the magnetic offset adjustment amount ΔBOS are the same as in FIG.
[0079] The ΔBOS characteristic of the semiconductor device 1B configured in this manner with respect to the binary adjustment code BinCode shown in Fig. 14 is the same as that of Fig. 10, and therefore the BOS can be adjusted in the same manner as in the semiconductor device 1A. In other words, by obtaining the same function as the semiconductor device 1A, the same effect as the semiconductor device 1A can be obtained.
[0080] Thus, according to this embodiment, by switching the resistance value of the second resistor 705 used to generate the comparator reference voltage VREF±ΔV, it is possible to obtain symmetrical magnetoelectric conversion switching characteristics between the S pole and the N pole, thereby achieving the same effect as in the first embodiment.
[0081] In the second embodiment described above, the second resistor 705 is configured to be adjustable by 3 bits each for positive and negative, but may be configured with any number of adjustment bits N. In this case, it is possible to obtain a BOS adjustment range and a BOS adjustment resolution according to the number of adjustment bits N.
[0082] As described above, the configuration and operation of the semiconductor device according to the embodiment of the present invention have been described with reference to the drawings.
[0083] The magnetic switches provided in the above-mentioned semiconductor devices 1A and 1B are so-called alternating-polarity detection magnetic switches, but may be configured as omnipolar detection or unipolar detection magnetic switches. When the semiconductor devices 1A and 1B are configured as omnipolar detection magnetic switches, an appropriate logic circuit may be added to the rear stage of the comparator 60 so that the state transition is appropriately controlled.
[0084] When the semiconductor devices 1A and 1B are formed as a bipolar detection type magnetic switch, the variation in the detection distance of the magnetic material detection mechanism in which the semiconductor device is incorporated can be reduced even if the polarity of the combined magnet is not controlled. Also, when the semiconductor devices 1A and 1B are formed as a unipolar detection type magnetic switch, the accuracy of the magnetic sensitivity of the target polarity can be improved, thereby reducing the variation in the detection distance of the magnetic material detection mechanism in which the semiconductor device is incorporated.
[0085] The semiconductor devices 1A and 1B may further include a switch circuit network for switching between the electrodes 30a to 30d that serve as an input terminal for supplying the drive current IDRV to the Hall element 30 and an output terminal for outputting the differential output voltage VH from the Hall element 30.
[0086] In the above-described embodiment, the Hall element 30 has electrodes 30a to 30d formed at the four corners of a square diffusion region, and is configured as a so-called horizontal Hall element that detects a magnetic field perpendicular to the surface of the semiconductor substrate 2 (see, for example, FIG. 1), but is not limited thereto. For example, the Hall element 30 may be configured as a five-terminal vertical Hall element that detects a magnetic field parallel to the surface of the semiconductor substrate 2. The five-terminal vertical Hall element is equivalently treated as a four-terminal element by shorting the electrodes at both ends.
[0087] In the above-described embodiment, the decoders 94A and 94B are respectively shown in FIG. Figure 12The present invention is not limited to the circuit configuration using the logic gate elements exemplified in the above. As long as an equivalent logical operation result is obtained when the above-mentioned input signals are input, the logic gate elements and the circuit configuration used are not limited.
[0088] In the above embodiment, the switch circuit is described as an example of a means for switching the current value of the current sources 42 and 43 and the resistance value of the second resistor 705, but the means for switching the current value and the resistance value is not limited to this. SC1 to SC6 and SS1 to SS6 may be, for example, a mechanical switch using MEMS, an electronic switch such as a transistor, or a combination of these.
[0089] In addition, the memory circuits 93A and 93B in the above-mentioned embodiment may be of any type as long as they are configured to be capable of outputting a binary signal with a required number of bits. The memory circuits 93A and 93B may be, for example, rewritable non-volatile memories such as EEPROMs, or non-volatile memories that can be written to only once such as fuse ROMs. Furthermore, if they are configured to set bits based on the self-diagnosis results when the power is turned on, they may be volatile memories such as SRAMs.
[0090] In the above embodiment, the Hall element 30 is a single Hall element, but from the viewpoint of suppressing the absolute value and variation of the magnetic offset BOSDP, a configuration in which multiple Hall element cells are connected in parallel may be adopted. Since the deviation from the design value of the operating point and the return point when no adjustment is performed can be suppressed, the adjustment range and adjustment resolution required for the adjustment circuit can be reduced, and the circuit scale can be reduced.
[0091] In the above-described embodiment, a configuration example of the differential input / single phase output type amplifier 50 and the single phase input type comparator 60 has been described. However, the amplifier 50 and the comparator 60 are not limited to this example, and the differential input / output type amplifier 50 and the differential input type comparator 60 may be applied to the semiconductor devices 1A and 1B. In this case, it is possible to provide the semiconductor devices 1A to 1B having magnetic switches that are relatively robust against common-mode noise superimposed from a power supply or the like.
[0092] In the above embodiment, the magnetic offset adjustment amount ΔBOS is D[3:0] or D2[3:0] =0000b and D[3:0] or D2[3:0] In the above example, the magnetic offset adjustment amount ΔBOS is set to 0 when ΔBOS=1000b, i.e., the magnetic offset adjustment amount is set to 0 (zero), and the magnetic offset adjustment amount ΔBOS is set to have seven stages of adjustment range in the positive and negative directions. However, the present invention is not limited to this example. For example, the magnetic offset adjustment amount ΔBOS may be set to have eight stages of adjustment range in the positive and negative directions, excluding the case where the magnetic offset adjustment amount ΔBOS is 0. In this embodiment, the magnetic offset adjustment amount is 0, which corresponds to the absence of magnetic offset adjustment, so that the semiconductor devices 1A and 1B can be considered as semiconductor devices equipped with a magnetic switch capable of switching between the presence and absence of magnetic offset adjustment.
[0093] 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]
[0094] 1A, 1B Semiconductor device 2. Semiconductor Substrate 5 First power terminal 6 Second power terminal 30 Hall element 30a~30d electrodes 41~44 Current source 50 Amplifier 501 Amplifier Output Signal 60 Comparator 601 Comparator output signal 70A, 70B Reference voltage circuit 70b Reference common mode voltage terminal 704 First Resistor 705 Second Resistor 80 Switch Circuit 801 Chopper output signal 100 Latch circuit 705A to 705G First to seventh resistor segments SC1 to SC6: First to sixth current switches SS1 to SS6: 1st to 6th short-circuit switches T1 to T3: first to third transistors T42A~T42C Current source transistors T43A~T43C Current source transistors T44 Current source transistor 93A , 93B Memory circuits 94A , 94B Decoder
Claims
1. A semiconductor device including a magnetic switch provided on a semiconductor substrate, The magnetic switch includes a Hall element having at least four electrodes; a drive current source for driving the Hall element; a switch circuit having an input terminal pair to which a differential output voltage is supplied from two of the four electrodes, an output terminal pair, and a control terminal, and capable of switching a connection state between the input terminal pair and the output terminal pair between a first state and a second state based on a control signal supplied to the control terminal; an amplifier that amplifies a signal supplied from an output terminal pair of the switch circuit; a reference voltage circuit capable of adjusting an output reference voltage based on an input reference common-mode voltage and the control signal; a comparator to which a differential input voltage between the output signal of the amplifier and the reference voltage is input; a latch circuit that latches the output voltage of the comparator and uses a latch output signal as the control signal; the reference voltage circuit is configured to, when a magnetic offset of the Hall element is negative, adjust the reference voltage by adding an adjustment value of the reference voltage based on the control signal in a positive direction to a reference value of the reference voltage, which is a voltage based on the reference in-mode voltage, in the first state, and to adjust the reference voltage by adding the adjustment value in a negative direction to the reference value in the second state; and, when a magnetic offset of the Hall element is positive, adjust the reference voltage by adding the adjustment value in the negative direction to the reference value of the reference voltage in the first state, and to adjust the reference voltage by adding the adjustment value in a positive direction to the reference value in the second state; the reference value is the differential input voltage at a magnetic flux density that is an operating point or return point of an ideal Hall element where a magnetic offset is zero, The semiconductor device, wherein the adjustment value is a difference between the differential input voltage of the ideal Hall element and the differential input voltage of the Hall element included in the magnetic switch at the magnetic flux density.
2. the reference voltage circuit has a control terminal, a memory circuit, a decoder, a first variable current source, a second variable current source, a resistor, a reference common mode voltage terminal, and an output terminal; One end of the resistor is connected to the reference common mode voltage terminal; The other end of the resistor is connected to the output terminal. the output ends of the first variable current source and the second variable current source are connected to the output terminal; the memory circuit outputs an N-bit adjustment code signal, the adjustment code signal having a natural number N as the number of adjustment bits; the decoder outputs a current control signal in response to the adjustment code signal and a control signal input to a control terminal of the reference voltage circuit; the first variable current source is controlled based on the current control signal such that an output current value is zero when the control signal is a first logic, and an output current value is controlled to a current value based on the adjustment code signal when the control signal is a second logic; 2. The semiconductor device according to claim 1, wherein the second variable current source is controlled based on the current control signal such that an output current value is a current value based on the adjustment code signal when the control signal is a first logic, and an output current value is controlled to zero when the control signal is a second logic.
3. the reference voltage circuit includes a control terminal, a memory circuit, a decoder, a current source, a resistor, a common-mode voltage terminal, and an output terminal; One end of the resistor is connected to the common mode voltage terminal; The other end of the resistor is connected to the output terminal. an output end of the current source is connected to the output terminal; the memory circuit outputs an N-bit adjustment code signal, the adjustment code signal having a natural number N as the number of adjustment bits; the decoder outputs a resistance control signal in response to the adjustment code signal and a control signal input to a control terminal of the reference voltage circuit; 2. The semiconductor device according to claim 1, wherein the resistor is a variable resistor whose resistance value is controlled to a reference resistance value when the control signal is a first logic, and whose resistance value is controlled to a resistance value different from the reference resistance value when the control signal is a second logic, based on the resistance control signal.
4. The semiconductor device according to claim 1 , wherein the reference voltage circuit is configured to be able to adjust the adjustment value in a plurality of stages.
5. The semiconductor device according to claim 4 , wherein the plurality of stages includes a stage in which the adjustment value is zero.
6. 6. The semiconductor device according to claim 1, wherein the Hall element is a horizontal Hall element that detects a magnetic field perpendicular to a surface of the semiconductor substrate, or a vertical Hall element that detects a magnetic field parallel to the surface of the semiconductor substrate.
Citation Information
Patent Citations
Resistance correction circuit
JP2004096759A
Magnetic sensor circuit and electronic device with the use thereof
JP2009002851A
Magnetic switch and magnetic field detection method
JP2010056260A
Magnetic sensor
JP2012181128A
Comparison circuit
JP2015095727A
