Semiconductor devices
By introducing a combination of Hall element, drive current source, switching circuit, amplifier, reference voltage circuit and latching circuit into the semiconductor device, the problem of asymmetry in the magnetoelectric conversion characteristics of the magnetic switch is solved, and the detection accuracy and stability of the magnetic switch are improved.
Patent Information
- Application Number
- CN202210237539.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-23
- Filing Date
- 2022-03-10
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-03-10
AI Technical Summary
In the prior art, magnetic switches using bidirectional driven rotating current method have the problem of asymmetrical magnetoelectric conversion characteristics. In particular, the absolute value of the offset voltage of the Hall element is different in different current driving directions, which leads to the asymmetrical magnetoelectric conversion characteristics of the magnetic switch.
The design employs a semiconductor device, including a Hall element, a drive current source, a switching circuit, an amplifier, a reference voltage circuit, a comparator, and a latch circuit. By adjusting the reference voltage and control signal, the symmetry of the magnetoelectric conversion characteristics is improved.
This improves the symmetry of the magnetoelectric conversion characteristics, reduces the duty cycle or phase deviation of the output pulse signal, and enhances the detection accuracy and stability of the magnetic switch.
Smart Images

Figure CN115113112B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a semiconductor device. Background Technology
[0002] Hall elements can be used as magnetic sensors to detect position or angle non-contactly, and are therefore used in a variety of applications. One example of a Hall element application is a magnetic switch. A magnetic switch, for example, integrates a Hall element and peripheral circuitry including an amplifier or comparator onto a semiconductor chip. As a classification of magnetic detection methods, known magnetic switches include bipolar magnetic field detection types that can detect magnetic fields at both the S and N poles, and alternating magnetic field detection types that can detect alternating magnetic fields where the S and N poles change over time.
[0003] In alternating detection type magnetic switches or bipolar detection type magnetic switches, the symmetry between the S-side threshold and the N-side threshold is important. On the other hand, asymmetry can occur due to the offset voltage of the Hall element itself and the amplifier and comparator located after the Hall element.
[0004] For magnetic switches, a hysteresis amplitude is sometimes set to prevent output signal chattering caused by internal and external interference noise when zero magnetic field is applied. The hysteresis amplitude is defined as the difference between the operating point (S-side threshold) and the recovery point (N-side threshold). Magnetic offset is defined as the average of the operating and recovery points. Magnetic offset is used as a measure of the symmetry of sensitivity between the magnetic poles and is ideally zero.
[0005] When the absolute values of the operating point and the recovery point deviate, the deviation in the duty cycle or phase of the output pulse signal will be amplified in applications using alternating magnetic field detection. This deviation in the duty cycle or phase of the output pulse signal becomes a cause of speed fluctuations and vibrations in brushless (BL) direct current (DC) motors, whose primary application is alternating detection type magnetic switches, and is therefore undesirable.
[0006] In two-pole detection magnetic switches, if the polarity of the magnets used in combination is not managed, a deviation in the detection distance of the detection mechanism may occur, potentially resulting in an offset voltage. One known method for removing this offset voltage is the spinning current method. A technique is proposed that uses the spinning current method to remove the offset voltage between the Hall element and the subsequent amplifier, and further removes the asymmetry caused by the comparator's offset voltage (see, for example, Japanese Patent Application Publication Nos. 2009-2851 and 2015-95727).
[0007] [Existing Technical Documents]
[0008] [Patent Literature]
[0009] [Patent Document 1] Japanese Patent Application Publication No. 2009-2851
[0010] [Patent Document 2] Japanese Patent Application Publication No. 2015-95727 Summary of the Invention
[0011] [The problem the invention aims to solve]
[0012] However, in techniques using bidirectional rotating current driving, such as those described in Japanese Patent Application Publication Nos. 2009-2851 and 2015-95727, it is sometimes impossible to ensure the symmetry of the magnetoelectric conversion characteristics in the magnetic switch. More specifically, in techniques using bidirectional rotating current driving, if the absolute value of the Hall element's offset voltage differs between the current driving directions, an offset voltage will remain. That is, this may cause the magnetoelectric conversion characteristics of the magnetic switch to become asymmetrical.
[0013] In view of the above circumstances, the present invention aims to provide a semiconductor device capable of improving the symmetry of magnetoelectric conversion characteristics.
[0014] [Technical means to solve the problem]
[0015] The semiconductor device of the present invention includes a magnetic switch disposed on a semiconductor substrate, wherein the magnetic switch includes: 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; a switching circuit having an input terminal pair, an output terminal pair, and a control terminal for supplying differential output voltages from two of the four electrodes, and capable of switching the wiring states of the input terminal pair and the output terminal pair to 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 switching circuit; a reference voltage circuit for generating a reference voltage based on an input reference in-phase voltage and a control signal; a comparator for receiving the output signal of the amplifier and the reference voltage; and a latching circuit for latching the output voltage of the comparator, wherein the latching circuit switches the reference voltage of the reference voltage circuit to one of a voltage with an adjustment value higher than a reference value and a voltage with an adjustment value lower than the reference value, according to the output signal of the comparator.
[0016] [The effects of the invention]
[0017] According to the present invention, a semiconductor device that can improve the symmetry of magnetoelectric conversion characteristics can be provided. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the semiconductor device according to the first embodiment.
[0019] Figure 2 This is a schematic diagram illustrating an example of a reference voltage circuit in a semiconductor device according to the first embodiment.
[0020] Figure 3 This is a circuit diagram showing a more detailed structural example of the current source circuit in the reference voltage circuit.
[0021] Figure 4 This is a circuit diagram illustrating an example of the structure of the decoder in this embodiment.
[0022] Figure 5 This is a truth table representing the operation of the decoder in this embodiment.
[0023] Figure 6 This indicates that in the semiconductor device of this embodiment, the magnetic deflection of the Hall element is negative (B). OS A diagram illustrating the magnetoelectric conversion characteristics when <0) and without adjustment.
[0024] Figure 7 This indicates that in the semiconductor device of this embodiment, the magnetic deflection of the Hall element is negative (B). OS <0) and an explanatory diagram of the magnetoelectric conversion characteristics when adjustment is implemented.
[0025] Figure 8 This indicates that in the semiconductor device of this embodiment, the magnetic deflection of the Hall element is positive (B). OS A diagram illustrating the magnetoelectric conversion characteristics when >0 and without adjustment.
[0026] Figure 9 This indicates that in the semiconductor device of this embodiment, the magnetic deflection of the Hall element is positive (B). OS >0) and an explanatory diagram of the magnetoelectric conversion characteristics when adjustment was implemented.
[0027] Figure 10 This is a schematic diagram illustrating the relationship between the control signal of the semiconductor device according to the first embodiment and the adjustment current, the comparator reference voltage, and the magnetic offset.
[0028] Figure 11 This is a circuit diagram illustrating an example of a reference voltage circuit in a semiconductor device according to the second embodiment.
[0029] Figure 12 This is a circuit diagram showing the structure of the decoder in the semiconductor device of the second embodiment.
[0030] Figure 13This is a truth table representing the operation of the decoder in the semiconductor device of the second embodiment.
[0031] Figure 14 This is a schematic diagram illustrating the relationship between the control signal of the semiconductor device in the second embodiment and the adjustment current, comparator reference voltage, and magnetic offset.
[0032] [Explanation of Symbols]
[0033] 1A, 1B: Semiconductor devices
[0034] 2: Semiconductor substrate
[0035] 5: First power terminal
[0036] 6: Second power terminal
[0037] 30: Hall element
[0038] 30a~30d: Electrodes
[0039] 41-44: Current Source
[0040] 50: Amplifier
[0041] 501: Amplifier output signal
[0042] 60: Comparator
[0043] 601: Comparator output signal
[0044] 70A, 70B: Reference voltage circuit
[0045] 70b: Reference in-phase voltage terminal
[0046] 704: First Resistor
[0047] 705: Second Resistor
[0048] 80: Switching circuit
[0049] 100: Latch circuit
[0050] 705A~705G: First to seventh resistance sections
[0051] SC1~SC6: First to sixth current switches
[0052] SS1~SS6: First short-circuit switch to sixth short-circuit switch
[0053] T1~T3: First transistor to third transistor
[0054] T42A~T42C: Current source transistors
[0055] T43A~T43C: Current source transistors
[0056] T44: Current source transistor
[0057] 93A, 93B: Memory circuits
[0058] 94A, 94B: Decoders Detailed Implementation
[0059] Hereinafter, a semiconductor device according to an embodiment of the present invention will be described with reference to the accompanying drawings. The semiconductor device of the embodiment includes a magnetic switch disposed on a semiconductor substrate. In addition, during the description, the conversion characteristic from magnetic flux density acting on the semiconductor substrate to an analog signal will be referred to as "magnetoelectric conversion characteristic", and the conversion characteristic from said magnetic flux density to a logic signal will be referred to as "magnetoelectric conversion switching characteristic".
[0060] [First Implementation Method]
[0061] Figure 1 This is a schematic diagram showing the structure of the semiconductor device 1A according to the first embodiment.
[0062] Semiconductor device 1A includes a magnetic switch 10A disposed on semiconductor substrate 2. Magnetic switch 10A includes a first power supply terminal 5, a second power supply terminal 6, a Hall element 30, a switching circuit 80, a current source 41, an amplifier 50, a comparator 60, a reference voltage circuit 70A, and a latching circuit 100.
[0063] The Hall element 30 has four electrodes 30a to 30d, which can obtain a drive current I. DRV and magnetic flux density B perpendicular to semiconductor substrate 2 in The corresponding differential output voltage V H The magnetic detection element. Electrodes 30a to 30d are disposed on a resistive body formed by an impurity diffusion layer or a well layer of the semiconductor substrate 2, for example, disposed at the vertices of a square, i.e., at diagonal positions.
[0064] The current source 41, serving as a driving current source, has a first terminal 411 connected to electrode 30a and a second terminal 412 connected to a first power supply terminal 5 supplying voltage VDD. The current source 41 is configured to supply a driving current I as a predetermined current. DRV This is to enable the Hall element 30 to achieve the desired magnetoelectric conversion effect.
[0065] The switching circuit 80 is a so-called chopper switching circuit, having: an input terminal pair including input terminals 80a and 80b; an output terminal pair including output terminals 80c and 80d; and a control terminal 80e. The switching circuit 80 is configured to switch the connection state of the input terminal pair and the output terminal pair to a first state (direct wiring state) and a second state (cross-wiring state) based on the logic level input to the control terminal 80e. Here, the first state (direct wiring state) is the differential output voltage V input from input terminals 80a and 80b. H The connection states are respectively transmitted to output terminals 80c and 80d. The second state (cross-connection state) is the differential output voltage V input from input terminals 80a and 80b. H The connection status is transmitted to output terminal 80d and output terminal 80c respectively.
[0066] Amplifier 50 includes a differential amplifier circuit having: a non-inverting input terminal 50a and an inverting input terminal 50b as two input terminals; a reference terminal 50c on which an output reference in-phase voltage is input; and an output terminal 50OT that amplifies and outputs the difference between two signals input from the non-inverting input terminal 50a and the inverting input terminal 50b.
[0067] The reference voltage circuit 70A has a control terminal 70c, a reference in-phase voltage terminal 70b, and an output terminal 70OT, and is configured to output a reference in-phase voltage V input to the reference in-phase voltage terminal 70b. CM As a reference, a reference voltage 701 is output from the output terminal 70OT based on the logic signal input to the control terminal 70c.
[0068] Comparator 60 has: a non-inverting input terminal 60a for inputting the amplifier output signal 501; an inverting input terminal 60b for inputting a reference voltage 701; and an output terminal 60OT. Comparator 60 is configured to compare the magnitude of the amplifier output signal 501 with the reference voltage 701, and output a binary logic signal corresponding to the comparison result as the comparator output signal 601.
[0069] The latch circuit 100 has: a signal input terminal for inputting a comparator output signal 601; a clock input terminal for inputting a latch clock signal 706; and an output terminal for outputting a control signal 702 as a latch output signal. The latch circuit 100 is configured to perform a so-called data latching operation. The output terminal of the latch circuit 100 is connected to the output terminal OUT of the magnetic switch 10A.
[0070] Figure 2This is a schematic diagram of the reference voltage circuit 70A. The diagram is used to illustrate the structure of the reference voltage circuit 70A.
[0071] The reference voltage circuit 70A includes a first resistor 704, current sources 42, 43, and 44, an output terminal 70OT for the output reference voltage 701, a control terminal 70c, and a reference in-phase voltage terminal 70b. Current sources 42 (specifically, the first terminal 421 described later), 43 (specifically, the second terminal 432 described later), 44 (specifically, the first terminal 441 described later), and the first resistor 704 (specifically, the other terminal described later) are connected to the output terminal 70OT at node N1.
[0072] The first resistor 704 includes one or more resistive elements having a specified resistance value, one end of which is connected to the reference in-phase voltage terminal 70b and the other end of which is connected to the output terminal 70OT.
[0073] Current sources 42 and 43 are variable current sources as described below, i.e., they are set to two continuously variable values and can be switched to either of the two set values based on a control signal given to the control terminal. In addition to a first terminal 421 connected to the other end of the first resistor 704 and the output terminal 70OT, and a second terminal 422 connected to the first power supply terminal 5, current source 42 also has a control terminal connected to the control terminal 70c.
[0074] The current source 43 has a first end 431 connected to the second power supply terminal 6 of the supply voltage VSS, a second end 432 connected to node N1, and a control end.
[0075] The current source 44 is configured to supply a constant current source having a predetermined inherent current value. The current source 44 has a first end 441 connected to node N1 and a second end 442 connected to the first power supply terminal 5.
[0076] Current sources 42 and 43, according to the logic of control signal 702, adjust the internally regulated (details will be described later) current value I. DACP and current value I DACN Supply is provided to the first resistor 704. The control signal 702 includes, for example, two different logic levels: 0 as a low level (hereinafter referred to as "L") and 1 as a high level (hereinafter referred to as "H"). DACP It is the direction of flow into the first resistor 704, I DACN It flows out from the first resistor 704. Furthermore, the current value nI of the current source 44... REF It flows into the first resistor 704 independently of the control signal 702. As a result, nIREF +I DACP or nI REF -I DACN The current will flow into the first resistor 704. Since one end of the first resistor 704 is connected to the reference in-phase voltage terminal 70b, the current will be at the reference in-phase voltage V. CM Based on this, the resistance value of the first resistor 704 and nI are generated. REF +I DACP or nI REF -I DACN The reference voltage 701 is determined by the product of the currents.
[0077] Figure 3 This is a more detailed structural example of current source 41 and current sources 42, 43 and 44 in reference voltage circuit 70A. Specifically, it is a circuit diagram of a structural example of a current source circuit including current sources 41 to 44.
[0078] Figure 3 The current source circuit includes: a reference current source 40 that supplies reference current from the first power supply terminal 5 to the second power supply terminal 6, a first transistor T1 to a third transistor T3, a current source transistor T41, current source transistors T42A to T42C, current source transistors T43A to T43C, a first current switch SC1 to a sixth current switch SC6, a memory circuit 93A, and a decoder 94A.
[0079] The reference current source 40 is configured with a current value I REF The current source is connected at one end to the second power supply terminal 6 and at the other end to the drain terminal and gate terminal of the first transistor T1.
[0080] The first transistor T1 is a Pch transistor, with its source terminal connected to the first power supply terminal 5 and its drain terminal connected to the reference current source 40. Therefore, a current value I flows through it. REF The drain current.
[0081] The second transistor T2 is a Pch transistor with the same (W / L) ratio as the first transistor. Its source terminal is connected to the first power supply terminal 5, its gate terminal is connected to the gate terminal of the first transistor T1, and its drain terminal is connected to both the gate terminal and the drain terminal of the third transistor T3, forming a current mirror circuit. Therefore, a current value I flows through it. REF The drain current.
[0082] The third transistor T3 is an Nch transistor. Its source terminal is connected to the second power supply terminal 6, and its drain terminal is connected to the drain terminal of the second transistor T2. Therefore, a current value I flows through it. REF The drain current.
[0083] The current source transistor T41 is configured as a Pch transistor with a (W / L) ratio m times that of the first transistor T1. Its gate terminal is connected to the gate terminal of the first transistor T1, and its source terminal is connected to the first power supply terminal 5, forming a current mirror circuit. Therefore, a current value mI flows through it. REF The drain current. The drain current is the drive current I of the Hall element 30. DRV (Refer to Figure 1 ).
[0084] Current source transistors T42A to T42C are configured as Pch transistors with (W / L) ratios of 4, 2, and 1 respectively relative to the first transistor T1. Their gate terminals are connected to the gate terminal of the first transistor T1, and their source terminals are connected to the first power supply terminal 5, forming a current mirror circuit. Therefore, they are configured to supply currents weighted to a current value of 4I. REF Current value 2I REF Current value I REF The drain current of current source transistors T42A to T42C is connected to one end of the first current switch SC1 to the third current switch SC3. The other ends of the first current switch SC1 to the third current switch SC3 are connected to the first terminal 421, and their on / off states are used to control whether to supply drain current of current source transistors T42A to T42C to the first terminal 421.
[0085] Here, if all current switches from the first current switch SC1 to the third current switch SC3 are short-circuited, the total drain current supplied from current source transistors T42A to T42C to the first terminal 421 of current source 42 is 7I. REF If all current switches from the first current switch SC1 to the third current switch SC3 are in the open state, the drain current supplied to the first terminal 421 from current source transistors T42A to T42C is zero. Corresponding to the respective open / closed states of the first current switch SC1 to the third current switch SC3, the drain current supplied to the first terminal 421 from current source transistors T42A to T42C can be 0I... REF ~7I REF Within the range, with current value I REF The resolution is controlled.
[0086] Current source transistors T43A to T43C are configured as Nch transistors with (W / L) ratios of 4, 2, and 1 respectively relative to the third transistor T3. Their gate terminals are connected to the gate terminal of the third transistor T3, and their source terminals are connected to the second power supply terminal 6, forming a current mirror circuit. Therefore, they are configured to supply a weighted current value 4I to each transistor. REF Current value 2I REF Current value I REF The drain current of current source transistors T43A to T43C is connected to one end of the fourth current switch SC4 to the sixth current switch SC6. The other ends of the fourth current switch SC4 to the sixth current switch SC6 are connected to the first terminal 431 of the current source 43, and the opening and closing states of the switches control whether to supply drain current of current source transistors T43A to T43C to the first terminal 431.
[0087] Here, if all current switches from the fourth current switch SC4 to the sixth current switch SC6 are in a short-circuit state, the total drain current supplied to the first terminal 431 from current source transistors T43A to T43C is -7I. REF If all current switches from the fourth to the sixth SC6 are in the open state, the drain current supplied to the first terminal 431 from current source transistors T43A to T43C is zero. Corresponding to the respective open / closed states of the fourth to the sixth current switches SC4 and SC6, the drain current supplied to the first terminal 431 of the current source 43 from current source transistors T43A to T43C can be -7I... REF ~0I REF Within the range, with current value I REF The resolution is controlled.
[0088] The current source transistor T44 is configured as a Pch transistor with a (W / L) ratio n times that of the first transistor T1. Its gate terminal is connected to the gate terminal of the first transistor T1, and its source terminal is connected to the first power supply terminal 5, forming a current mirror circuit. Therefore, a current value nI flows through it. REF The drain current. The drain current is the current that always drives the first resistor 704, regardless of the state of the control signal 702 (refer to...). Figure 2 ).
[0089] The memory circuit 93A is configured as a 4-bit non-volatile memory, such as a fuse-based read-only memory (ROM) or an electrically erasable programmable read-only memory (EEPROM), and outputs binary signals D0 to D3 connected to the decoder 94A. Binary signals D0 to D3 are binary adjustment codes (BinCode) predetermined during the manufacturing process, according to the current adjustment amount required to adjust the magnetoelectric conversion characteristics.
[0090] The decoder 94A receives the input control signal 702 and binary signals D3 to D0. Based on these binary signals, it outputs binary control signals 941 to 946 for the first current switch SC1 to the sixth current switch SC6. When binary control signals 941 to 946 are "1", the corresponding first current switch SC1 to the sixth current switch SC6 are turned on, and the drain currents of current source transistors T42A to T42C and current source transistors T43A to T43C flow to the first terminal 421 of current source 42 and the first terminal 431 of current source 43, respectively. When binary control signals 941 to 946 are "0" (zero), the corresponding first current switch SC1 to the sixth current switch SC6 are blocked, and the drain currents of current source transistors T42A to T42C and current source transistors T43A to T43C are blocked.
[0091] Figure 4 This is an example of the detailed structure of the 94A decoder. Figure 5 This is the truth table for decoder 94A. (Refer to...) Figure 4 This section will illustrate the detailed structure of the decoder 94A.
[0092] The decoder 94A has various logic gates IV1-IV2, AN1-AN10, and OR1-OR2, and is configured to enable binary signals D2-D0 (absolute bits) and output binary control signals 941-946 based on the combinational logic signals A1 and A2 of control signal 702 and binary signal D3 (polarity bit). More specifically, according to... Figure 5 The truth table shown outputs binary control signals 941 to 946 from the first current switch SC1 to the sixth current switch SC6.
[0093] like Figure 5As shown in the truth table, the configuration is such that, according to the code of control signal 702, binary control signals 941 to 946 are switched relative to the allocation of binary signal D[3:0]. DAC This is a code inversion relative to the binary signal D[3:0]. In this example, when D[3:0] = 0000b and D[3:0] = 1000b, it is equivalent to 0 (zero), that is, the adjustment value is 0 or no magnetic offset adjustment is performed.
[0094] Next, the function of semiconductor device 1A will be explained.
[0095] Figure 6 as well as Figure 7 This is an explanatory diagram illustrating the magnetoelectric conversion characteristics of the semiconductor device 1A when the magnetic deflection of the Hall element 30 is negative. Figure 6 This indicates the magnetoelectric conversion characteristics without adjustment. Figure 7 This indicates the magnetoelectric conversion characteristics when optimal adjustment is implemented in the semiconductor device of this embodiment.
[0096] Figure 6 as well as Figure 7 In the diagram, the horizontal axis represents the magnetic flux density B applied to the detection axis of semiconductor device 1A. in The vertical axis represents the differential input voltage V of comparator 60. SIG And the output voltage of comparator 60, i.e., voltage V OUT Here, the dashed lines Lsi and Lci represent the magnetoelectric conversion characteristics of the Hall element 30 when it has ideal magnetoelectric conversion characteristics. The solid lines Ls and Lc represent the negative magnetic deflection B of the Hall element 30. OS The magnetoelectric conversion characteristics are shown. Lines Ls and Lsi represent the magnetoelectric conversion characteristics when switch circuit 80 is in its first state (direct connection state). Lines Lc and Lci represent the magnetoelectric conversion characteristics when switch circuit 80 is in its second state (cross-connection state). Hysteresis amplitude B. HYS The magnetic flux density B represents the threshold value on the S-pole side. OP (Action point) and magnetic flux density B as the threshold of the N-pole side RP The difference between (recovery points).
[0097] Actions without adjustment (no adjustment implemented) Figure 6 The following explanation is provided. When the Hall element 30 has ideal magnetoelectric conversion characteristics, when the N-pole magnetic field is detected, the switching circuit 80 is in the first state (direct wiring state), and therefore has magnetoelectric conversion characteristics along the straight line Lsi. When the S-pole magnetic field is detected, the switching circuit 80 is in the second state (cross wiring state), and therefore has magnetoelectric conversion characteristics along the straight line Lci.
[0098] On the other hand, when the Hall element 30 has a negative magnetic deflection B OS When a N-pole magnetic field is detected, the switching circuit 80 is in its first state (direct wiring state), thus having the ability to move the straight line Lsi parallel to the negative direction by B. OS The magnetoelectric conversion characteristics of the straight line Ls indicate that when the S-pole magnetic field is detected, the switching circuit 80 is in the second state (cross-connection state), thus having the ability to move the straight line Lci parallel to the negative direction by B. OS The magnetoelectric conversion characteristics of the straight line Lc.
[0099] When the Hall element 30 has ideal magnetoelectric conversion characteristics, the linear Lsi is compared with the reference value V of the reference voltage (hereinafter referred to as "comparator reference voltage") supplied from the comparator 60. REF A strong S-polar magnetic field was detected at the intersection of the straight line Lci and the reference value V. REF A strong N-pole magnetic field was detected at the intersection point. The magnetic flux density B corresponding to each intersection point... OPid Magnetic flux density B RPid This represents the ideal operating point and recovery point. On the other hand, when the Hall element 30 has a negative magnetic deflection B... OSDP At the same time, each intersection point, like lines Ls and Lc, moves parallel to B in the negative direction. OSDP The quantity, therefore, corresponds to the magnetic flux density B at each intersection point. OP Magnetic flux density B RP For action points and recovery points. B OPid B RPid B OP B RP B OSDP The relationship is expressed by the following equations (1) to (2).
[0100] B OP =B OPid -|B OSDP | (1)
[0101] B RP =B RPid -|B OSDP | (2)
[0102] Subsequently, the actions taken during the implementation of the adjustment ( Figure 7 This will be explained. (and) Figure 6 The difference lies in that the comparator reference voltage supplied from comparator 60 can be switched to a positive direction relative to the reference value V. REF The comparator reference voltage V is obtained by adding the adjustment value ΔVo (ΔVo>0) of the reference voltage. REF +ΔVo, or relative to the reference value V in the negative direction. REF The comparator reference voltage V is obtained by adding the adjustment value ΔVo of the reference voltage.REF -ΔVo. Reference voltage V REF and Figure 6 The comparator reference voltage V is the same. REF +ΔVo and comparator reference voltage V REF -ΔVo represents the voltage from the reference voltage V REF The voltage is shifted parallel to the adjustment value ΔVo in the positive and negative directions. Regarding the straight lines Ls, Lsi, Lc, and Lci representing the magnetoelectric conversion characteristics, due to... Figure 6 Since they are the same, the explanation is omitted.
[0103] Figure 7 In the case where the Hall element 30 has ideal magnetoelectric conversion characteristics, the linear Ls and the comparator reference voltage V... REF A south pole magnetic field was detected at the intersection of +ΔVo, and at the intersection of the straight line Lc and the comparator reference voltage V. REF A north pole magnetic field is detected at the intersection of -ΔVo. Therefore, by setting ΔVo to an appropriate value, it is possible to make the line Ls and the comparator reference voltage V... REF The point of action B represented by the intersection of +ΔVo OP With the ideal action point B OPid Consistent, and making the straight line Lc and the comparator reference voltage V consistent. REF The point of recovery, represented by the intersection of -ΔVo, is B. RP With ideal recovery point B RPid Consistent.
[0104] Figure 8 as well as Figure 9 This is an explanatory diagram illustrating the magnetoelectric conversion characteristics of the semiconductor device 1A when the magnetic deflection of the Hall element 30 is positive. Figure 8 This indicates the magnetoelectric conversion characteristics without adjustment. Figure 9 This indicates the magnetoelectric conversion characteristics when optimal adjustment is performed in this embodiment.
[0105] Figure 8 as well as Figure 9 In the middle, the dashed lines Lsi and Lci are... Figure 6 as well as Figure 7 The dashed lines shown are the same, specifically lines Lsi and Lci. On the other hand, Figure 8 as well as Figure 9 The solid lines Ls and Lc shown indicate that the Hall element 30 has a positive magnetic deflection B. OS The magnetoelectric conversion characteristics at that time, this is consistent with Figure 6 as well as Figure 7The solid lines shown are different for lines Ls and Lc, but the other points are the same. That is, line Ls represents the magnetoelectric conversion characteristics of the switching circuit 80 in the first state (direct wiring state). Line Lc represents the magnetoelectric conversion characteristics of the switching circuit 80 in the second state (cross-wiring state).
[0106] Figure 8 as well as Figure 9 In the middle, the horizontal axis and the vertical axis are... Figure 6 The same applies, therefore its explanation is omitted. First, regarding the action before adjustment (no adjustment is implemented)... Figure 8 The following explanation is provided. When the Hall element 30 has ideal magnetoelectric conversion characteristics, when the N-pole magnetic field is detected, the switching circuit 80 is in the first state (direct wiring state), and therefore has magnetoelectric conversion characteristics along the straight line Lsi. When the S-pole magnetic field is detected, the switching circuit 80 is in the second state (cross wiring state), and therefore has magnetoelectric conversion characteristics along the straight line Lci.
[0107] On the other hand, when the Hall element 30 has a positive magnetic deflection B OSDP When a N-pole magnetic field is detected, the switching circuit 80 is in its first state (direct wiring state), thus having the ability to move B along the straight line Lsi parallel in the positive direction. OSDP The magnetoelectric conversion characteristics of the straight line Ls indicate that when the S-pole magnetic field is detected, the switching circuit 80 is in the second state (cross-connection state), thus having the ability to move the straight line Lci parallel to the positive direction by B. OSDP The magnetoelectric conversion characteristics of the straight line Lc.
[0108] Explanation of when Hall element 30 has ideal magnetoelectric conversion characteristics Figure 6 This is repeated and therefore omitted. When the Hall element 30 has a positive magnetic deflection B OSDP At that time, each intersection point also moves parallel to line Ls and line Lc in the same positive direction. OSDP The quantity, therefore, corresponds to the magnetic flux density B at each intersection point. OP Magnetic flux density B RP For action points and recovery points. B OPid B RPid B OP B RP B OSDP The relationship is expressed by the following equations (3) to (4).
[0109] B OP =B OPid +B OSDP (3)
[0110] B RP =B RPid +B OSDP (4)
[0111] Subsequently, the actions taken during the implementation of the adjustment ( Figure 9 This will be explained. (and) Figure 8 The difference is that the comparator reference voltage can be switched to V. REF +ΔVo and V REF -ΔVo. Regarding lines Ls, Lsi, Lc, and Lci, due to... Figure 8 Since they are the same, the explanation is omitted. Figure 9 In the case where the Hall element 30 has ideal magnetoelectric conversion characteristics, the linear Ls and the comparator reference voltage V... REF A strong magnetic field was detected at the intersection of -ΔVo and the comparator reference voltage V. REF A strong N-pole magnetic field was detected at the intersection of +ΔVo. Therefore, by setting the adjustment value ΔVo to an appropriate value, it is possible to make the line Ls and the comparator reference voltage V... REF The point of action represented by the intersection of -ΔVo and the ideal point of action, i.e., magnetic flux density B, is... OPid Consistent, and making the straight line Lc and the comparator reference voltage V consistent. REF The point of recovery represented by the intersection of +ΔVo and the ideal point of recovery, i.e., magnetic flux density B, are related. RPid Consistent.
[0112] Next, the principle of magnetic offset adjustment in this embodiment will be explained using figures. Figure 10 The reference current I represents the binary adjustment code BinCode, which is a binary adjustment code with an adjustment bit length N (design constant) of 4 bits (3 bits for positive and 3 bits for negative), as described later. DAC Comparator reference voltage V R and magnetic offset adjustment ΔB OS Example. Here, V represents the comparator reference voltage V relative to the binary adjustment code BinCode. R The picture ( Figure 10 The broken line V shown in the middle of the three figures is one of them. RN This indicates the detection of a North pole magnetic field, i.e., the code for control signal 702 is L. (Broken line V) RS This indicates the detection of the S pole magnetic field, i.e., the code of control signal 702 is H.
[0113] The binary adjustment code (BinCode) ranges from 0000b to 1111b, totaling 16 types. The MSB corresponds to the code of the adjustment value ΔVo, and the lower bit corresponds to the absolute value of ΔVo. Here, the reference current I... DAC The adjustment resolution is defined as "current adjustment resolution ΔI", where the reference current I is... DACThe configuration is such that when D[3:0]=0111b, I DAC =-7ΔI, when D[3:0]=1111b, I DAC = +7ΔI. Similarly, the comparator reference voltage V R The configuration is such that when a N-pole magnetic field is detected and the comparator reference voltage V... R When the adjustment resolution is defined as “voltage adjustment resolution ΔV”, and D[3:0]=0111b, V R =V REF -ΔVo=V REF -7ΔV, when D[3:0]=1111b, V R =V REF +ΔVo=V REF +7ΔV (refer to the broken line V) RN Additionally, when a S-pole magnetic field is detected, the resolution ΔV is adjusted using voltage, and the comparator reference voltage V is used. R The configuration is such that when D[3:0]=0111b, V R =V REF +ΔVo=V REF +7ΔV, when D[3:0]=1111b, V R =V REF -ΔVo=V REF -7ΔV (refer to the broken line V) RS ).
[0114] As a result, the magnetic offset adjustment ΔB OS For example, when D[3:0]=0111b, ΔB OS =-7ΔB, when D[3:0]=1111b, ΔB OS = +7ΔB. Using reference current I DAC The current adjustment resolution ΔI (design constant), the resistance value R of the first resistor 704. REF (Design constant), magnetoelectric conversion coefficient K of Hall element H The magnetic offset adjustment resolution ΔB, along with the gain G of amplifier 50, is expressed by the following equation (5).
[0115] ΔB=ΔV / (K H ×G)=(R REF ×ΔI) / (K H ×G) (5)
[0116] Furthermore, the adjustment range B of the magnetic offset rng It is expressed by the following equation (6) using magnetic offset adjustment of resolution ΔB and adjustment bit number N (design constant).
[0117] B rng=ΔB×2^(N-1) (6)
[0118] Here, 2^(N-1) represents 2 raised to the power of (N-1).
[0119] Thus, the magnetic offset adjustment resolution ΔB and adjustment range B are... rng It is possible to control the deviation range of the magnetic offset of the Hall element 30 and the accuracy required as a magnetic switch, based on the design constant.
[0120] According to this embodiment, a control signal 702 corresponding to the output level of comparator 60 is used to control the magnetic flux density B used as the operating point. OP And the magnetic flux density B at the recovery point RP The comparator reference voltage V is used for the determination. R By switching, the magnetic offset B of the Hall element 30 can be corrected. OSDP The impact on the action point and recovery point. That is, according to this embodiment, it is possible to obtain a magnetic deflection B that can suppress the Hall element 30. OSDP The influence of magnetoelectric conversion switch characteristics.
[0121] According to this embodiment, optimization of the action point and recovery point becomes possible through prior adjustment of the operation. For example, if magnetic offset B can be measured during the inspection process... OS Then, based on the measured B OS The initial values are used to set the binary signal D[3:0], so as to adjust the current values of current source 42 and current source 43 to the optimal current values, so that the adjusted B OS Approximately zero is acceptable. Furthermore, in the magnetic offset B... OS In the case of systematic bias, as long as the binary signal D[3:0] is set to adjust the current values of current source 42 and current source 43 to the optimal current values, so that the adjusted magnetic offset B OS It should be close to zero.
[0122] In the first embodiment, current sources 42 and 43 are configured to allow for adjustments of 3 bits each (positive and negative), but may also include any number of adjustment bits N. In this case, a magnetic offset B corresponding to the number of adjustment bits N can be obtained. OS Adjustment range and resolution.
[0123] [Second Implementation]
[0124] Next, the second embodiment will be described using figures, focusing on the differences from the first embodiment.
[0125] The semiconductor device 1B of the second embodiment is relative to Figure 1The illustrated semiconductor device 1A differs in that it includes a reference voltage circuit 70B instead of a reference voltage circuit 70A, but otherwise remains the same. That is, as long as the reference voltage circuit 70A is replaced by a reference voltage circuit 70B... Figure 1 The symbols 1A and 70A marked in the diagram are read as 1B and 70B respectively, thus forming a schematic diagram representing the structure of semiconductor device 1B. Therefore, in this embodiment, the description focuses on the reference voltage circuit 70B, and descriptions that overlap with those of semiconductor device 1A are omitted.
[0126] Figure 11 This is a circuit diagram showing the structure of the reference voltage circuit 70B in semiconductor device 1B.
[0127] The reference voltage circuit 70B includes: a memory circuit 93B, a decoder 94B, a second resistor 705 including a first resistor segment to a seventh resistor segment 705G, a current source 44, and a first short-circuit switch SS1 to a sixth short-circuit switch SS6.
[0128] The second resistor 705 is formed by connecting the first resistor segment to the seventh resistor segment 705G in series. One end of it is connected to the reference in-phase voltage terminal 70b, and the other end is connected to the reference voltage 701.
[0129] 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 short-circuit switches SS1 to SS6 in the closed state (conducting state) are relatively small compared to the resistance values of the first to seventh resistor segments 705G. Switching control is performed according to their open / closed states to enable or disable the parallel-connected first to seventh resistor segments 705G.
[0130] The first resistor segment 705A is a reference resistor used to specify the resistance value of the second resistor 705 when all short-circuit switches SS1 to SS6 are in the short-circuit state. Its resistance value is, for example, set to R-7ΔR. The second resistor segments 705B to 705G are weighted resistors. For example, the second resistor segment 705B to the third resistor segment 705C are configured with 4ΔR, the fourth resistor segment 705D to the fifth resistor segment 705E with 2ΔR, and the sixth resistor segment 705F to the seventh resistor segment 705G with ΔR. At this time, when all short-circuit switches SS1 to SS6 are in the open state (blocking state), the resistance value of the second resistor 705 becomes R+7ΔR. Thus, the resistance value of the second resistor 705 can be arbitrarily set to a resistance value between the minimum value R-7ΔR and the maximum value R+7ΔR, with an adjustment range of ΔR, according to the control signals 941B to 946B.
[0131] The first terminal 441 of the current source 44 is connected to the reference voltage 701, and the second terminal 442 is connected to the first power supply terminal. Like the reference voltage circuit 70A, the current source 44 does not require switching control; its output current value I... REF It can be a fixed value.
[0132] Similar to memory circuit 93A, memory circuit 93B outputs 4-bit signals D20 to 4-bit signals D23 that constitute the binary adjustment code BinCode, and inputs them to decoder 94B.
[0133] Decoder 94B, based on control signal 702 and 4-bit signals D20 to D23, outputs control signals 941B to 946B to the signal lines used to control the opening and closing states of the first short-circuit switch SS1 to the sixth short-circuit switch SS6. Signal D20 represents the LSB (least significant bit) of the binary adjustment code BinCode, and signal D23 represents the MSB (most significant bit) of the binary adjustment code BinCode.
[0134] Next, the operation of the reference voltage circuit 70B will be explained. The reference current I injected into the second resistor 705, which has a resistance value of R ± ΔnR (n is an integer from 0 to 7), is... REF The comparator reference voltage V is generated as expressed by the following equation (7). R .
[0135] V R =V CM +(R±nΔR)×I REF (7)
[0136] When the adjustment codes D[3:0] = 0000b and D[3:0] = 1000b, n = 0; when the adjustment codes D[3:0] = 0001b, n = -1; when the adjustment codes D[3:0] = 0111b, n = -7; when the adjustment codes D[3:0] = 1001b, n = +1; and when the adjustment codes D[3:0] = 1111b, n = +7. Based on the example described, it is possible to generate V that changes in stages corresponding to the adjustment codes. REF The comparator reference voltage V is ±nΔV. R .
[0137] Figure 12 This is a circuit diagram illustrating an example of the detailed structure of the decoder 94B. Figure 13 It is a truth table representing the actions of decoder 94B.
[0138] Reference Figure 12 Let's illustrate the structure of decoder 94B. Decoder 94B has various logic gates IV3-IV4, AN11-AN19, OR3-OR4, NR1-NR2, and ND1, and is configured to decode control signal 702 and binary signals D23-D20 to output binary control signals 941B-946B. More specifically, according to... Figure 13 The truth table shown outputs control signals 941B to 946B, representing the open / closed states of the first short-circuit switch SS1 to the sixth short-circuit switch SS6. For example... Figure 13 As shown in the truth table, the configuration is such that, corresponding to the code of control signal 702, the binary control signals 941B to 946B are switched relative to the allocation of the binary signal D[3:0], from R DAC The deviation (±nΔR) of the center value R is the code inversion of the binary signal D[3:0].
[0139] Next, the magnetic offset adjustment in this embodiment will be explained.
[0140] Figure 14 This represents the resistance value R of the second resistor 705 relative to the binary adjustment code BinCode. DAC Reference voltage V REF and magnetic offset adjustment ΔB OS A schematic diagram of an example. Here, V represents the comparator reference voltage V relative to the binary adjustment code BinCode. R The picture ( Figure 14 The broken line V shown in the middle of the three figures is one of them. RN and V RS and Figure 10 The broken line V shown RN and V RSsame.
[0141] The adjustment codes are D[3:0] = 0000b~1111b, totaling 16 types. MSB (D23) corresponds to the polarity code of the adjustment, and the lower bits (D22~D20) correspond to the absolute value of the adjustment amount. Resistance value R DAC The configuration is such that when D[3:0]=0111b, R DAC =R-7ΔR, when D[3:0]=1111b, R DAC =R + 7ΔR. Comparator reference voltage V R and magnetic offset adjustment ΔB OS and Figure 10 Similarly, the explanation is omitted.
[0142] Semiconductor device 1B configured in this way, Figure 14 The ΔB shown is relative to the binary adjustment code BinCode. OS Features and Figure 10 Similarly, it can therefore function in the same way as semiconductor device 1A to adjust B. OS That is, by achieving the same function as semiconductor device 1A, the same effect as semiconductor device 1A is obtained.
[0143] Thus, according to this embodiment, the reference voltage V for the comparator is... R (=V REF The switching of the resistance value of the second resistor 705 generated by ±ΔVo) can achieve symmetrical magnetoelectric switching characteristics between the S and N poles, thereby achieving the same effect as the first embodiment.
[0144] In the second embodiment, the second resistor 705 is configured to allow adjustment of 3 bits each for positive and negative values, but it can also contain any number of adjustment bits N. In this case, a value B corresponding to the number of adjustment bits N can be obtained. OS Adjustment range and B OS Adjust the resolution.
[0145] As described above, the structure and function of the semiconductor device according to embodiments of the present invention have been explained, but the present invention is not limited to the described embodiments. In the implementation stage, in addition to the examples described, it can be implemented in various ways, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention.
[0146] The magnetic switches included in semiconductor devices 1A to 1B are so-called alternating detection type magnetic switches, and can also be configured as bipolar detection type or unipolar detection type magnetic switches. When semiconductor devices 1A to 1B are configured as bipolar detection type magnetic switches, they can be configured such that appropriate logic circuitry is added to the post-stage of comparator 60 to appropriately control state transitions.
[0147] Furthermore, when semiconductor devices 1A to 1B are configured as bipolar detection type magnetic switches, the detection distance deviation of the magnetic material detection mechanism within the semiconductor device can be reduced even without polarity management of the combined magnets. Moreover, when semiconductor devices 1A to 1B are configured as unipolar detection type magnetic switches, the accuracy of the magnetic sensitivity to the target polarity can be improved, thus reducing the detection distance deviation of the magnetic material detection mechanism within the semiconductor device.
[0148] Semiconductor devices 1A to 1B may further include a switching circuit network for switching electrodes 30a to 30d, wherein electrodes 30a to 30d supply a drive current I to the Hall element 30. DRV The input terminals and the differential output voltage V from the Hall element 30 H The output terminals.
[0149] In the described embodiment, the Hall element 30 exemplifies a so-called horizontal Hall element structure having electrodes 30a to 30d formed at the four corners of a square diffusion region, and detecting magnetic fields orthogonal to the surface of the semiconductor substrate 2 (see, for example, reference). Figure 1 However, it is not limited to this. For example, it can also 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 operated as a four-terminal element by short-circuiting the electrodes at both ends.
[0150] In the described embodiments, decoder 94A and decoder 94B are not each limited to Figure 4 as well as Figure 11 The illustrated circuit structure uses logic gate elements. The logic gate elements and circuit structure are irrelevant as long as the equivalent logical operation result can be obtained when the input signal is input.
[0151] Furthermore, in the described embodiment, the switching circuit was described as an example of a component that switches the current value of current source 42 and current source 43 or the resistance value of second resistor 705, but the component that switches the current value or resistance value is not limited to this. Switches SC1 to SC6 and SS1 to SS6 may also be, for example, mechanical switches containing micro-electro-mechanical systems (MEMS), electronic switches such as transistors, or combinations thereof.
[0152] Furthermore, the memory circuits 93A and 93B in the described embodiments are not limited to any particular type, as long as they are configured to output a binary signal with the required number of bits. For example, memory circuits 93A and 93B can be rewritable non-volatile memory such as EEPROM, or non-volatile memory that can only be written once such as fuse ROM. Moreover, if configured to set bits based on self-diagnostic results during power-on, they can also be volatile memory such as Static Random Access Memory (SRAM).
[0153] The described embodiment illustrates the case where Hall element 30 is a single Hall element, but from the perspective of suppressing magnetic deflection B... OSDP Considering the absolute value and deviation, a structure in which multiple Hall element units are connected in parallel can also be adopted. Since it can suppress the deviation of the unadjusted operating point and the recovery point from the design value, the adjustment range and resolution required by the adjustment circuit can be reduced, thereby reducing the circuit size.
[0154] In the described embodiment, a differential input single-phase output amplifier 50 and a single-phase input comparator 60 have been structurally illustrated. However, the amplifier 50 and comparator 60 are not limited to this example; differential input / output amplifiers 50 and differential input comparators 60 can also be applied to semiconductor devices 1A to 1B. In this case, semiconductor devices 1A to 1B can be provided that include relatively robust magnetic switches relative to in-phase noise overlapping from the power supply, etc.
[0155] In the described embodiment, for the magnetic offset adjustment amount ΔB OS Examples of 0 when D[3:0] = 0000b and D[3:0] = 1000b, that is, magnetic offset adjustment ΔB with a positive and negative seven-stage adjustment range, including the case where the magnetic offset adjustment is set to 0 (zero). OS The example provided is not limited to this one. For example, the magnetic offset adjustment ΔB can also be excluded. OSWhen the value is 0, a magnetic offset adjustment amount ΔB is set with an adjustment range of positive and negative eight stages. OS Furthermore, in this embodiment, the case where the magnetic offset adjustment amount is 0 is equivalent to the case where there is no magnetic offset adjustment. Therefore, semiconductor devices 1A to 1B can also be understood as semiconductor devices that include a magnetic switch that can switch the presence or absence of magnetic offset adjustment.
[0156] These embodiments or variations thereof are included within the scope or spirit of the invention, and are included within the scope of the invention as described in the claims and their equivalents.
Claims
1. A semiconductor device comprising a magnetic switch disposed on a semiconductor substrate, characterized in that, The magnetic switch includes: A Hall element has at least four electrodes; First power terminal and second power terminal; A driving current source drives the Hall element; The switching circuit has an input terminal pair, an output terminal pair, and a control terminal that supply differential output voltage from two of the four electrodes, and is capable of switching the wiring state of the input terminal pair and the output terminal pair to a first state and a second state based on a control signal supplied to the control terminal. An amplifier amplifies the difference between the signals supplied from the output terminal of the switching circuit. The reference voltage circuit generates a reference voltage based on the input reference in-phase voltage and the control signal. A comparator compares the output signal of the amplifier with the reference voltage; and The latch circuit latches the output voltage of the comparator and outputs a single control signal. The single control signal branch output by the latch circuit is input to the control terminal of the switching circuit and the reference voltage circuit. The switching circuit between the first state and the second state, and the switching of the reference voltage circuit between the reference voltage and the voltage obtained by adding the adjustment value to the reference value in the positive direction and the voltage obtained by adding the adjustment value to the reference value in the negative direction, are all uniquely linked according to the logic level of the single control signal.
2. The semiconductor device according to claim 1, wherein The reference voltage circuit has: a control terminal; and a memory circuit including an output terminal that outputs an adjustment code signal that sets the natural number N to the number of adjustment bits. A decoder, including an output terminal for an output current control signal, generates the current control signal based on the adjustment code signal and a control signal input to the control terminal; a first variable current source; Second variable current source; Reference in-phase voltage terminal; Output terminals; and A resistor comprising a first terminal connected to the reference in-phase voltage terminal and a second terminal connected to the output terminal. The first variable current source includes a first terminal for receiving the current control signal and a second terminal connected to the output terminal. Based on the current control signal, when the current control signal is in a first logic state, the output current value is controlled to zero; when the current control signal is in a second logic state, the output current value is controlled to a current value based on the adjustment code signal. The second variable current source includes a first terminal for receiving the current control signal and a second terminal connected to the output terminal. Based on the current control signal, when the current control signal is a first logic, the output current value is controlled to be a current value based on the adjustment code signal, and when the current control signal is a second logic, the output current value is controlled to be zero.
3. The semiconductor device according to claim 1, wherein The reference voltage circuit includes: a control terminal; a memory circuit including an output terminal that outputs an adjustment code signal that sets the natural number N to the number of adjustment bits; and a non-inverting potential terminal. Output terminals; A current source, including an output terminal connected to the output terminal; A resistor comprising a first end connected to the in-phase potential terminal and a second end connected to the output terminal; And a decoder, including an output terminal for an output resistance control signal, which generates the resistance control signal based on the adjustment code signal and the control signal input to the control terminal. The resistor is a variable resistor in which, based on the resistance control signal, the resistance value is controlled to a reference resistance value when the resistance control signal is in the first logic state, and the resistance value is controlled to a resistance value different from the reference resistance value when the resistance control signal is in the second logic state.
4. The semiconductor device according to claim 1, wherein The reference voltage circuit is configured to adjust the adjustment value in multiple stages.
5. The semiconductor device according to claim 4, wherein The multi-stage includes the stage where the adjustment value is zero.
6. The semiconductor device according to claim 1, wherein The Hall element is either a horizontal Hall element that detects a magnetic field orthogonal to the surface of the semiconductor substrate, or a vertical Hall element that detects a magnetic field parallel to the surface of the semiconductor substrate.
7. The semiconductor device according to any one of claims 1 to 6, wherein The Hall element is a Hall element composed of multiple Hall element units connected in parallel.
Citation Information
Patent Citations
Magnetic sensor circuit and electronic device with the use thereof
JP2009002851A
Comparison circuit
JP2015095727A
Magnetic sensor
JP2012181128A
Resistance calibration circuit
KR1020040021110A
Magnetic sensor circuit and electronic apparatus using same
US20100026281A1
