Magnetic sensor
The magnetic sensor addresses reliability issues by using multiple magnetoresistive elements and advanced signal processing to correct harmonic components, enhancing angular error correction and overall reliability.
Patent Information
- Application Number
- JP2023073713
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-27
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Magnetic sensors with magnetoresistive elements face reliability issues due to harmonic components in actual sine and cosine signals, leading to angular errors.
A magnetic sensor design incorporating multiple magnetoresistive elements and a signal processing circuit with amplifiers, differential amplifiers, AD converters, and offset correction circuits to process and correct sine and cosine signals, effectively eliminating harmonic components and angular errors.
The design suppresses the decrease in reliability by accurately correcting angular errors even when harmonic components are present, ensuring precise signal processing.
Smart Images

Figure 2024158481000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates generally to magnetic sensors, and more particularly to magnetic sensors including multiple magnetoresistive elements. [Background technology]
[0002] Patent Document 1 describes a magnetic sensor including a first magnetoresistance element, a second magnetoresistance element, and a detection circuit (signal processing circuit). The first magnetoresistance element outputs a sine signal. The second magnetoresistance element outputs a cosine signal. The detection circuit receives the sine signal from the first magnetoresistance element and the cosine signal from the second magnetoresistance element.
[0003] The magnetic sensor described in Patent Document 1 can correct the angle error as long as the signals are ideal sine and cosine signals that do not contain harmonic components. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2019-124505 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the magnetic sensor described in Patent Document 1, when actual sine and cosine signals contain harmonic components, the harmonic components remain, causing angle errors, resulting in a problem of reduced reliability.
[0006] An object of the present disclosure is to provide a magnetic sensor capable of suppressing a decrease in reliability. [Means for solving the problem]
[0007] A magnetic sensor according to an embodiment of the present disclosure includes a first magnetic resistance element, a second magnetic resistance element, a third magnetic resistance element, a fourth magnetic resistance element, and a signal processing circuit. The first magnetic resistance element outputs a first sine signal. The second magnetic resistance element outputs a first cosine signal. The third magnetic resistance element outputs a second sine signal. The fourth magnetic resistance element outputs a second cosine signal. The first sine signal, the first cosine signal, the second sine signal, and the second cosine signal are input to the signal processing circuit, and the signal processing circuit performs signal processing on the first sine signal, the first cosine signal, the second sine signal, and the second cosine signal. The signal processing circuit includes a first amplifier, a second amplifier, a third amplifier, a fourth amplifier, a first differential amplifier, a second differential amplifier, a first AD converter, a second AD converter, an offset adjustment circuit, and an offset correction circuit. The first amplifier amplifies the first sine signal. The second amplifier amplifies the first cosine signal. The third amplifier amplifies the second sine signal. The fourth amplifier amplifies the second cosine signal. The first differential amplifier receives the first amplified signal from the first amplifier and the third amplified signal from the third amplifier. The second differential amplifier receives the second amplified signal from the second amplifier and the fourth amplified signal from the fourth amplifier. The first AD converter receives the first differential amplified signal from the first differential amplifier and performs analog-to-digital conversion on the first differential amplified signal. The second AD converter receives the second differential amplified signal from the second differential amplifier and performs analog-to-digital conversion on the second differential amplified signal. The offset adjustment circuit is connected to the first amplifier, the second amplifier, the third amplifier, and the fourth amplifier. The offset correction circuit receives the first digital signal from the first AD converter and the second digital signal from the second AD converter. In a first offset processing, the offset adjustment circuit outputs a first correction value for correcting the first sine signal to the first amplifier, outputs a second correction value for correcting the first cosine signal to the second amplifier, outputs a third correction value for correcting the second sine signal to the third amplifier, and outputs a fourth correction value for correcting the second cosine signal to the fourth amplifier.In the second offset process, the offset correction circuit corrects the first digital signal using a fifth correction value and corrects the second digital signal using a sixth correction value. Each of the first correction value, the third correction value, and the fifth correction value is a value such that a first offset amount that is an offset amount of the first sine signal, a second offset amount that is an offset amount of the second sine signal, the first correction value, the third correction value, and the fifth correction value are zero. Each of the second correction value, the fourth correction value, and the sixth correction value is a value such that a sum of a third offset amount that is an offset amount of the first cosine signal, a fourth offset amount that is an offset amount of the second cosine signal, a first amplitude that is an amplitude of a second harmonic component of the first cosine signal, a second amplitude that is an amplitude of a second harmonic component of the second cosine signal, the second correction value, the fourth correction value, and the sixth correction value is zero.
[0008] A magnetic sensor according to another aspect of the present disclosure includes a first magnetic resistance element, a second magnetic resistance element, a third magnetic resistance element, a fourth magnetic resistance element, and a signal processing circuit. The first magnetic resistance element outputs a first sine signal. The second magnetic resistance element outputs a first cosine signal. The third magnetic resistance element outputs a second sine signal. The fourth magnetic resistance element outputs a second cosine signal. The first sine signal, the first cosine signal, the second sine signal, and the second cosine signal are input to the signal processing circuit, and the signal processing circuit performs signal processing on the first sine signal, the first cosine signal, the second sine signal, and the second cosine signal. The signal processing circuit includes a first differential amplifier, a second differential amplifier, a first AD converter, a second AD converter, and an offset correction circuit. The first differential amplifier receives the first sine signal and the second sine signal. The second differential amplifier receives the first cosine signal and the second cosine signal. The first AD converter receives the first differential amplified signal from the first differential amplifier and performs analog-to-digital conversion on the first differential amplified signal. The second AD converter receives the second differential amplified signal from the second differential amplifier and performs analog-to-digital conversion on the second differential amplified signal. The offset correction circuit receives the first digital signal from the first AD converter and the second digital signal from the second AD converter. In the offset processing, the offset correction circuit corrects the first digital signal using the first correction value such that a sum of a first offset amount that is an offset amount of the first sine signal, a second offset amount that is an offset amount of the second sine signal, and the first correction value becomes zero, and corrects the second digital signal using the second correction value such that a sum of a third offset amount that is an offset amount of the first cosine signal, a fourth offset amount that is an offset amount of the second cosine signal, a first amplitude that is the amplitude of a second harmonic component of the first cosine signal, a second amplitude that is the amplitude of a second harmonic component of the second cosine signal, and the second correction value becomes zero.
[0009] A magnetic sensor according to another aspect of the present disclosure includes a first magnetoresistance element, a second magnetoresistance element, and a signal processing circuit. The first magnetoresistance element outputs a sine signal. The second magnetoresistance element outputs a cosine signal. The signal processing circuit receives the sine signal and the cosine signal and processes the sine signal and the cosine signal. The signal processing circuit includes a first amplifier, a second amplifier, a first AD converter, a second AD converter, an offset adjustment circuit, and an offset correction circuit. The first amplifier amplifies the sine signal. The second amplifier amplifies the cosine signal. The first AD converter receives a first amplified signal from the first amplifier and performs analog-to-digital conversion on the first amplified signal. The second AD converter receives a second amplified signal from the second amplifier and performs analog-to-digital conversion on the second amplified signal. The offset adjustment circuit is connected to the first amplifier and the second amplifier. The offset correction circuit receives a first digital signal from the first AD converter and a second digital signal from the second AD converter. In a first offset process, the offset adjustment circuit outputs a first correction value for correcting the sine signal to the first amplifier and outputs a second correction value for correcting the cosine signal to the second amplifier. In a second offset process, the offset correction circuit corrects the first digital signal using a third correction value and corrects the second digital signal using a fourth correction value. Each of the first correction value and the third correction value is a value such that a sum of a first offset amount, which is an offset amount of the sine signal, the first correction value, and the third correction value becomes zero. Each of the second correction value and the fourth correction value is a value such that a sum of a second offset amount, which is an offset amount of the cosine signal, the amplitude of a second harmonic component of the cosine signal, the second correction value, and the fourth correction value becomes zero.
[0010] A magnetic sensor according to another aspect of the present disclosure includes a first magnetoresistance element, a second magnetoresistance element, and a signal processing circuit. The first magnetoresistance element outputs a sine signal. The second magnetoresistance element outputs a cosine signal. The signal processing circuit receives the sine signal and the cosine signal and performs signal processing on the sine signal and the cosine signal. The signal processing circuit includes a first AD converter, a second AD converter, and an offset correction circuit. The first AD converter receives the sine signal and performs analog-to-digital conversion on the sine signal. The second AD converter receives the cosine signal and performs analog-to-digital conversion on the cosine signal. The offset correction circuit receives the first digital signal from the first AD converter and the second digital signal from the second AD converter. In the offset processing, the offset correction circuit corrects the first digital signal using a first correction value such that a sum of a first offset amount, which is an offset amount of the sine signal, and a first correction value for correcting the sine signal becomes zero, and corrects the second digital signal using the second correction value such that a sum of a second offset amount, which is an offset amount of the cosine signal, the amplitude of the second harmonic component of the cosine signal, and a second correction value for correcting the cosine signal becomes zero. Effect of the Invention
[0011] According to the magnetic sensor according to an aspect of the present disclosure, it is possible to suppress a decrease in reliability. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a block diagram of the magnetic sensor according to the first embodiment. [Diagram 2] Fig. 2A is a waveform diagram of a sine signal and a cosine signal input to a signal processing circuit of the magnetic sensor of the above embodiment, Fig. 2B is a waveform diagram of a sine signal and a cosine signal after being offset-corrected by an offset adjustment circuit of the magnetic sensor of the above embodiment, and Fig. 2C is a waveform diagram of a sine signal and a cosine signal after being offset-corrected by an offset correction circuit of the magnetic sensor of the above embodiment. [Diagram 3]Fig. 3A is a graph showing the relationship between the reference angle and the angle error when the sine and cosine signals do not contain harmonic components for the magnetic sensor according to the first comparative example, and Fig. 3B is a graph showing the relationship between the reference angle and the angle error for the magnetic sensor according to the first comparative example when the sine and cosine signals contain second harmonic components. [Figure 4] Fig. 4A is a graph showing the relationship between the reference angle and the angle error when the sine and cosine signals do not contain harmonic components for the magnetic sensor according to the second comparative example, and Fig. 4B is a graph showing the relationship between the reference angle and the angle error for the magnetic sensor according to the second comparative example when the sine and cosine signals contain second harmonic components. [Diagram 5] Fig. 5A is a graph showing the relationship between the reference angle and the angle error when the sine signal and the cosine signal do not contain harmonic components for the magnetic sensor according to embodiment 1. Fig. 5B is a graph showing the relationship between the reference angle and the angle error for the magnetic sensor according to embodiment 1 when the sine signal and the cosine signal contain second harmonic components. [Figure 6] FIG. 6 is a block diagram of the magnetic sensor according to the second embodiment. [Figure 7] FIG. 7 is a block diagram of a magnetic sensor according to the third embodiment. [Figure 8] FIG. 8 is a block diagram of a magnetic sensor according to the fourth embodiment. [Figure 9] FIG. 9 is a block diagram of a magnetic sensor according to the fifth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, magnetic sensors according to embodiments 1 to 5 will be described with reference to the drawings. Each of the figures described in the following embodiments 1 to 5 is a schematic diagram, and the ratio of the size and thickness of each component does not necessarily reflect the actual dimensional ratio. Furthermore, the configurations described in the following embodiments 1 to 5 are merely examples of the present disclosure. The present disclosure is not limited to the following embodiments 1 to 5, and various modifications are possible depending on the design, etc., as long as the effects of the present disclosure can be achieved.
[0014] (Embodiment 1) (1) Overview First, an overview of a magnetic sensor 1 according to the first embodiment will be described with reference to FIG.
[0015] The magnetic sensor 1 according to the first embodiment is used to detect the rotation angle of a rotating body such as a steering shaft of a car. More specifically, the resistance values of a plurality of magnetic resistors 12a-12h, which will be described later, change due to a change in a magnetic field from a magnet connected to the rotating body via a gear or the like. Then, by detecting the change in the resistance values of the plurality of magnetic resistors 12a-12h, it becomes possible to detect the rotation angle of the rotating body.
[0016] 1, the magnetic sensor 1 according to the first embodiment includes a first magnetic resistance element 11a, a second magnetic resistance element 11b, a third magnetic resistance element 11c, a fourth magnetic resistance element 11d, and a signal processing circuit 10. The first magnetic resistance element 11a outputs a first sine signal S1. The second magnetic resistance element 11b outputs a first cosine signal S2. The third magnetic resistance element 11c outputs a second sine signal S3. The fourth magnetic resistance element 11d outputs a second cosine signal S4. The first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4 are input to the signal processing circuit 10, which performs signal processing on the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4.
[0017] The signal processing circuit 10 includes a first amplifier 14a, a second amplifier 14c, a third amplifier 14b, a fourth amplifier 14d, a first differential amplifier 16a, a second differential amplifier 16b, a first AD converter 18a, a second AD converter 18b, an offset adjustment circuit 15, and an offset correction circuit 70c. The first amplifier 14a amplifies the first sine signal S1. The second amplifier 14c amplifies the first cosine signal S2. The third amplifier 14b amplifies the second sine signal S3. The fourth amplifier 14d amplifies the second cosine signal S4. The first differential amplifier 16a receives the first amplified signal S5 from the first amplifier 14a and the third amplified signal S7 from the third amplifier 14b. The second differential amplifier 16b receives the second amplified signal S6 from the second amplifier 14c and the fourth amplified signal S8 from the fourth amplifier 14d.
[0018] The first AD converter 18a receives the first differential amplified signal S9 from the first differential amplifier 16a and performs analog-to-digital conversion on the first differential amplified signal S9. The second AD converter 18b receives the second differential amplified signal S10 from the second differential amplifier 16b and performs analog-to-digital conversion on the second differential amplified signal S10. The offset adjustment circuit 15 is connected to the first amplifier 14a, the second amplifier 14c, the third amplifier 14b, and the fourth amplifier 14d. The offset correction circuit receives the first digital signal S11 from the first AD converter 18a and the second digital signal S12 from the second AD converter 18b.
[0019] In the first offset process, the offset adjustment circuit 15 outputs a first correction value A11 for correcting the first sine signal S1 to the first amplifier 14a, and outputs a second correction value A12 for correcting the first cosine signal S2 to the second amplifier 14c. In the first offset process, the offset adjustment circuit 15 outputs a third correction value A13 for correcting the second sine signal S3 to the third amplifier 14b, and outputs a fourth correction value A14 for correcting the second cosine signal S4 to the fourth amplifier 14d. In the second offset process, the offset correction circuit 70c corrects the first digital signal S11 using a fifth correction value A15, and corrects the second digital signal S12 using a sixth correction value A16.
[0020] The first correction value A11, the third correction value A13, and the fifth correction value A15 are each a value that makes the sum of the first offset amount As01 which is the offset amount of the first sine signal S1, the second offset amount As02 which is the offset amount of the second sine signal S3, the first correction value A11, the third correction value A13, and the fifth correction value A15 zero. The second correction value A12, the fourth correction value A14, and the sixth correction value A16 are each a value that makes the sum of the third offset amount Ac01 which is the offset amount of the first cosine signal S2, the fourth offset amount Ac02 which is the offset amount of the second cosine signal S4, the first amplitude Ac21 which is the amplitude of the second harmonic component of the first cosine signal S2, the second amplitude Ac22 which is the amplitude of the second harmonic component of the second cosine signal S4, the second correction value A12, the fourth correction value A14, and the sixth correction value A16 zero.
[0021] In the magnetic sensor 1 according to the first embodiment, the offset adjustment circuit 15 outputs the first correction value A11 to the first amplifier 14a such that the sum of the first offset amount As01, the second offset amount As02, the first correction value A11, the third correction value A13, and the fifth correction value A15 becomes zero, and outputs the third correction value A13 to the third amplifier 14b, in the first offset process. Also, the offset adjustment circuit 15 outputs the second correction value A12 to the second amplifier 14c such that the sum of the third offset amount Ac01, the fourth offset amount Ac02, the first amplitude Ac21, the second amplitude Ac22, the second correction value A12, the fourth correction value A14, and the sixth correction value A16 becomes zero, and outputs the fourth correction value A14 to the fourth amplifier 14d, in the first offset process. Furthermore, in the second offset process, the offset correction circuit 70c corrects the first digital signal S11 using the fifth correction value A15, and corrects the second digital signal S12 using the sixth correction value A16. This makes it possible to correct the angle error even when the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4 contain harmonic components (e.g., second harmonic components), and as a result, it becomes possible to suppress deterioration in reliability.
[0022] (2)Details Next, the configuration of the magnetic sensor 1 according to the first embodiment will be described with reference to FIG.
[0023] 1, the magnetic sensor 1 according to the first embodiment includes a magnetoresistance element 12 and a signal processing circuit 10. The magnetoresistance element 12 and the signal processing circuit 10 are electrically connected to each other.
[0024] (2.1) Magnetoresistance element The magnetoresistance element 12 has a plurality of (eight in the illustrated example) magnetoresistance bodies 12a to 12h. The plurality of magnetoresistance bodies 12a to 12h include a first magnetoresistance body 12a, a second magnetoresistance body 12b, a third magnetoresistance body 12c, a fourth magnetoresistance body 12d, a fifth magnetoresistance body 12e, a sixth magnetoresistance body 12f, a seventh magnetoresistance body 12g, and an eighth magnetoresistance body 12h.
[0025] Each of the magnetic resistors 12a-12h is a metal pattern having a magnetoresistive effect, for example, containing an iron-nickel alloy, provided on a silicon substrate. Each of the magnetic resistors 12a-12h changes its electrical resistance in response to changes in the direction and magnitude of an externally applied magnetic field.
[0026] In the magnetoresistance element 12, a first series circuit including the first magnetic resistor 12a and the third magnetic resistor 12c and a second series circuit including the second magnetic resistor 12b and the fourth magnetic resistor 12d are connected in parallel to form a first bridge circuit. In the magnetoresistance element 12, a third series circuit including the fifth magnetic resistor 12e and the seventh magnetic resistor 12g and a fourth series circuit including the sixth magnetic resistor 12f and the eighth magnetic resistor 12h are connected in parallel to form a second bridge circuit.
[0027] In the first embodiment, the first magnetic resistance element 11a is configured by a first series circuit of the first magnetic resistance body 12a and the third magnetic resistance body 12c. In the first embodiment, the second magnetic resistance element 11b is configured by a fourth series circuit of the sixth magnetic resistance body 12f and the eighth magnetic resistance body 12h. In the first embodiment, the third magnetic resistance element 11c is configured by a second series circuit of the second magnetic resistance body 12b and the fourth magnetic resistance body 12d. In the first embodiment, the fourth magnetic resistance element 11d is configured by a third series circuit of the fifth magnetic resistance body 12e and the seventh magnetic resistance body 12g. That is, the magnetic sensor 1 includes the first magnetic resistance element 11a, the second magnetic resistance element 11b, the third magnetic resistance element 11c, the fourth magnetic resistance element 11d, and the signal processing circuit 10.
[0028] In the first bridge circuit, the connection point between the first magnetic resistor 12a and the second magnetic resistor 12b is connected to the potential VS, and the connection point between the third magnetic resistor 12c and the fourth magnetic resistor 12d is connected to the ground GND. In the second bridge circuit, the connection point between the fifth magnetic resistor 12e and the sixth magnetic resistor 12f is connected to the potential VC, and the connection point between the seventh magnetic resistor 12g and the eighth magnetic resistor 12h is connected to the ground GND. In the first embodiment, the first bridge circuit is arranged in a state rotated by 45° with respect to the second bridge circuit.
[0029] In the first bridge circuit, two sinusoidal signals with phases different from each other by 180° are output from the connection point between the first magnetic resistor 12a and the third magnetic resistor 12c and the connection point between the second magnetic resistor 12b and the fourth magnetic resistor 12d. That is, the first magnetic resistor 11a outputs a first sinusoidal signal S1. The third magnetic resistor 11c outputs a second sinusoidal signal S3. The first sinusoidal signal S1 is, for example, a +sine signal. The second sinusoidal signal S3 is, for example, a -sine signal. The first sinusoidal signal S1 is offset in the θ direction as shown by the solid line a1 in FIG. 2A.
[0030] In the second bridge circuit, two cosine-wave signals with phases different from each other by 180° are output from the connection point between the sixth magnetic resistor 12f and the eighth magnetic resistor 12h and the connection point between the fifth magnetic resistor 12e and the seventh magnetic resistor 12g. That is, the second magnetic resistor 11b outputs a first cosine signal S2. The fourth magnetic resistor 11d outputs a second cosine signal S4. The first cosine signal S2 is, for example, a +cosine signal. The second cosine signal S4 is, for example, a -cosine signal. The first cosine signal S2 is offset in the θ direction like the first sine signal S1, as shown by the dashed line b1 in FIG. 2A.
[0031] Here, as described above, the first bridge circuit is arranged rotated 45° relative to the second bridge circuit, so that a sine wave signal is obtained from the first bridge circuit and a cosine wave signal is obtained from the second bridge circuit.
[0032] (2.2) Signal processing circuit The signal processing circuit 10 receives the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the fourth cosine signal, and performs signal processing on the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4.
[0033] As shown in FIG. 1, the signal processing circuit 10 includes a first amplifier 14a, a second amplifier 14c, a third amplifier 14b, a fourth amplifier 14d, a first differential amplifier 16a, a second differential amplifier 16b, a first AD converter 18a, a second AD converter 18b, an offset adjustment circuit 15, and a gain adjustment circuit 17.
[0034] The signal processing circuit 10 further includes a first Hall element 40a, a second Hall element 40b, a plurality of (two in the illustrated example) amplifiers 42a and 42b, a first comparator 44a, and a second comparator 44b. The signal processing circuit 10 further includes a first regulator 60a, a second regulator 60b, a third regulator 60c, and an arithmetic circuit 70. The signal processing circuit 10 further includes a first oscillator 80a, a second oscillator 80b, a memory 80c, and a temperature sensor 80d.
[0035] The first amplifier 14a is connected to the first magnetoresistance element 11a and amplifies the first sine signal S1 from the first magnetoresistance element 11a to a first amplified signal S5. The second amplifier 14c is connected to the second magnetoresistance element 11b and amplifies the first cosine signal S2 from the second magnetoresistance element 11b to a second amplified signal S6. The third amplifier 14b is connected to the third magnetoresistance element 11c and amplifies the second sine signal S3 from the third magnetoresistance element 11c to a third amplified signal S7. The fourth amplifier 14d is connected to the fourth magnetoresistance element 11d and amplifies the second cosine signal S4 from the fourth magnetoresistance element 11d to a fourth amplified signal S8.
[0036] The offset adjustment circuit 15 is connected to the first amplifier 14a, the second amplifier 14c, the third amplifier 14b, and the fourth amplifier 14d. More specifically, the offset adjustment circuit 15 is connected to the input stage of each of the first amplifier 14a, the second amplifier 14c, the third amplifier 14b, and the fourth amplifier 14d. The offset adjustment circuit 15 adjusts the midpoint potential difference between the first sine signal S1 and the second sine signal S3 to zero, and adjusts the midpoint potential difference between the first cosine signal S2 and the second cosine signal S4 to zero, respectively.
[0037] More specifically, in the first offset process, the offset adjustment circuit 15 outputs a first correction value A1 to the first amplifier 14a, a second correction value A2 to the second amplifier 14c, a third correction value A3 to the third amplifier 14b, and a fourth correction value A4 to the fourth amplifier 14d. The first correction value A1 is a value for correcting the first sine signal S1, the second correction value A2 is a value for correcting the first cosine signal S2, the third correction value A3 is a value for correcting the second sine signal S3, and the fourth correction value A4 is a value for correcting the second cosine signal S4.
[0038] In the first embodiment, the first correction value A1, the third correction value A3, and the fifth correction value A5 described below are each a value such that the sum of the first offset amount A101, the third offset amount A301, the first correction value A1, the third correction value A3, and the fifth correction value A5 is zero. The first offset amount A101 is the offset amount of the first sine signal S1. The third offset amount A301 is the offset amount of the second sine signal S3.
[0039] In the first embodiment, the second correction value A2, the fourth correction value A4, and the sixth correction value A6 described later are each a value such that the sum of the second offset amount A201, the fourth offset amount A401, the first amplitude A202, the second amplitude A402, the second correction value A2, the fourth correction value A4, and the sixth correction value A6 is zero. The second offset amount A201 is the offset amount of the first cosine signal S2. The fourth offset amount A401 is the offset amount of the second cosine signal S4. The first amplitude A202 is the amplitude of the second harmonic component of the first cosine signal S2. The second amplitude A402 is the amplitude of the second harmonic component of the second cosine signal S4.
[0040] In the first embodiment, as shown by the solid line a2 in Fig. 2B, the offset amount in the θ direction of the first sine signal S1 is reduced by the first offset processing of the offset adjustment circuit 15. Also, in the first embodiment, as shown by the dashed line b2 in Fig. 2B, the offset amount in the θ direction of the first cosine signal S2 is reduced by the first offset processing of the offset adjustment circuit 15.
[0041] The first differential amplifier 16a receives the first amplified signal S5 from the first amplifier 14a and the third amplified signal S7 from the third amplifier 14b. The first differential amplifier 16a differentially amplifies the first amplified signal S5 and the third amplified signal S7 to generate a first differential amplified signal S9 having double the amplitude, and outputs the first differential amplified signal S9 to the first AD converter 18a.
[0042] The second differential amplifier 16b receives the second amplified signal S6 from the second amplifier 14c and the fourth amplified signal S8 from the fourth amplifier 14d. The second differential amplifier 16b differentially amplifies the second amplified signal S6 and the fourth amplified signal S8 to generate a second differential amplified signal S10 having double the amplitude, and outputs the second differential amplified signal S10 to the first AD converter 18b.
[0043] The gain adjustment circuit 17 is connected to each of the first differential amplifier 16a and the second differential amplifier 16b. The gain adjustment circuit 17 adjusts the gains of the first differential amplifier 16a and the second differential amplifier 16b so that the amplitudes of the first differential amplified signal S9 and the second differential amplified signal S10 become predetermined amplitudes.
[0044] The first AD converter 18a receives the first differential amplified signal S9 from the first differential amplifier 16a and performs analog-to-digital conversion on the first differential amplified signal S9. More specifically, the first AD converter 18a performs analog-to-digital conversion on the first differential amplified signal S9 at a predetermined sampling period and outputs the converted first digital signal S11 to the arithmetic circuit 70.
[0045] The second AD converter 18b receives the second differentially amplified signal S10 from the second differential amplifier 16b and performs analog-to-digital conversion on the second differentially amplified signal S10. More specifically, the second AD converter 18b performs analog-to-digital conversion on the second differentially amplified signal S10 at a predetermined sampling period and outputs the converted second digital signal S12 to the arithmetic circuit 70.
[0046] The first Hall element 40a detects an external magnetic field in a direction perpendicular or parallel to the circuit board on which the signal processing circuit 10 is mounted. The first Hall element 40a detects changes in the direction and magnitude of the above-mentioned external magnetic field (rotating magnetic field) and outputs a first detection signal.
[0047] Similar to the first Hall element 40a, the second Hall element 40b detects an external magnetic field in a direction perpendicular or parallel to the circuit board on which the signal processing circuit 10 is mounted. The second Hall element 40b detects changes in the direction and magnitude of the above-mentioned external magnetic field (rotating magnetic field) and outputs a second detection signal.
[0048] The amplifier 42a amplifies the first detection signal from the first Hall element 40a, and the amplifier 42b amplifies the second detection signal from the second Hall element 40b.
[0049] The first comparator 44a converts the signal from the amplifier 42a into a first pulse signal, which is a square wave signal, and the second comparator 44b converts the signal from the amplifier 42b into a second pulse signal, which is a square wave signal.
[0050] Here, the first hall element 40a is arranged rotated 90° with respect to the second hall element 40b, so that the phase difference between the first pulse signal and the second pulse signal is 90°.
[0051] The first regulator 60 a supplies a first potential to the magnetoresistance element 12 and to an amplifier and the like in the signal processing circuit 10 that processes a signal from the magnetoresistance element 12 .
[0052] The second regulator 60b supplies a first potential to the first oscillator 80a and also to the first Hall element 40a, the second Hall element 40b, and an amplifier in the signal processing circuit 10 that processes signals from the Hall elements.
[0053] The third regulator 60c supplies a first potential to the second oscillator 80b and also supplies a potential used for the intermittent operation of the first Hall element 40a and the second Hall element 40b.
[0054] 1, the arithmetic circuit 70 includes an angle detection circuit 70a, a rotation speed detection circuit 70b, an offset correction circuit 70c, and a temperature correction circuit 70d. That is, the signal processing circuit 10 includes the offset correction circuit 70c.
[0055] The angle detection circuit 70a detects the rotation angle of the magnet from the first digital signal S11, the second digital signal S12, the first pulse signal, and the second pulse signal, and outputs a detection signal Vout. Specifically, the angle detection circuit 70a detects the rotation angle by performing an arctan operation on the first sine signal S1 from the first magnetic resistance element 11a, the first cosine signal S2 from the second magnetic resistance element 11b, the second sine signal S3 from the third magnetic resistance element 11c, and the second cosine signal S4 from the fourth magnetic resistance element 11d. In the first embodiment, the angle detection circuit 70a performs an arctan operation on the first digital signal S11 and the second digital signal S12. That is, in the first embodiment, the angle detection circuit 70a corresponds to an arctan circuit (hereinafter, also referred to as "arctan circuit 70a"). The angle detection circuit 70a outputs an angle signal representing the rotation angle after performing the arctan operation as the detection signal Vout. In this manner, the signal processing circuit 10 further includes an arctan circuit (angle detection circuit 70a) that performs an arctan calculation on the first digital signal S11 and the second digital signal S12.
[0056] Here, the first sine signal S1 is expressed as in equation (1) by ignoring the third or higher harmonic components contained in the first sine signal S1. Similarly, the first cosine signal S2 is expressed as in equation (2) by ignoring the third or higher harmonic components contained in the first cosine signal S2.
[0057] Here, θ is the magnetic field angle, A101 is the amplitude of the first sine signal S1, A201 is the amplitude of the first cosine signal S2, A102 is the amplitude of the second harmonic component included in the first sine signal S1, and A202 is the amplitude of the second harmonic component included in the first cosine signal S2. Also, A100 is the offset amount of the first sine signal S1, A200 is the offset amount of the first cosine signal S2, A1 is the first correction value, and A2 is the second correction value.
[0058]
number
[0059]
number
[0060] When the angle is calculated from the above equations (1) and (2), it is expressed as in equation (3).
[0061]
number
[0062] Here, A101=A201=A10 and A102=A202=A20 are approximated. If the first correction value A1=-A100 and the second correction value A2=A102-A200, then equation (4) is obtained.
[0063]
number
[0064] The same applies to the second sine signal S3 and the second cosine signal S4.
[0065] In this way, in the magnetic sensor 1 according to the first embodiment, even if the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4 contain harmonic components (e.g., second harmonic components), it is possible to correct the angle error. As a result, it is possible to suppress a decrease in reliability.
[0066] The rotation speed detection circuit 70b measures the rotation speed of the magnet from the first pulse signal and the second pulse signal.
[0067] The offset correction circuit 70c receives the first digital signal S11 from the first AD converter 18a and the second digital signal S12 from the second AD converter 18b. In the second offset process, the offset correction circuit 70c corrects the first digital signal S11 using the fifth correction value A5 and corrects the second digital signal S12 using the sixth correction value A6. As described above, the fifth correction value A5 is a value that makes the sum of the first offset amount A101, the third offset amount A301, the first correction value A1, the third correction value A3, and the fifth correction value A5 zero. Also, as described above, the sixth correction value A6 is a value that makes the sum of the second offset amount A201, the fourth offset amount A401, the first amplitude A202, the second amplitude A402, the second correction value A2, the fourth correction value A4, and the sixth correction value A6 zero.
[0068] In the first embodiment, the offset amount in the θ direction of the first sine signal S1 is made almost zero by the second offset process of the offset correction circuit 70c, as shown by the solid line a3 in Fig. 2C. Also, in the first embodiment, the offset amount in the θ direction of the first cosine signal S2 is made almost zero by the second offset process of the offset correction circuit 70c, as shown by the dashed line b3 in Fig. 2C.
[0069] The temperature correction circuit 70d corrects the offset of the gain (amplitude) occurring in the first digital signal S11 and the second digital signal S12 due to the temperature change of the multiple magnetic resistors 12a to 12h. For example, the temperature correction circuit 70d reads out a measurement value in the memory 80c based on temperature information input from the temperature sensor 80d, and superimposes the read measurement value on the first digital signal S11 and the second digital signal S12. The measurement value is a measurement value obtained by measuring in advance the amount of change in the first digital signal S11 and the second digital signal S12 accompanying the temperature change. The temperature correction circuit 70d also corrects the temperature characteristic of the offset of the first digital signal S11 and the second digital signal S12 by performing an arithmetic process using the temperature information input from the temperature sensor 80d and a coefficient related to the temperature dependency of the offset stored in the memory 80c.
[0070] The first oscillator 80a is an oscillation circuit for generating an internal clock used in the signal processing circuit 10. The internal clock generated by the first oscillator 80a is used for detection of the magnetoresistance element 12, the first Hall element 40a, and the second Hall element 40b. The second oscillator 80b is an oscillation circuit for generating another internal clock used in the signal processing circuit 10. Here, a first frequency of the first clock signal generated by the first oscillator 80a is higher than a second frequency of the second clock signal generated by the second oscillator 80b.
[0071] The memory 80c stores the rotation speed measured by the rotation speed detection circuit 70b, and measurement values used for correcting the temperature offset. The memory 80c also stores coefficients when the temperature dependency of the offset is approximated by a polynomial function for each of the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4 output from the magnetoresistance element 12. The memory 80c also stores coefficients when the temperature dependency of the gain (amplitude) of each of the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4 after AD conversion is approximated by a polynomial function.
[0072] (3)Characteristics Next, the characteristics of the magnetic sensor 1 according to the first embodiment will be described while comparing it with a first comparative example and a second comparative example.
[0073] (3.1) First Comparative Example A first comparative example will be described below with reference to Figures 3A and 3B. In the first comparative example, offset correction is not performed on the first sine signal S1 and the first cosine signal S2.
[0074] First, assume that the first sine signal S1 and the first cosine signal S2 do not contain harmonic components. For example, as shown in Table 1, the offset amount A100 of the first sine signal S1 is 0.001, the amplitude A101 of the first sine signal S1 is 1.001, the offset amount A200 of the first cosine signal S2 is -0.002, and the amplitude A201 of the first cosine signal S2 is 0.999. In this case, as shown in FIG. 3A, an angle error occurs except when the reference angle is the first angle or the second angle. The first angle is an angle between 90 deg and 180 deg. The second angle is an angle between 270 deg and 360 deg. In the example of FIG. 3A, the angle error is ±0.15 deg.
[0075] [Table 1]
[0076] Next, assume that the first sine signal S1 and the first cosine signal S2 contain a second harmonic component. For example, as shown in Table 2, the offset amount A100 of the first sine signal is 0.001, the amplitude A101 of the first sine signal S1 is 1.001, the offset amount A200 of the first cosine signal S2 is -0.002, the amplitude A201 of the first cosine signal S2 is 0.999, the amplitude A102 of the second harmonic component of the first sine signal S1 is 0.01, and the amplitude A202 of the second harmonic component of the first cosine signal S2 is 0.01. In this case, as shown in FIG. 3B, an angle error occurs except when the reference angle is the third angle or the fourth angle. The third angle is an angle between 90 deg and 180 deg. The fourth angle is an angle between 270 deg and 360 deg. In the example of FIG. 3B, the angle error is ±0.70 deg.
[0077] [Table 2]
[0078] In the first comparative example, even if the first sine signal S1 and the first cosine signal S2 are ideal and do not contain harmonic components (for example, second harmonic components), an angle error occurs, resulting in a problem of reduced reliability.
[0079] (3.2) Second Comparative Example A second comparative example will be described below with reference to Figures 4A and 4B. In the second comparative example, offset correction is performed on the first sine signal S1 and the first cosine signal S2 to set the offset amount to zero.
[0080] First, assume that the first sine signal S1 and the first cosine signal S2 do not contain harmonic components. For example, as shown in Table 3, the offset amount A100 of the first sine signal S1 is 0, the amplitude A101 of the first sine signal S1 is 1, the offset amount A200 of the first cosine signal S2 is 0, and the amplitude A201 of the first cosine signal S2 is 1. In this case, as shown in FIG. 4A, the angle error is zero over the entire range of the reference angle (0 deg or more and 360 deg or less).
[0081] [Table 3]
[0082] Next, assume that the first sine signal S1 and the first cosine signal S2 contain second harmonic components. For example, as shown in Table 4, the offset amount A100 of the first sine signal S1 is 0, the amplitude A101 of the first sine signal S1 is 1, the offset amount A200 of the first cosine signal S2 is 0, the amplitude A201 of the first cosine signal S2 is 1, the amplitude A102 of the second harmonic component of the first sine signal S1 is 0.01, and the amplitude A202 of the second harmonic component of the first cosine signal S2 is 0.01. In this case, since the second harmonic component remains, an angle error occurs except when the reference angle is the fifth angle, the sixth angle, or the seventh angle, as shown in FIG. 4B. The fifth angle is, for example, 0 deg. The sixth angle is, for example, 180 deg. The seventh angle is, for example, 360 deg. In the example of FIG. 4B, the angle error is ±0.57 deg.
[0083] [Table 4]
[0084] In the second comparative example, when the actual first sine signal S1 and first cosine signal S2 contain harmonic components (for example, second harmonic components), an angle error occurs, resulting in a problem of reduced reliability.
[0085] (3.3) This Example This embodiment will be described below with reference to Figures 5A and 5B. In this embodiment, offset correction is performed on the first sine signal S1 and the first cosine signal S2.
[0086] First, assume that the first sine signal S1 and the first cosine signal S2 do not contain harmonic components. For example, as shown in Table 5, the offset amount A100 of the first sine signal S1 is 0, the amplitude A101 of the first sine signal S1 is 1, the offset amount A200 of the first cosine signal S2 is 0, and the amplitude A201 of the first cosine signal S2 is 1. In this case, as shown in FIG. 4A, the angle error is zero over the entire range of the reference angle (0 deg or more and 360 deg or less).
[0087] [Table 5]
[0088] Next, assume that the first sine signal S1 and the first cosine signal S2 contain second harmonic components. For example, as shown in Table 6, the offset amount A100 of the first sine signal S1 is 0, the amplitude A101 of the first sine signal S1 is 1, the offset amount A200 of the first cosine signal S2 is 0.01, the amplitude A201 of the first cosine signal S2 is 1, the amplitude A102 of the second harmonic component of the first sine signal S1 is 0.01, and the amplitude A202 of the second harmonic component of the first cosine signal S2 is 0.01. In this case, the amplitude A202 of the second harmonic component of the first cosine signal S2 and the offset amount A200 of the first cosine signal S2 cancel each other out, so that the angle error becomes zero over the entire range of the reference angle (0 deg or more and 360 deg or less), as shown in FIG. 4B.
[0089] [Table 6]
[0090] In this embodiment, even if the first sine signal S1 and the first cosine signal S2 contain harmonic components (e.g., second harmonic components), it is possible to reduce the angle error to zero, and as a result, it is possible to suppress a decrease in reliability.
[0091] (4) Effects In the magnetic sensor 1 according to the first embodiment, the offset adjustment circuit 15 outputs the first correction value A1 to the first amplifier 14a such that the sum of the first offset amount A100, the third offset amount A300, the first correction value A1, the third correction value A3, and the fifth correction value A5 becomes zero, and outputs the third correction value A3 to the third amplifier 14b, in the first offset process. Also, in the first offset process, the offset adjustment circuit 15 outputs the second correction value A2 to the second amplifier 14c such that the sum of the second offset amount A200, the fourth offset amount A400, the first amplitude A202, the second amplitude A402, the second correction value A2, the fourth correction value A4, and the sixth correction value A6 becomes zero, and outputs the fourth correction value A4 to the fourth amplifier 14d. In addition, in the second offset process, the offset correction circuit 70c corrects the first digital signal S11 using the fifth correction value A5, and corrects the second digital signal S12 using the sixth correction value A6. This makes it possible to correct the angle error even when the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4 contain harmonic components (e.g., second harmonic components), and as a result, it becomes possible to suppress a decrease in reliability.
[0092] In the magnetic sensor 1 according to the first embodiment, the signal processing circuit 10 further includes an arctan circuit 70a. The arctan circuit 70a performs an arctan operation on the first digital signal S11 and the second digital signal S12. This makes it possible to detect the rotation angle.
[0093] (Embodiment 2) A magnetic sensor 1A according to the second embodiment will be described with reference to Fig. 6. Regarding the magnetic sensor 1A according to the second embodiment, the same components as those in the magnetic sensor 1 according to the first embodiment (see Fig. 1) are denoted by the same reference numerals and will not be described.
[0094] The magnetic sensor 1A according to the second embodiment differs from the magnetic sensor 1 according to the first embodiment in that the first to fourth amplifiers 14a to 14d are omitted. The magnetic sensor 1A according to the second embodiment also differs from the magnetic sensor 1 according to the first embodiment in that the offset adjustment circuit 15 is omitted.
[0095] As shown in FIG. 6, the magnetic sensor 1A according to the second embodiment includes a magnetoresistance element 12A and a signal processing circuit 10A.
[0096] The magnetoresistance element 12A includes a first magnetoresistance element 11a, a second magnetoresistance element 11b, a third magnetoresistance element 11c, and a fourth magnetoresistance element 11d, similar to the magnetoresistance element 12 of the first embodiment. The first magnetoresistance element 11a includes a first magnetoresistance body 12a and a third magnetoresistance body 12c. The second magnetoresistance element 11b includes a sixth magnetoresistance body 12f and an eighth magnetoresistance body 12h. The third magnetoresistance element 11c includes a second magnetoresistance body 12b and a fourth magnetoresistance body 12d. The fourth magnetoresistance element 11d includes a fifth magnetoresistance body 12e and a seventh magnetoresistance body 12g. That is, the magnetic sensor 1A according to the second embodiment includes a first magnetoresistance element 11a, a second magnetoresistance element 11b, a third magnetoresistance element 11c, a fourth magnetoresistance element 11d, and a signal processing circuit 10A.
[0097] The first magnetic resistance element 11a outputs a first sine signal S1 from the connection point between the first magnetic resistance body 12a and the third magnetic resistance body 12c. The second magnetic resistance element 11b outputs a first cosine signal S2 from the connection point between the sixth magnetic resistance body 12f and the eighth magnetic resistance body 12h. The third magnetic resistance element 11c outputs a second sine signal S3 from the connection point between the second magnetic resistance body 12b and the fourth magnetic resistance body 12d. The fourth magnetic resistance element 11d outputs a second cosine signal S4 from the connection point between the fifth magnetic resistance body 12e and the seventh magnetic resistance body 12g.
[0098] The signal processing circuit 10A receives the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4, and processes the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4. The signal processing circuit 10A includes a first differential amplifier 16a, a second differential amplifier 16b, a gain adjustment circuit 17, a first A / D converter 18a, and a second A / D converter 18b. The signal processing circuit 10A further includes a first Hall element 40a, a second Hall element 40b, a plurality of (two in the illustrated example) amplifiers 42a and 42b, a first comparator 44a, and a second comparator 44b. The signal processing circuit 10A further includes a first regulator 60a, a second regulator 60b, a third regulator 60c, and an arithmetic circuit 70. The signal processing circuit 10A further includes a first oscillator 80a, a second oscillator 80b, a memory 80c, and a temperature sensor 80d.
[0099] 6, the first differential amplifier 16a receives the first sine signal S1 and the second sine signal S3. The first differential amplifier 16a differentially amplifies the first sine signal S1 and the second sine signal S3 to generate a first differentially amplified signal S9 having double the amplitude, and outputs the first differentially amplified signal S9 to the first AD converter 18a.
[0100] 6, the first cosine signal S2 and the second cosine signal S4 are input to the second differential amplifier 16b. The second differential amplifier 16b differentially amplifies the first cosine signal S2 and the second cosine signal S4 to generate a second differentially amplified signal S10 having double the amplitude, and outputs the second differentially amplified signal S10 to the second AD converter 18b.
[0101] The first AD converter 18a receives the first differential amplified signal S9 from the first differential amplifier 16a and performs analog-to-digital conversion on the first differential amplified signal S9. More specifically, the first AD converter 18a performs analog-to-digital conversion on the first differential amplified signal S9 at a predetermined sampling period and outputs the converted first digital signal S11 to the arithmetic circuit 70.
[0102] The second AD converter 18b receives the second differentially amplified signal S10 from the second differential amplifier 16b and performs analog-to-digital conversion on the second differentially amplified signal S10. More specifically, the second AD converter 18b performs analog-to-digital conversion on the second differentially amplified signal S10 at a predetermined sampling period and outputs the converted second digital signal S12 to the arithmetic circuit 70.
[0103] As shown in FIG. 6, the arithmetic circuit 70 includes an angle detection circuit 70a, a rotation speed detection circuit 70b, an offset correction circuit 70c, and a temperature correction circuit 70d.
[0104] The offset correction circuit 70c receives the first digital signal S11 from the first AD converter 18a and the second digital signal S12 from the second AD converter 18b. The offset correction circuit 70c executes offset processing to correct the offset amounts so that the first offset amount A100, the second offset amount A200, the third offset amount A300, and the fourth offset amount A400 become zero. The first offset amount A100 is the offset amount of the first sine signal S1. The second offset amount A200 is the offset amount of the first cosine signal S2. The third offset amount A300 is the offset amount of the second sine signal S3. The fourth offset amount A400 is the offset amount of the second cosine signal S4.
[0105] In the offset processing, the offset correction circuit 70c corrects the first digital signal S11 using a first correction value A11 such that the sum of the first offset amount A100, the third offset amount A300, and the first correction value A11 becomes zero. In the offset processing, the offset correction circuit 70c corrects the second digital signal S12 using a second correction value A12 such that the sum of the second offset amount A200, the fourth offset amount A400, the first amplitude A202, the second amplitude A402, and the second correction value A12 becomes zero. The first amplitude A202 is the amplitude of the second harmonic component of the first cosine signal S2. The second amplitude A402 is the amplitude of the second harmonic component of the second cosine signal S4.
[0106] In the magnetic sensor 1A according to the second embodiment, the offset correction circuit 70c corrects the first digital signal S11 using the first correction value A11, and corrects the second digital signal S12 using the second correction value A12. This makes it possible to correct the angle error even when the first sine signal S1, the first cosine signal S2, the second sine signal S3, and the second cosine signal S4 contain harmonic components (e.g., second harmonic components), and as a result, it becomes possible to suppress a decrease in reliability.
[0107] (Embodiment 3) A magnetic sensor 1B according to embodiment 3 will be described with reference to Fig. 7. Regarding the magnetic sensor 1B according to embodiment 3, the same components as those of the magnetic sensor 1 according to embodiment 1 (see Fig. 1) are denoted by the same reference numerals and description thereof will be omitted.
[0108] The magnetic sensor 1B according to the third embodiment differs from the magnetic sensor 1 according to the first embodiment in that the magnetic resistance element 12B is composed of the first magnetic resistance element 11a and the second magnetic resistance element 11b. The magnetic sensor 1B according to the third embodiment also differs from the magnetic sensor 1 according to the first embodiment in that the third amplifier 14b and the fourth amplifier 14d are omitted. The magnetic sensor 1A according to the third embodiment also differs from the magnetic sensor 1 according to the first embodiment in that amplifiers 16c and 16d are provided instead of the first differential amplifier 16a and the second differential amplifier 16b.
[0109] As shown in FIG. 7, the magnetic sensor 1B according to the third embodiment includes a magnetoresistance element 12B and a signal processing circuit 10B.
[0110] The magnetoresistance element 12B has a first magnetoresistance element 11a and a second magnetoresistance element 11b. The first magnetoresistance element 11a includes a first magnetoresistance body 12a and a third magnetoresistance body 12c. The second magnetoresistance element 11b includes a sixth magnetoresistance body 12f and an eighth magnetoresistance body 12h. That is, the magnetic sensor 1B according to the third embodiment includes the first magnetoresistance element 11a, the second magnetoresistance element 11b, and a signal processing circuit 10B.
[0111] The first magnetic resistance element 11a outputs a first sine signal (sine signal) S1 from a connection point between the first magnetic resistance body 12a and the third magnetic resistance body 12c. The second magnetic resistance element 11b outputs a first cosine signal (cosine signal) S2 from a connection point between the sixth magnetic resistance body 12f and the eighth magnetic resistance body 12h.
[0112] The signal processing circuit 10B receives the first sine signal S1 and the first cosine signal S2 and processes the first sine signal S1 and the first cosine signal S2. The signal processing circuit 10B includes a first amplifier 14a, a second amplifier 14c, an offset adjustment circuit 15, a first AD converter 18a, and a second AD converter 18b. The signal processing circuit 10B further includes a plurality of (two in the illustrated example) amplifiers 16c and 16d, and a gain adjustment circuit 17. The signal processing circuit 10B further includes a first hall element 40a, a second hall element 40b, a plurality of (two in the illustrated example) amplifiers 42a and 42b, a first comparator 44a, and a second comparator 44b. The signal processing circuit 10B further includes a first regulator 60a, a second regulator 60b, a third regulator 60c, and an arithmetic circuit 70. The signal processing circuit 10B further includes a first oscillator 80a, a second oscillator 80b, a memory 80c, and a temperature sensor 80d.
[0113] The first amplifier 14a amplifies the first sine signal (sine signal) S1 from the first magnetoresistance element 11a to a first amplified signal S5. The second amplifier 14c amplifies the first cosine signal (cosine signal) S2 from the second magnetoresistance element 11b to a second amplified signal S6.
[0114] The amplifier 16c amplifies the first amplified signal S5 from the first amplifier 14a to a first analog signal S13 and outputs the first analog signal S13 to the first AD converter 18a. The amplifier 16d amplifies the second amplified signal S6 from the second amplifier 14c to a second analog signal S14 and outputs the second analog signal S14 to the second AD converter 18b.
[0115] The first AD converter 18a receives the first analog signal S13 from the amplifier 16c and performs analog-to-digital conversion on the first analog signal S13. That is, the first AD converter 18a receives the first analog signal S13 based on the first amplified signal S5 from the first amplifier 14a and performs analog-to-digital conversion on the first analog signal S13.
[0116] The second AD converter 18b receives the second analog signal S14 from the amplifier 16d and performs analog-to-digital conversion on the second analog signal S14. That is, the second AD converter 18b receives the second analog signal S14 based on the second amplified signal S6 from the second amplifier 14c and performs analog-to-digital conversion on the second analog signal S14.
[0117] The offset adjustment circuit 15 is connected to the first amplifier 14a and the second amplifier 14c. The offset adjustment circuit 15 executes a first offset process for correcting the first offset amount A100 and the second offset amount A200. In the first offset process, the offset adjustment circuit 15 outputs a first correction value A21 for correcting the first sine signal S1 to the first amplifier 14a, and outputs a second correction value A22 for correcting the first cosine signal S2 to the second amplifier 14c. The first correction value A21 is a value such that the sum of the first offset amount A100, the first correction value A21, and a third correction value A23 described later becomes zero. The first offset amount A100 is an offset amount of the first sine signal S1. The second correction value A22 is a value such that the sum of the second offset amount A200, the first amplitude A202, the second correction value A22, and a fourth correction value A24 described later becomes zero. The second offset amount A200 is the offset amount of the first cosine signal S2. The first amplitude A202 is the amplitude of the second harmonic component of the first cosine signal S2.
[0118] As shown in FIG. 7, the arithmetic circuit 70 includes an angle detection circuit 70a, a rotation speed detection circuit 70b, an offset correction circuit 70c, and a temperature correction circuit 70d.
[0119] The offset correction circuit 70c receives the first digital signal S11 from the first AD converter 18a and the second digital signal S12 from the second AD converter 18b. The offset correction circuit 70c executes a second offset process to correct the first offset amount A100 and the second offset amount A200.
[0120] In the second offset process, the offset correction circuit 70c corrects the first digital signal S11 using the third correction value A23 and corrects the second digital signal S12 using the fourth correction value A24. The third correction value A23 is a value that makes the sum of the first offset amount A100, the first correction value A21, and the third correction value A23 zero. The fourth correction value A24 is a value that makes the sum of the second offset amount A200, the first amplitude A202, the second correction value A22, and the fourth correction value A24 zero.
[0121] In the magnetic sensor 1B according to the third embodiment, the offset adjustment circuit 15 executes the first offset processing, and the offset correction circuit 70c executes the second offset processing. This makes it possible to correct the angle error even when the first sine signal S1 and the first cosine signal S2 contain harmonic components (e.g., second-order harmonic components), and as a result, it becomes possible to suppress a decrease in reliability.
[0122] (Embodiment 4) A magnetic sensor 1C according to embodiment 4 will be described with reference to Fig. 8. Regarding the magnetic sensor 1C according to embodiment 4, the same components as those of the magnetic sensor 1B according to embodiment 3 (see Fig. 7) are denoted by the same reference numerals and will not be described.
[0123] The magnetic sensor 1C according to the fourth embodiment differs from the magnetic sensor 1B according to the third embodiment in that the first amplifier 14a and the second amplifier 14c are omitted. The magnetic sensor 1C according to the fourth embodiment also differs from the magnetic sensor 1B according to the third embodiment in that the offset adjustment circuit 15 is omitted.
[0124] The magnetic sensor 1C according to the fourth embodiment includes a magnetoresistance element 12C and a signal processing circuit 10C, as shown in Fig. 8. The magnetoresistance element 12C has a similar configuration to the above-mentioned magnetoresistance element 12B.
[0125] The signal processing circuit 10C receives a first sine signal (sine signal) S1 and a first cosine signal (cosine signal) S2, and performs signal processing on the first sine signal S1 and the first cosine signal S2. As shown in FIG. 8, the signal processing circuit 10B has a first A / D converter 18a and a second A / D converter 18b. The signal processing circuit 10C further has a plurality of (two in the illustrated example) amplifiers 19a and 19b, and a gain adjustment circuit 17. The signal processing circuit 10C further has a first hall element 40a, a second hall element 40b, a plurality of (two in the illustrated example) amplifiers 42a and 42b, a first comparator 44a, and a second comparator 44b. The signal processing circuit 10C further includes a first regulator 60a, a second regulator 60b, a third regulator 60c, and an arithmetic circuit 70. The signal processing circuit 10C further includes a first oscillator 80a, a second oscillator 80b, a memory 80c, and a temperature sensor 80d.
[0126] The amplifier 19a amplifies the first sine signal S1 from the first magnetoresistance element 11a to a first amplified signal S5. The amplifier 19b amplifies the first cosine signal S2 from the second magnetoresistance element 11b to a second amplified signal S6.
[0127] The first AD converter 18a receives the first amplified signal S5 and performs analog-to-digital conversion on the first amplified signal S5. That is, the first AD converter 18a receives the first analog signal (first amplified signal S5) based on the first sine signal S1 and performs analog-to-digital conversion on the first analog signal.
[0128] The second AD converter 18b receives the second amplified signal S6 and performs analog-to-digital conversion on the second amplified signal S6. That is, the second AD converter 18b receives the second analog signal (the second amplified signal S6) based on the first cosine signal S2 and performs analog-to-digital conversion on the first analog signal.
[0129] As shown in FIG. 8, the arithmetic circuit 70 includes an angle detection circuit 70a, a rotation speed detection circuit 70b, an offset correction circuit 70c, and a temperature correction circuit 70d.
[0130] The offset correction circuit 70c receives the first digital signal S11 from the first AD converter 18a and the second digital signal S12 from the second AD converter 18b. The offset correction circuit 70c executes offset processing to correct the first offset amount A100 and the second offset amount A200.
[0131] In the offset processing, the offset correction circuit 70c corrects the first digital signal S11 using a first correction value A31, and corrects the second digital signal S12 using a second correction value A32. The first correction value A31 is a correction value that makes the sum of the first offset amount A100 and the first correction value A41 zero. The second correction value A32 is a correction value that makes the sum of the second offset amount A200, the first amplitude A202, and the second correction value A22 zero.
[0132] The first offset amount A100 is the offset amount of the first sine signal S1. The second offset amount A200 is the offset amount of the first cosine signal S2. The first amplitude A202 is the amplitude of the second harmonic component of the first cosine signal S2.
[0133] In the magnetic sensor 1C according to the fourth embodiment, the offset correction circuit 70c also executes offset processing, which makes it possible to correct the angle error even when the first sine signal S1 and the first cosine signal S2 contain harmonic components (e.g., second-order harmonic components), thereby making it possible to suppress deterioration in reliability.
[0134] (Embodiment 5) A magnetic sensor 1D according to embodiment 5 will be described with reference to Fig. 9. Regarding the magnetic sensor 1D according to embodiment 5, the same components as those of the magnetic sensor 1B according to embodiment 3 (see Fig. 7) are denoted by the same reference numerals and will not be described.
[0135] The magnetic sensor 1D according to the fifth embodiment differs from the magnetic sensor 1B according to the third embodiment in that the first amplifier 14a and the second amplifier 14c are omitted. The magnetic sensor 1D according to the fifth embodiment also differs from the magnetic sensor 1B according to the third embodiment in that an offset / gain adjustment circuit 17a is provided instead of the offset adjustment circuit 15 and the gain adjustment circuit 17.
[0136] A magnetic sensor 1D according to the fifth embodiment includes a magnetoresistance element 12D and a signal processing circuit 10D, as shown in Fig. 9. The magnetoresistance element 12D has a similar configuration to the above-mentioned magnetoresistance element 12B.
[0137] 9, the signal processing circuit 10D includes a plurality of (two in the illustrated example) amplifiers 19a and 19b, an offset / gain adjustment circuit 17a, a first A / D converter 18a, and a second A / D converter 18b. The signal processing circuit 10D further includes a first Hall element 40a, a second Hall element 40b, a plurality of (two in the illustrated example) amplifiers 42a and 42b, a first comparator 44a, and a second comparator 44b. The signal processing circuit 10D further includes a first regulator 60a, a second regulator 60b, a third regulator 60c, and an arithmetic circuit 70. The signal processing circuit 10D further includes a first oscillator 80a, a second oscillator 80b, a memory 80c, and a temperature sensor 80d.
[0138] The amplifier (first amplifier) 19a amplifies the first sine signal S1 from the first magnetoresistance element 11a to a first amplified signal S5. The amplifier (second amplifier) 19b amplifies the first cosine signal S2 from the second magnetoresistance element 11b to a second amplified signal S6.
[0139] The offset / gain adjustment circuit 17a has a function as the offset adjustment circuit 15 and a function as the gain adjustment circuit 17. The offset / gain adjustment circuit 17a is connected to a plurality of amplifiers 19a, 19b. The offset / gain adjustment circuit 17a outputs a first correction value A41 to the amplifier 19a, and outputs a second correction value A42 to the amplifier 19b. In addition, the offset / gain adjustment circuit 17a adjusts the gain of each of the amplifiers 19a, 19b so that the amplitude of the amplified signal output from each of the amplifiers 19a, 19b becomes a predetermined amplitude.
[0140] As shown in FIG. 9, the arithmetic circuit 70 includes an angle detection circuit 70a, a rotation speed detection circuit 70b, an offset correction circuit 70c, and a temperature correction circuit 70d.
[0141] The offset correction circuit 70c receives the first digital signal S11 from the first AD converter 18a and the second digital signal S12 from the second AD converter 18b. The offset correction circuit 70c executes a second offset process to correct the first offset amount A100 and the second offset amount A200.
[0142] In the second offset process, the offset correction circuit 70c corrects the first digital signal S11 using the third correction value A43, and corrects the second digital signal S12 using the fourth correction value A44. The third correction value A43 is a value that makes the sum of the first offset amount A100, the first correction value A41, and the third correction value A43 zero. The fourth correction value A44 is a value that makes the sum of the second offset amount A200, the first amplitude A202, the second correction value A42, and the fourth correction value A44 zero.
[0143] In the magnetic sensor 1D according to the fifth embodiment, the offset / gain adjustment circuit 17a executes the first offset process, and the offset correction circuit 70c executes the second offset process. This makes it possible to correct the angle error even when the first sine signal S1 and the first cosine signal S2 contain harmonic components (e.g., second-order harmonic components), and as a result, it becomes possible to suppress a decrease in reliability.
[0144] (Aspect) The present specification discloses the following aspects.
[0145] A magnetic sensor (1) according to a first embodiment includes a first magnetic resistance element (11a), a second magnetic resistance element (11b), a third magnetic resistance element (11c), a fourth magnetic resistance element (11d), and a signal processing circuit (10). The first magnetic resistance element (11a) outputs a first sine signal (S1). The second magnetic resistance element (11b) outputs a first cosine signal (S2). The third magnetic resistance element (11c) outputs a second sine signal (S3). The fourth magnetic resistance element (11d) outputs a second cosine signal (S4). The signal processing circuit (10) receives the first sine signal (S1), the first cosine signal (S2), the second sine signal (S3), and the second cosine signal (S4) and processes the first sine signal (S1), the first cosine signal (S2), the second sine signal (S3), and the second cosine signal (S4). The signal processing circuit (10) includes a first amplifier (14a), a second amplifier (14c), a third amplifier (14b), a fourth amplifier (14d), a first differential amplifier (16a), a second differential amplifier (16b), a first AD converter (18a), a second AD converter (18b), an offset adjustment circuit (15), and an offset correction circuit (70c). The first amplifier (14a) amplifies the first sine signal (S1). The second amplifier (14c) amplifies the first cosine signal (S2). The third amplifier (14b) amplifies the second sine signal (S3). The fourth amplifier (14d) amplifies the second cosine signal (S4). The first differential amplifier (16a) receives the first amplified signal (S5) from the first amplifier (14a) and the third amplified signal (S7) from the third amplifier (14b). The second differential amplifier (16b) receives the second amplified signal (S6) from the second amplifier (14c) and the fourth amplified signal (S8) from the fourth amplifier (14d). The first AD converter (18a) receives the first differential amplified signal (S9) from the first differential amplifier (16a) and performs analog-to-digital conversion of the first differential amplified signal (S9). The second AD converter (18b) receives the second differential amplified signal (S10) from the second differential amplifier (16b) and performs analog-to-digital conversion of the second differential amplified signal (S10). The offset adjustment circuit (15) is connected to the first amplifier (14a), the second amplifier (14c), the third amplifier (14b), and the fourth amplifier (14d).The offset correction circuit (70c) receives the first digital signal (S11) from the first AD converter (18a) and the second digital signal (S12) from the second AD converter (18b). In the first offset processing, the offset adjustment circuit (15) outputs a first correction value (A1) for correcting the first sine signal (S1) to the first amplifier (14a), outputs a second correction value (A2) for correcting the first cosine signal (S2) to the second amplifier (14c), outputs a third correction value (A3) for correcting the second sine signal (S3) to the third amplifier (14b), and outputs a fourth correction value (A4) for correcting the second cosine signal (S4) to the fourth amplifier (14d). In the second offset process, the offset correction circuit (70c) corrects the first digital signal (S11) using a fifth correction value (A5) and corrects the second digital signal (S12) using a sixth correction value (A6). The first correction value (A1), the third correction value (A3), and the fifth correction value (A5) are each a value such that the sum of the first offset amount (A100) which is the offset amount of the first sine signal (S1), the third offset amount (A300) which is the offset amount of the second sine signal (S3), the first correction value (A1), the third correction value (A3), and the fifth correction value (A5) becomes zero. Each of the second correction value (A2), the fourth correction value (A4), and the sixth correction value (A6) is a value such that the sum of the second offset amount (A200) which is the offset amount of the first cosine signal (S2), the fourth offset amount (A400) which is the offset amount of the second cosine signal (S4), the first amplitude (A202) which is the amplitude of the second harmonic component of the first cosine signal (S2), the second amplitude (A402) which is the amplitude of the second harmonic component of the second cosine signal (S4), the second correction value (A2), the fourth correction value (A4), and the sixth correction value (A6) is zero.
[0146] According to this aspect, the offset adjustment circuit (15) executes the first offset processing, and the offset correction circuit (70c) executes the second offset processing. This makes it possible to correct the angle error even when the first sine signal (S1), the first cosine signal (S2), the second sine signal (S3), and the second cosine signal (S4) contain harmonic components (e.g., second harmonic components), and as a result, it becomes possible to suppress a decrease in reliability.
[0147] A magnetic sensor (1A) according to a second aspect includes a first magnetic resistance element (11a), a second magnetic resistance element (11b), a third magnetic resistance element (11c), a fourth magnetic resistance element (11d), and a signal processing circuit (10A). The first magnetic resistance element (11a) outputs a first sine signal (S1). The second magnetic resistance element (11b) outputs a first cosine signal (S2). The third magnetic resistance element (11c) outputs a second sine signal (S3). The fourth magnetic resistance element (11d) outputs a second cosine signal (S4). The signal processing circuit (10A) receives the first sine signal (S1), the first cosine signal (S2), the second sine signal (S3), and the second cosine signal (S4) and processes the first sine signal (S1), the first cosine signal (S2), the second sine signal (S3), and the second cosine signal (S4). The signal processing circuit (10A) includes a first differential amplifier (16a), a second differential amplifier (16b), a first AD converter (18a), a second AD converter (18b), and an offset correction circuit (70c). The first differential amplifier (16a) receives the first sine signal (S1) and the second sine signal (S3). The second differential amplifier (16b) receives the first cosine signal (S2) and the second cosine signal (S4). The first AD converter (18a) receives the first differential amplified signal (S9) from the first differential amplifier (16a) and performs analog-to-digital conversion on the first differential amplified signal (S9). The second AD converter (18b) receives the second differential amplified signal (S10) from the second differential amplifier (16b) and performs analog-to-digital conversion on the second differential amplified signal (S10). The offset correction circuit (70c) receives the first digital signal (S11) from the first AD converter (18a) and the second digital signal (S12) from the second AD converter (18b). In the offset processing, the offset correction circuit (70c) corrects the first digital signal (S11) using a first correction value (A11) such that the sum of a first offset amount (A100) which is the offset amount of the first sine signal (S1), a third offset amount (A300) which is the offset amount of the second sine signal (S3), and the first correction value (A11) becomes zero.The offset correction circuit (70c) corrects the second digital signal (S12) using a second correction value (A12) such that the sum of a second offset amount (A200) which is the offset amount of the first cosine signal (S2), a fourth offset amount (A400) which is the offset amount of the second cosine signal (S4), a first amplitude (A202) which is the amplitude of the second harmonic component of the first cosine signal (S2), a second amplitude (A402) which is the amplitude of the second harmonic component of the second cosine signal (S4), and the second correction value (A12) becomes zero.
[0148] According to this aspect, by the offset correction circuit (70c) performing offset processing, it becomes possible to correct the angle error even when the first sine signal (S1), the first cosine signal (S2), the second sine signal (S3), and the second cosine signal (S4) contain harmonic components (e.g., second harmonic components), and as a result, it becomes possible to suppress a decrease in reliability.
[0149] A magnetic sensor (1B; 1D) according to a third embodiment includes a first magnetic resistance element (11a), a second magnetic resistance element (11b), and a signal processing circuit (10B; 10D). The first magnetic resistance element (11a) outputs a sine signal (S1). The second magnetic resistance element (11b) outputs a cosine signal (S2). The signal processing circuit (10B; 10D) receives the sine signal (S1) and the cosine signal (S2) and performs signal processing on the sine signal (S1) and the cosine signal (S2). The signal processing circuit (10B; 10D) includes a first amplifier (14a; 19a), a second amplifier (14c; 19b), a first AD converter (18a), a second AD converter (18b), an offset adjustment circuit (15; 17a), and an offset correction circuit (70c). The first amplifier (14a; 19a) amplifies the sine signal (S1). The second amplifier (14c; 19b) amplifies the cosine signal (S2). The first AD converter (18a) receives a first analog signal (S13) based on the first amplified signal (S5) from the first amplifier (14a; 19a) and performs analog-to-digital conversion on the first analog signal (S13). The second AD converter (18b) receives a second analog signal (S14) based on the second amplified signal (S6) from the second amplifier (14c; 19b) and performs analog-to-digital conversion on the second analog signal (S14). The offset adjustment circuit (15; 17a) is connected to the first amplifier (14a; 19a) and the second amplifier (14c; 19b). The offset correction circuit (70c) receives the first digital signal (S11) from the first AD converter (18a) and the second digital signal (S12) from the second AD converter (18b). In the first offset process, the offset adjustment circuit (15) outputs a first correction value (A21; A41) for correcting the sine signal (S1) to the first amplifier (14a; 19a) and outputs a second correction value (A22; A42) for correcting the cosine signal (S2) to the second amplifier (14c; 19b). In the second offset process, the offset correction circuit (70c) corrects the first digital signal (S11) using a third correction value (A23; A43) and corrects the second digital signal (S12) using a fourth correction value (A24; A44).Each of the first correction value (A21; A41) and the third correction value (A23; A43) is a value that makes the sum of the first offset amount (A100), which is the offset amount of the sine signal (S1), the first correction value (A21; A41), and the third correction value (A23; A43) zero. Each of the second correction value (A22; A42) and the fourth correction value (A24; A44) is a value that makes the sum of the second offset amount (A200), which is the offset amount of the cosine signal (S2), the amplitude (A202) of the second harmonic component of the cosine signal (S2), the second correction value (A22; A42), and the fourth correction value (A24; A44) zero.
[0150] According to this aspect, the offset adjustment circuit (15) executes the first offset processing, and the offset correction circuit (70c) executes the second offset processing. This makes it possible to correct the angle error even when the sine signal (S1) and the cosine signal (S2) contain harmonic components (e.g., second harmonic components), and as a result, it is possible to suppress a decrease in reliability.
[0151] A magnetic sensor (1C) according to a fourth embodiment includes a first magnetic resistance element (11a), a second magnetic resistance element (11b), and a signal processing circuit (10C). The first magnetic resistance element (11a) outputs a sine signal (S1). The second magnetic resistance element (11b) outputs a cosine signal (S2). The signal processing circuit (10B) receives the sine signal (S1) and the cosine signal (S2) and processes the sine signal (S1) and the cosine signal (S2). The signal processing circuit (10B) includes a first AD converter (18a), a second AD converter (18b), and an offset correction circuit (70c). The first AD converter (18a) receives a first analog signal (S5) based on the sine signal (S1) and performs analog-to-digital conversion of the first analog signal (S5). The second AD converter (18b) receives a second analog signal (S6) based on the cosine signal (S2) and performs analog-to-digital conversion on the second analog signal (S6). The offset correction circuit (70c) receives a first digital signal (S11) from the first AD converter (18a) and a second digital signal (S12) from the second AD converter (18b). In the offset process, the offset correction circuit (70c) corrects the first digital signal (S11) using a first correction value (A31) such that the sum of a first offset amount (A100) that is the offset amount of the sine signal (S1) and a first correction value (A31) for correcting the sine signal (S1) becomes zero. In the offset processing, the offset correction circuit (70c) corrects the second digital signal (S12) using a second correction value (A32) such that the sum of a second offset amount (A200), which is the offset amount of the cosine signal (S2), the amplitude (A202) of the second harmonic component of the cosine signal (S2), and the second correction value (A32) for correcting the cosine signal (S2), becomes zero.
[0152] According to this aspect, by performing the offset processing by the offset correction circuit (70c), it becomes possible to correct the angle error even when the sine signal (S1) and the cosine signal (S2) contain harmonic components (e.g., second harmonic components). As a result, it becomes possible to suppress a decrease in reliability.
[0153] In the magnetic sensor (1) according to the fifth aspect, in any one of the first to fourth aspects, the signal processing circuit (10) further includes an arctan circuit (70a). The arctan circuit (70a) performs an arctan operation on the first digital signal (S11) and the second digital signal (S12).
[0154] According to this aspect, it is possible to detect the rotation angle.
[0155] The configuration according to the fourth aspect is not essential to the magnetic sensors (1; 1A; 1B; 1C; 1D) and can be omitted as appropriate. [Explanation of symbols]
[0156] 1,1A,1B,1C,1D Magnetic Sensor 10, 10A, 10B, 10C, 10D Signal processing circuit 11a First magnetoresistance element 11b Second magnetoresistance element 11c Third magnetoresistance element 11d Fourth magnetoresistance element 14a First amplifier 14b Third amplifier 14c Second Amplifier 14d 4th amplifier 15 Offset adjustment circuit 16a First differential amplifier 16b Second Differential Amplifier 17a Offset / gain adjustment circuit (offset adjustment circuit) 18a First AD converter 18b 2nd AD converter 19a Amplifier (first amplifier) 19b Amplifier (second amplifier) 70c Offset correction circuit A1, A11, A21, A31, A41 First correction value A2, A12, A22, A32, A42 Second correction value A3, A23, A43 3rd correction value A4, A24, A44 4th correction value A5 5th correction value A6 6th correction value A100 1st offset amount A200 Second offset amount A202 1st amplitude A300 3rd offset amount A400 4th offset amount A402 Second Amplitude S1 1st sine signal (sine signal) S2 1st cosine signal (cosine signal) S3 2nd sine signal S4 2nd cosine signal S5 1st amplified signal S6 Second amplified signal S7 3rd amplified signal S8 4th amplified signal S9 First differential amplification signal S10 Second differential amplification signal S11 1st digital signal S12 Second digital signal
Claims
1. a first magnetoresistance element that outputs a first sinusoidal signal; a second magnetoresistance element that outputs a first cosine signal; a third magnetoresistance element that outputs a second sinusoidal signal; a fourth magnetoresistance element that outputs a second cosine signal; a signal processing circuit which receives the first sine signal, the first cosine signal, the second sine signal, and the second cosine signal and performs signal processing on the first sine signal, the first cosine signal, the second sine signal, and the second cosine signal, The signal processing circuit includes: a first amplifier for amplifying the first sinusoidal signal; a second amplifier for amplifying the first cosine signal; a third amplifier for amplifying the second sinusoidal signal; a fourth amplifier for amplifying the second cosine signal; a first differential amplifier to which the first amplified signal from the first amplifier and the third amplified signal from the third amplifier are input; a second differential amplifier to which the second amplified signal from the second amplifier and the fourth amplified signal from the fourth amplifier are input; a first AD converter that receives the first differentially amplified signal from the first differential amplifier and performs analog-to-digital conversion on the first differentially amplified signal; a second AD converter that receives the second differentially amplified signal from the second differential amplifier and performs analog-to-digital conversion on the second differentially amplified signal; an offset adjustment circuit connected to the first amplifier, the second amplifier, the third amplifier, and the fourth amplifier; an offset correction circuit to which a first digital signal from the first AD converter and a second digital signal from the second AD converter are input, The offset adjustment circuit, in the first offset processing, outputting a first correction value for correcting the first sine signal to the first amplifier; outputting a second correction value for correcting the first cosine signal to the second amplifier; outputting a third correction value for correcting the second sine signal to the third amplifier; outputting a fourth correction value for correcting the second cosine signal to the fourth amplifier; In the second offset processing, the offset correction circuit correcting the first digital signal using a fifth correction value; correcting the second digital signal using a sixth correction value; each of the first correction value, the third correction value, and the fifth correction value is a value such that a sum of a first offset amount which is an offset amount of the first sine signal, a third offset amount which is an offset amount of the second sine signal, the first correction value, the third correction value, and the fifth correction value becomes zero; each of the second correction value, the fourth correction value, and the sixth correction value is a value such that a sum of a second offset amount which is an offset amount of the first cosine signal, a fourth offset amount which is an offset amount of the second cosine signal, a first amplitude which is an amplitude of a second harmonic component of the first cosine signal, a second amplitude which is an amplitude of a second harmonic component of the second cosine signal, the second correction value, the fourth correction value, and the sixth correction value becomes zero; Magnetic sensor.
2. a first magnetoresistance element that outputs a first sinusoidal signal; a second magnetoresistance element that outputs a first cosine signal; a third magnetoresistance element that outputs a second sinusoidal signal; a fourth magnetoresistance element that outputs a second cosine signal; a signal processing circuit which receives the first sine signal, the first cosine signal, the second sine signal, and the second cosine signal and performs signal processing on the first sine signal, the first cosine signal, the second sine signal, and the second cosine signal, The signal processing circuit includes: a first differential amplifier to which the first sine signal and the second sine signal are input; a second differential amplifier to which the first cosine signal and the second cosine signal are input; a first AD converter that receives the first differentially amplified signal from the first differential amplifier and performs analog-to-digital conversion on the first differentially amplified signal; a second AD converter that receives the second differentially amplified signal from the second differential amplifier and performs analog-to-digital conversion on the second differentially amplified signal; an offset correction circuit to which a first digital signal from the first AD converter and a second digital signal from the second AD converter are input, In the offset processing, the offset correction circuit correcting the first digital signal using a first correction value such that a sum of a first offset amount, which is an offset amount of the first sine signal, a third offset amount, which is an offset amount of the second sine signal, and a first correction value becomes zero; correcting the second digital signal using the second correction value such that a sum of a second offset amount which is an offset amount of the first cosine signal, a fourth offset amount which is an offset amount of the second cosine signal, a first amplitude which is an amplitude of a second harmonic component of the first cosine signal, a second amplitude which is an amplitude of a second harmonic component of the second cosine signal, and the second correction value becomes zero; Magnetic sensor.
3. A first magnetoresistance element that outputs a sine signal; A second magnetoresistance element that outputs a cosine signal; a signal processing circuit to which the sine signal and the cosine signal are input and which performs signal processing on the sine signal and the cosine signal, The signal processing circuit includes: a first amplifier for amplifying the sinusoidal signal; a second amplifier for amplifying the cosine signal; a first AD converter that receives a first analog signal based on the first amplified signal from the first amplifier and performs analog-to-digital conversion of the first analog signal; a second AD converter that receives a second analog signal based on the second amplified signal from the second amplifier and performs analog-to-digital conversion on the second analog signal; an offset adjustment circuit connected to the first amplifier and the second amplifier; an offset correction circuit to which a first digital signal from the first AD converter and a second digital signal from the second AD converter are input, The offset adjustment circuit, in the first offset processing, outputting a first correction value for correcting the sine signal to the first amplifier; outputting a second correction value for correcting the cosine signal to the second amplifier; In the second offset processing, the offset correction circuit correcting the first digital signal using a third correction value; correcting the second digital signal using a fourth correction value; each of the first correction value and the third correction value is a value such that a sum of a first offset amount, which is an offset amount of the sine signal, the first correction value, and the third correction value becomes zero; each of the second correction value and the fourth correction value is a value such that a sum of a second offset amount, which is an offset amount of the cosine signal, an amplitude of a second harmonic component of the cosine signal, the second correction value, and the fourth correction value becomes zero; Magnetic sensor.
4. A first magnetoresistance element that outputs a sine signal; A second magnetoresistance element that outputs a cosine signal; a signal processing circuit to which the sine signal and the cosine signal are input and which performs signal processing on the sine signal and the cosine signal, The signal processing circuit includes: a first AD converter that receives a first analog signal based on the sine signal and performs analog-to-digital conversion on the first analog signal; a second AD converter that receives a second analog signal based on the cosine signal and performs analog-to-digital conversion on the second analog signal; an offset correction circuit to which a first digital signal from the first AD converter and a second digital signal from the second AD converter are input, In the offset processing, the offset correction circuit correcting the first digital signal using a first correction value such that a sum of a first offset amount, which is an offset amount of the sine signal, and a first correction value for correcting the sine signal becomes zero; correcting the second digital signal using a second correction value such that a sum of a second offset amount, which is an offset amount of the cosine signal, an amplitude of a second harmonic component of the cosine signal, and a second correction value for correcting the cosine signal becomes zero; Magnetic sensor.
5. The signal processing circuit includes: an arctan circuit that performs an arctan operation on the first digital signal and the second digital signal; The magnetic sensor according to any one of claims 1 to 4.
Citation Information
Patent Citations
Magnetic sensor
JP2019124505A
