An all integrated hall angle sensor circuit and implementation method

By employing techniques such as four-phase rotating current modulation and correlated dual sampling demodulation, the offset and ripple problems of the Hall angle sensor are eliminated, thereby improving the sensor's accuracy and precision.

CN117589056BActive Publication Date: 2026-11-20NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311436852.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2026-11-20
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

Existing fully integrated Hall angle sensor circuits suffer from large residual offset of Hall devices and large output ripple of front-end analog circuits, resulting in poor angle sensor accuracy.

Method used

The front-end analog circuit consists of a four-phase rotating current modulator, a differential amplifier, a correlated double sampling demodulator and a secondary amplifier, and X and Y axis sample-and-hold circuits. Combined with a high-precision analog-to-digital converter and the CORDIC algorithm, it eliminates offset and ripple through four-phase rotating modulation, differential amplification, correlated double sampling demodulation and secondary amplification.

Benefits of technology

This greatly eliminates the residual offset of the Hall angle sensor, reduces output ripple, and improves the accuracy and precision of the sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117589056B_ABST
    Figure CN117589056B_ABST
Patent Text Reader

Abstract

The application discloses a kind of integrated hall angle sensor circuit and implementation method, it is related to magnetic sensor technical field, including front-end analog circuit, including four-phase rotating current modulator, differential difference amplifier, relevant double sampling demodulation and secondary amplifier, X and Y axis sample holder;Back-end digital circuit, including angle extraction module and clock generator.The hall angle sensor circuit proposed in the application, on the one hand, two times adopts the operation of eliminating bias and has very low residual bias, on the other hand, compared with the scheme that traditional chopping and low-pass filtering are combined to eliminate amplifier bias, the X and Y axis direction hall voltage signal output by front-end analog circuit has very low output ripple, can realize very high precision, solve the problem that the current hall angle sensor residual bias is large, front-end analog circuit output ripple is large, precision is poor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of magnetic sensor technology, and in particular to a fully integrated Hall angle sensor circuit and its implementation method. Background Technology

[0002] Hall angle sensors are common displacement sensors that convert changes in the angle of a measured object into electrical signals. They are widely used in automotive, automation, military engineering, and aerospace industries. Hall angle sensors based on vertical Hall devices have advantages such as small size, high accuracy, and low cost, leading to their widespread research and application. The principle of a Hall angle sensor based on vertical Hall devices is to use a vertical Hall device as a magnetic sensing unit to detect changes in the magnetic field in the X and Y axes, which are parallel to the device surface and mutually orthogonal. The orthogonally placed vertical Hall devices generate sine and cosine voltage signals related to the rotation angle in the X and Y axes, respectively. These voltage signals are first processed by a signal conditioning circuit to eliminate offset voltage components and amplify, then quantized by an analog-to-digital converter and compensated by a digital error compensation module. Finally, the rotation angle is calculated using a coordinate rotation digital extraction method (CORDIC algorithm). However, vertical Hall devices, under standard CMOS technology, suffer from low sensitivity, offset, and high noise, which significantly reduce the accuracy of Hall angle sensors based on vertical Hall devices. Therefore, in a fully integrated Hall angle sensor based on a vertical Hall device, it is necessary to design a sensor analog front-end circuit that can suppress common-mode magnetic fields and device offset interference, and amplify weak Hall voltage signals. In addition, a high-precision analog-to-digital converter, error compensation module, and CORDIC algorithm must be used to achieve accurate angle output.

[0003] Currently, the mainstream fully integrated Hall angle sensor circuit scheme is based on a combination of a rotating current circuit, a chopper amplifier circuit, a low-pass filter, a high-precision analog-to-digital converter, and the CORDIC algorithm. This scheme first modulates the Hall voltage signal output by the Hall device to a high frequency through a rotating current circuit, while keeping the offset and noise signals output by the device at a low frequency. Then, the output signal of the rotating current circuit is sent to the chopper amplifier, which amplifies and demodulates the Hall signal to a low frequency while modulating the device offset, noise, and the circuit's own offset to a high frequency. The output signal of the chopper amplifier is then sent to a low-pass filter to filter out low-frequency noise and offset. Finally, the rotation angle is calculated using a high-precision analog-to-digital converter and the CORDIC algorithm. This scheme suffers from large residual offset of the Hall device and large output ripple of the front-end analog circuit, resulting in significant angle sensor error and making it difficult to achieve accurate angle output. Therefore, a novel fully integrated Hall angle sensor circuit and implementation method must be proposed to solve the problems of large residual offset and poor accuracy in traditional fully integrated Hall angle sensor circuits, thereby improving the accuracy of Hall angle sensors. Summary of the Invention

[0004] In view of the problems of large residual offset of Hall devices and large output ripple of front-end analog circuits in the current mainstream fully integrated Hall angle sensor circuit schemes, this invention is proposed.

[0005] Therefore, the problem to be solved by the present invention is how to provide a method that combines rotating current technology and two correlated double sampling to eliminate the offset of the Hall device while also eliminating the offset of the amplifier circuit itself, thereby achieving extremely low residual offset and very low output ripple.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0007] In a first aspect, embodiments of the present invention provide a fully integrated Hall angle sensor circuit, comprising: a front-end analog circuit including a four-phase rotating current modulator, a differential amplifier, a correlated double-sample demodulator and a secondary amplifier, and X and Y-axis sample-and-hold circuits; and a back-end digital circuit including an angle extraction module and a clock generator; wherein the clock generator outputs k1-k4, k5-k8, k9, k10, k11, k12, k13, and k14, wherein the clock signals output from k1-k4 and k5-k8 are the eight phases required by the four-phase rotating current modulator. The clock signals output from terminals k9, k10, k11, and k12 are the sampling and holding clocks required for the correlated double sample demodulation and secondary amplifier; the clock signals output from terminals k13 and k14 are the sampling clocks required for the X and Y axis sample-and-hold circuits; the eight clock input terminals of the four-phase rotating current modulator, clk1, clk2, clk3, clk4, clk5, clk6, clk7, and clk8, are respectively connected to the output terminals k1, k2, k3, k4, k5, k6, k7, and k8 of the clock generator; the four-phase rotating current modulator... The output terminals Vo1, Vo2, Vo3, and Vo4 of the modulator are connected to the input terminals Vp1, Vn1, Vp2, and Vn2 of the differential amplifier, respectively; the output terminals Vo_dda_n and Vo_dda_p of the differential amplifier are connected to the input terminals Vi_c1_p and Vi_c1_n of the correlated double-sample demodulator and the secondary amplifier, respectively; the clock input terminals clkcds1, clkcds2, clksh1, and clksh2 of the correlated double-sample demodulator and the secondary amplifier are connected to the output terminals k9 and k10 of the clock generator, respectively. k11 and k12; the output terminals Vo_c2_p and Vo_c2_n of the correlated double sampling demodulation and the secondary amplifier are respectively connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits; the clock input terminals clksx and clksy of the X and Y axis sample-and-hold circuits are respectively connected to the output terminals k13 and k14 of the clock generator; the output terminals Vh_x and Vh_y of the X and Y axis sample-and-hold circuits are respectively connected to the input terminals Ax1 and Ay2 of the angle extraction module; the output terminal of the angle extraction module is connected to the sensor angle output terminal Angle.

[0008] As a preferred embodiment of the fully integrated Hall angle sensor circuit of the present invention, the four-phase rotating current modulator includes four rotating current circuits with identical structure and parameters, four bias current sources with identical parameters, and four vertical Hall devices with identical structure and size; the four rotating current circuits are respectively designated as the first rotating current circuit CS1, the second rotating current circuit CS2, the third rotating current circuit CS3, and the fourth rotating current circuit CS4; the four bias current sources with identical parameters are respectively designated as the first bias current source I1, the second bias current source I2, the third bias current source I3, and the fourth bias current source I4, and are respectively connected to the bias current input terminal Ibias of CS1, CS2, CS3, and CS4; the clock input terminals S1 to S4 of CS1 and CS2, where S1 to S4 represent the four clock input terminals S1, S2, S3, and S4, are respectively connected to the clock input terminal clk1 of the four-phase rotating current modulator. The output terminals Vcp and Vcn of CS1 and CS2 are connected to the output terminals Vo1 and Vo2 of the four-phase rotating current modulator, respectively. The clock input terminals S1 to S4 of CS3 and CS4 are connected to the clock input terminals clk5, clk6, clk7 and clk8 of the four-phase rotating current modulator, respectively. The output terminals Vcp and Vcn of CS3 and CS4 are connected to the output terminals Vo3 and Vo4 of the four-phase rotating current modulator, respectively. Four vertical Hall devices are denoted as X1, X2 and Y1, Y2, respectively. X1 and X2 are used to detect changes in the magnetic field in the X-axis direction, and Y1 and Y2 are used to detect changes in the magnetic field in the Y-axis direction. Each device has four terminals labeled a, b, c, and d. The four output terminals a, b, c, and d of the four vertical Hall devices X1, X2, Y1 and Y2 are connected to the four input terminals c1, c2, c3 and c4 of CS1, CS2, CS3 and CS4, respectively.

[0009] As a preferred embodiment of the fully integrated Hall angle sensor circuit of the present invention, the rotating current circuit includes: 16 transmission gates, namely transmission gates T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, and T16; two common-source common-gate current sources, wherein the first common-source common-gate current source is composed of MOSFETs M1, M2, M3, M4, M5, M6, M7, and M8 and resistor R1, and the second common-source common-gate current source is composed of MOSFETs M9, M10, M11, M12, M13, and M14; four inverters, namely inverters INV1, INV2, INV3, and INV4; and a common-mode negative feedback circuit. It is composed of MOSFETs M15, M16, M17, M18, M19, M20, M21, and M22; the input terminals of the four inverters INV1, INV2, INV3, and INV4 are respectively connected to the clock input terminals S1, S2, S3, and S4 of the clock generation circuit, and their output terminals are respectively connected to the control signal input terminals Sn1, Sn2, Sn3, and Sn4 of the transmission gates; of the 16 transmission gates, the control signal input terminals of T1, T7, T12, and T14 are S1 and Sn1; the control signal input terminals of T3, T5, T10, and T16 are S2 and Sn2; the control signal input terminals of T4, T6, T9, and T15 are S3 and Sn3; T2, T8 The control signal input terminals of T11 and T13 are S4 and Sn4; one end of transmission gates T1, T2, T3 and T4 is connected to the drain terminal of M8, and the other end is connected to one end of T5, T6, T7 and T8 and the input terminals c1, c2, c3 and c4 of the rotating current circuit, respectively; the other end of T5, T6, T7 and T8 is connected to the drain terminal of M11; one end of transmission gates T9, T10, T11 and T12 is connected to the output Vcp terminal, and the other end is connected to one end of T1, T4, T1 and T4, respectively; one end of transmission gates T13, T14, T15 and T16 is connected to the output Vcn terminal, and the other end is connected to one end of T3, T2, T3 and T2, respectively; the first common source cascode current... The source connections are as follows: the gates of M1, M2, M3, and M4 are connected together and then connected to the drain of M5; the source terminals of M1, M2, M3, and M4 are connected together and then connected to the power supply voltage VDD; the drains of M1, M2, M3, and M4 are connected to the source terminals of M5, M6, M7, and M8, respectively; the gates of M5, M6, M7, and M8 are connected together and then connected to the reference current source input terminal Ibias of the rotating current circuit; one end of resistor R1 is connected to the drain of M5, and the other end is connected to the Ibias terminal of the rotating current circuit; the drain of M6 is connected to the drain of M9, the drain of M7 is connected to the drain of M10, and the drain of M8 is connected to one end of transmission gates T1, T2, T3, and T4.The second common-source cascode current source is connected as follows: the gate terminals of M9, M10, and M11 are connected together and then connected to the drain terminal of M9; the source terminals of M9, M10, and M11 are connected to the drain terminals of M12, M13, and M14, respectively; the drain terminals of M9, M10, and M11 are connected to the drain terminals of M6, M7, and one end of transmission gate T5, respectively; the gate terminals of M13 and M14 are connected together and then connected to the gate terminal of M22; the gate terminal of M12 is connected to the gate terminal of M9; the source terminals of M12, M13, and M14 are connected together and then connected to power ground GND; the common-mode negative feedback circuit is connected as follows: the source terminals of M15 and M16 are connected to the power supply voltage VDD; the gate terminals of M15 and M16 are connected to the gate terminal of M14; M15 and M16 are connected to the common-mode negative feedback circuit. The drain of M16 is connected to the source of M17 and M19 respectively; the source of M17, M18, M19 and M20 is connected to the drain of M15, the drain of M15, the drain of M16 and the drain of M16 respectively; the gate of M17, M18, M19 and M20 is connected to the output Vcp, the common-mode input Vcm, the common-mode input Vcm and the output Vcn of the rotating current circuit respectively; the drain of M17, M18, M19 and M20 is connected to the drain of M21, the drain of M22, the drain of M22 and the drain of M21 respectively; the gate of M21 and M22 is connected to their respective drains; the source of M21 and M22 is connected to the power ground GND.

[0010] In a preferred embodiment of the fully integrated Hall angle sensor circuit of the present invention, the differential amplifier comprises a six-terminal input, dual-terminal output differential operational amplifier (DDA), two input resistors R1 and R3, and two feedback resistors R2 and R4. The first pair of input terminals Vp1 and Vn1 of the differential operational amplifier DDA are connected to the output terminals Vo1 and Vo2 of a four-phase rotating current modulator; the second pair of input terminals Vp2 and Vn2 are connected to the output terminals Vo3 and Vo4 of the four-phase rotating current modulator; the third pair of input terminals Vp3 and Vn3 are respectively connected to one end of the input resistors R1 and R3, and the other end of the input resistors R1 and R3 is connected to the common-mode input terminal Vcm of the DDA. One end of the feedback resistors R2 and R4 is connected to the output terminals Vo_dda_n and Vo_dda_p of the differential operational amplifier DDA, and the other end is connected to the input terminals Vp3 and Vn3 of the DDA.

[0011] As a preferred embodiment of the fully integrated Hall angle sensor circuit of the present invention, the X and Y axis sample-and-hold circuits consist of two sample-and-hold circuits with identical structure and parameters, namely, the first sample-and-hold circuit SH1 and the second sample-and-hold circuit SH2, and two low-pass filters with identical structure and parameters, namely, the first low-pass filter LPF1 and the second low-pass filter LPF2; the clock input terminal L5 of the sample-and-hold circuit SH1 is connected to the clock input terminal clksx of the X and Y axis sample-and-hold circuits, the signal input terminals Vi_s1_p and Vi_s1_n are respectively connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits, and the output terminals Vo_s1_p and Vo_s1_n are respectively connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits. The input terminals VL_p1 and VL_n1 of the low-pass filter LPF1 are connected to each other. The output of the low-pass filter LPF1 is connected to the output terminal Vh_x of the X and Y axis sample-and-hold circuits. The clock input terminal L6 of the sample-and-hold circuit SH2 is connected to the clock input terminal clksy of the X and Y axis sample-and-hold circuits. The signal input terminals Vi_s2_p and Vi_s2_n are connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits, respectively. The output terminals Vo_s2_p and Vo_s2_n are connected to the input terminals VL_p2 and VL_n2 of the low-pass filter LPF2, respectively. The output of the low-pass filter LPF2 is connected to the output terminal Vh_y of the X and Y axis sample-and-hold circuits.

[0012] Secondly, to further address the problems of large residual offset of Hall devices and large output ripple of front-end analog circuits in current mainstream fully integrated Hall angle sensor circuit schemes, the present invention provides a method for implementing a fully integrated Hall angle sensor circuit, which includes: performing four-phase rotation modulation of Hall signals and offset signals; amplifying differential Hall voltage signals in the X-axis and Y-axis directions; performing correlated double sampling demodulation and secondary amplification; maintaining sampling of Hall signals in the X-axis and Y-axis directions; and extracting the angle.

[0013] In a preferred embodiment of the fully integrated Hall angle sensor circuit of the present invention, the four-phase rotation modulation of the Hall signal and the offset signal includes, assuming that the magnetic field signals input to X1 and Y1 are positive and the magnetic field signals input to X2 and Y2 are negative, then the Hall voltages generated by X1 and X2 are VHX+VCMX and -VHX+VCMX, where VHX is the Hall voltage generated by the differential-mode magnetic field acting on X1 and X2 in the X-axis direction, and VCMX is the Hall voltage generated by the common-mode magnetic field acting on X1 and X2 in the X-axis direction. Then the Hall voltages generated by Y1 and Y2 are VHY+VCMY and -VHY+VCMY, where VHY is the Hall voltage generated by the differential-mode magnetic field acting on Y1 and Y2 in the Y-axis direction, and VCMY is the Hall voltage generated by the common-mode magnetic field acting on Y1 and Y2 in the Y-axis direction. The Hall voltage generated by the common-mode magnetic field acting on Y1 and Y2 in the Y-axis direction; due to the 90-degree rotational symmetry of the offset voltage of the vertical Hall device, it is assumed that the offset voltages generated by the bias currents of X1 and X2 in the first, second, third, and fourth phase rotations during the four-phase rotation are VOS1, VOS2, VOS1, and VOS2, respectively; it is assumed that the offset voltages generated by the bias currents of Y1 and Y2 in the first, second, third, and fourth phase rotations during the four-phase rotation are VOS3, VOS4, VOS3, and VOS4, respectively; the four-phase rotation modulation process of the Hall signal and the offset signal involves the X-axis and Y-axis directions.

[0014] In a preferred embodiment of the fully integrated Hall angle sensor circuit described in this invention, the four-phase rotation modulation process of the Hall signal and offset signal in the X-axis direction includes: when the bias currents of X1 and X2 undergo the first phase rotation in the four-phase rotation process, the clock input terminal clk1 of the four-phase rotating current modulator is at a high level, and all other clock input terminals are at a low level. The voltage output by the rotating current circuit CS1 is VHX+VOS1+VCMX, and the voltage output by the rotating current circuit CS2 is -VHX+VOS1+VCMX; when the bias currents of X1 and X2 undergo the second phase rotation in the four-phase rotation process, the clock input terminal clk2 of the four-phase rotating current modulator is at a high level, and its... When all clock inputs are low, the voltage output of rotating current circuit CS1 is -VHX-VOS2-VCMX, and the voltage output of rotating current circuit CS2 is VHX-VOS2-VCMX. When the bias current of X1 and X2 is rotated in the third phase of the four-phase rotation process, the clock input clk3 of the four-phase rotating current modulator is high, and all other clock inputs are low. The voltage output of rotating current circuit CS1 is -VHX+VOS1-VCMX, and the voltage output of rotating current circuit CS2 is VHX+VOS1-VCMX. When the bias current of X1 and X2 is rotated in the fourth phase of the four-phase rotation process, the clock input clk3 of the four-phase rotating current modulator... The input of clock 4 is high, and all other clock inputs are low. The voltage output of rotating current circuit CS1 is VHX-VOS2+VCMX, and the voltage output of rotating current circuit CS2 is -VHX-VOS2+VCMX. The four-phase rotation modulation process of the Hall signal and offset signal in the Y-axis direction includes: when the first phase of the four-phase rotation process of the bias current of Y1 and Y2 is performed, the input of clock input clk5 of the four-phase rotating current modulator is high, and all other clock inputs are low. The voltage output of rotating current circuit CS3 is VHY+VOS3+VCMY, and the voltage output of rotating current circuit CS4 is -VHY+VOS3+VCMY. When the bias current of Y1 and Y2 is high, the voltage output of clock 4 is high, and the voltage output of clock 4 is -VHX-VOS2+VCMY. During the second phase rotation of the four-phase rotating current process, the clock input terminal clk6 of the four-phase rotating current modulator is at a high level, while all other clock input terminals are at a low level. The voltage output of the rotating current circuit CS3 is -VHY-VOS4-VCMY, and the voltage output of the rotating current circuit CS4 is VHY-VOS4-VCMY. When the bias current of Y1 and Y2 rotates during the third phase rotation of the four-phase rotating current process, the clock input terminal clk7 of the four-phase rotating current modulator is at a high level, while all other clock input terminals are at a low level. The voltage output of the rotating current circuit CS3 is -VHY+VOS3-VCMY, and the voltage output of the rotating current circuit CS4 is VHY+VOS3-VCMY.When the bias currents of Y1 and Y2 are rotated in the fourth phase of the four-phase rotation process, the clock input clk8 of the four-phase rotating current modulator is high, while all other clock inputs are low. The voltage output of the rotating current circuit CS3 is VHY-VOS4+VCMY, and the voltage output of the rotating current circuit CS4 is -VHY-VOS4+VCMY.

[0015] As a preferred embodiment of the fully integrated Hall angle sensor circuit of the present invention, the amplification of the differential Hall voltage signals in the X-axis and Y-axis directions includes the following steps: the four-phase Hall voltage and offset voltage superimposed signals in the X-axis direction output by CS1 and CS2 are differentially amplified to obtain four-phase output voltages A1×(2VHX+VOS_DDA), A1×(-2VHX+VOS_DDA), A1×(-2VHX+VOS_DDA), and A1×(-2VHX+VOS_DDA).

[0016] A1×(2VHX+VOS_DDA), where A1 is the gain of the differential amplifier and VOS_DDA is the offset voltage of DDA; the four-phase Hall voltage and offset voltage aliasing signals in the two Y-axis directions output by CS3 and CS4 are subtracted and amplified by the differential amplifier to obtain four phase output voltages A1×(2VHY+VOS_DDA), A1×(-2VHY+VOS_DDA), A1×(-2VHY+VOS_DDA) and A1×(2VHY+VOS_DDA).

[0017] In a preferred embodiment of the fully integrated Hall angle sensor circuit described in this invention, the correlation double sampling demodulation and secondary amplification include: when performing correlation double sampling demodulation on the Hall voltage in the X-axis direction, the input clock terminals clkcds1 and clksh1 of the correlation double sampling demodulation and secondary amplifier are at high levels; the correlation double sampling circuit CDS1 calculates the difference between the first and second phases of the four-phase Hall voltage in the X-axis direction output by the differential amplifier to obtain the output voltage A1×(4VHX), which is then amplified by the secondary amplification circuit. After amplification, the output voltage is obtained as A2×{A1×(4VHX)+VOS_FDA}, where A2 is the gain of the secondary amplification circuit and VOS_FDA is the offset of FDA; CDS1 takes the difference between the third and fourth phases of the four-phase Hall voltage in the X-axis direction output of the differential amplifier to obtain the output voltage -A1×4VHX, which is then amplified by the secondary amplification circuit to obtain the output voltage A2×{-A1×4VHX+VOS_FDA}; the correlated double sampling circuit CDS2 converts the first, second, and third phases of the correlated double sampling circuit CDS1 into the first, second, and third phases... The output voltage A2×A1×8VHX is obtained by subtracting the X-axis output voltages amplified by the secondary amplifier circuit. When performing correlated double sampling demodulation on the Y-axis Hall voltage, the input clock terminals clkcds2 and clksh2 of the correlated double sampling demodulation and secondary amplifier are at high level. The correlated double sampling circuit CDS1 subtracts the first and second phases of the four-phase Hall voltages in the Y-axis direction output by the differential amplifier to obtain the output voltage A1×4VHX, which is then amplified by the secondary amplifier circuit to obtain the output voltage A2×{ A1×(4VHY)+VOS_FDA};CDS1 calculates the difference between the third and fourth phases of the four-phase Hall voltages in the Y-axis direction output by the differential amplifier to obtain the output voltage -A1×4VHY, which is then amplified by the secondary amplifier circuit to obtain the output voltage A2×{-A1×(4VHY)+VOS_FDA};The correlated dual sampling circuit CDS2 calculates the difference between the Y-axis output voltages of the first, second, third, and fourth phases amplified by the secondary amplifier circuit of the correlated dual sampling circuit CDS1 to obtain the output voltage A2×A1×8VHY.

[0018] The beneficial effects of this invention are as follows: Firstly, it can eliminate offset to the greatest extent possible: the circuit first uses a differential amplifier to initially eliminate the offset voltage output by the device, and then uses correlated double sampling to eliminate the residual offset of the device and the offset of the subsequent amplification circuit, greatly reducing the residual offset of the entire Hall angle sensor and improving the sensor's accuracy. Secondly, this invention has very low output ripple: compared to the front-end analog circuit of a traditional Hall angle sensor using chopping technology, this circuit has very low output ripple. Thirdly, this invention can achieve high accuracy: the circuit uses a high-precision analog-to-digital converter, digital error compensation, and CORDIC algorithm to quantize the amplified Hall voltage, achieving high accuracy. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:

[0020] Figure 1 This is a block diagram of the overall circuit principle of the angle sensor in Example 1.

[0021] Figure 2 This is a circuit diagram of the four-phase rotating current modulator in the angle sensor of Example 1 (a- represents the a-end of the Hall device; b- represents the b-end of the Hall device; c- represents the c-end of the Hall device; d- represents the d-end of the Hall device).

[0022] Figure 3 This is a circuit diagram of the rotating current circuit in the angle sensor in Example 1.

[0023] Figure 4 This is a circuit diagram of the differential amplifier in the angle sensor in Example 1.

[0024] Figure 5 This is a circuit block diagram of the correlation double sampling demodulation and secondary amplifier in the angle sensor of Example 1.

[0025] Figure 6 This is a circuit block diagram of the X and Y axis sample-and-hold circuits in the angle sensor of Example 1.

[0026] Figure 7 This is a circuit block diagram of the angle extraction module in the angle sensor in Example 1.

[0027] Figure 8 In Example 1 Figure 1 The diagram shows the clock control signals required for the angle sensor.

[0028] Figure 9 The figure shows the simulation results of the Hall voltage signals in the X-axis and Y-axis directions output by the analog circuit of the front end of the angle sensor in Example 2.

[0029] Figure 10 The figure shows the output error results of the digital-analog co-simulation of the angle sensor in Example 2. Detailed Implementation

[0030] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0031] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0032] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0033] Example 1

[0034] Reference Figures 1 to 8 This is the first embodiment of the present invention, which provides a structure for a fully integrated Hall angle sensor circuit as follows: Figure 1 As shown, it includes the following:

[0035] The front-end analog circuit includes a four-phase rotating current modulator, a differential amplifier, a correlated double-sample demodulator and a secondary amplifier, and X and Y-axis sample-and-hold circuits; the back-end digital circuit includes an angle extraction module and a clock generator; the clock generator outputs k1-k4, k5-k8, k9, k10, k11, k12, k13, and k14, where the clock signals output from k1-k4 and k5-k8 are the eight-phase clock signals required by the four-phase rotating current modulator; the clock signals output from k9, k10, k11, and k12 are... The clock signal is the sampling and holding clock required for the correlated double sample demodulation and secondary amplifier; the clock signals output from k13 and k14 are the sampling clocks required for the X and Y axis sample-and-hold circuits; the eight clock inputs of the four-phase rotating current modulator, clk1, clk2, clk3, clk4, clk5, clk6, clk7, and clk8, are respectively connected to the outputs k1, k2, k3, k4, k5, k6, k7, and k8 of the clock generator; the outputs Vo1, Vo2, and Vo3 of the four-phase rotating current modulator are... Vo4 is connected to the input terminals Vp1, Vn1, Vp2, and Vn2 of the differential amplifier, respectively; the output terminals Vo_dda_n and Vo_dda_p of the differential amplifier are connected to the input terminals Vi_c1_p and Vi_c1_n of the correlated double-sample demodulator and the secondary amplifier, respectively; the clock input terminals clkcds1, clkcds2, clksh1, and clksh2 of the correlated double-sample demodulator and the secondary amplifier are connected to the output terminals k9, k10, k11, and k12 of the clock generator, respectively. The output terminals Vo_c2_p and Vo_c2_n of the correlated double sampling demodulation and the secondary amplifier are respectively connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits; the clock input terminals clksx and clksy of the X and Y axis sample-and-hold circuits are respectively connected to the output terminals k13 and k14 of the clock generator; the output terminals Vh_x and Vh_y of the X and Y axis sample-and-hold circuits are respectively connected to the input terminals Ax1 and Ay2 of the angle extraction module; the output terminal of the angle extraction module is connected to the sensor angle output terminal Angle.

[0036] Furthermore, the clock generator produces 14 clock pulse signals, such as Figure 8As shown, the clock pulse signals clk1 to clk8 output from the k1 to k8 terminals of the clock generator are eight-phase sequential clock pulse signals with a duty cycle of 12.5%, appearing in sequence, and clk1 to clk8 have the same frequency. The clock signal clkcds1 output from the k9 terminal is a periodic square wave signal with a duty cycle of 50%. The rising edge of clkcds1 can be aligned with any rising edge of the clock signals clk2, clk4, clk6, and clk8. The clock pulse signal clksh1 output from the k10 terminal has the same frequency as clkcds1, and the rising edge of clksh1 lags slightly behind clkcds1, while the falling edge of clksh1 leads clkcds1 slightly. The clock pulse signal clkcds2 output from the k11 terminal is the result obtained by dividing clksh1 by two. The clock pulse signal clksh2 output from terminal k12 has the same frequency as clkcds2, with the rising edge of clksh2 slightly lagging behind the falling edge of clkcds2, and the falling edge of clksh2 slightly leading the rising edge of clkcds2. The clock pulse signal clksx output from terminal k13 has half the frequency of clksh2, with its rising edge slightly lagging behind the falling edge of clksh2, and its falling edge slightly leading the rising edge of clksh2. The clock pulse signal clksy output from terminal k14 has the same frequency as clksx, and its waveform is obtained by shifting clksx 180 degrees to the right.

[0037] The four-phase rotating current modulator includes four rotating current circuits with identical structure and parameters, four bias current sources with identical parameters, and four vertical Hall effect devices with identical structure and size. The four rotating current circuits are designated as the first rotating current circuit (CS1), the second rotating current circuit (CS2), the third rotating current circuit (CS3), and the fourth rotating current circuit (CS4). The four bias current sources with identical parameters are designated as the first bias current source (I1), the second bias current source (I2), the third bias current source (I3), and the fourth bias current source (I4), and are connected to the bias current input terminals Ibias of CS1, CS2, CS3, and CS4, respectively. The clock input terminals S1 to S4 of CS1 and CS2 (S1 to S4 represent the four clock input terminals S1, S2, S3, and S4) are connected to the clock input terminals clk1, clk2, clk3, and clk4 of the four-phase rotating current modulator, respectively. The output terminals Vcp and Vcn of CS1 and CS2 are connected to... The output terminals Vo1 and Vo2 of the four-phase rotating current modulator; the clock input terminals S1 to S4 of CS3 and CS4 are connected to the clock input terminals clk5, clk6, clk7, and clk8 of the four-phase rotating current modulator, respectively; the output terminals Vcp and Vcn of CS3 and CS4 are connected to the output terminals Vo3 and Vo4 of the four-phase rotating current modulator, respectively; four vertical Hall effect devices are denoted as X1, X2 and Y1, Y2, respectively, where X1 and X2 are used to detect changes in the magnetic field in the X-axis direction, and Y1 and Y2 are used to detect changes in the magnetic field in the Y-axis direction. Each device has four terminals labeled a, b, c, and d; the four output terminals a, b, c, and d of the four vertical Hall effect devices X1, X2, Y1, and Y2 are connected to the four input terminals c1, c2, c3, and c4 of CS1, CS2, CS3, and CS4, respectively; the function of the four-phase rotating current modulator is to modulate the Hall voltage and offset voltage output by the Hall effect devices to different phases, so that the subsequent offset voltage elimination circuit can eliminate the offset voltage.

[0038] Furthermore, the rotating current circuits CS1, CS2, CS3, and CS4 have the same circuit structure and parameters, such as... Figure 3As shown, it includes 16 transmission gates, namely transmission gates T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, and T16; two common-source cascode current sources, wherein the first common-source cascode current source is composed of MOSFETs M1, M2, M3, M4, M5, M6, M7, and M8 and resistor R1, and the second common-source cascode current source is composed of MOSFETs M9, M10, M11, M12, M13, and M14; four inverters, namely inverters INV1, INV2, INV3, and INV4; and a common-mode negative feedback circuit, composed of MOSFETs M15, M16, M17, M18, M19, M20, M21, and M22.

[0039] The inputs of the four inverters INV1, INV2, INV3, and INV4 are connected to the clock inputs S1, S2, S3, and S4 of the clock generation circuit, respectively. Their outputs are connected to the control signal inputs Sn1, Sn2, Sn3, and Sn4 of the transmission gates, respectively. There are 16 transmission gates. The control signal inputs of T1, T7, T12, and T14 are S1 and Sn1; the control signal inputs of T3, T5, T10, and T16 are S2 and Sn2; the control signal inputs of T4, T6, T9, and T15 are S3 and Sn3; and the control signal inputs of T2, T8, T11, and T13 are S4 and Sn4. One end of transmission gates T1, T2, T3, and T4 is connected to the drain of M8, and the other end is connected to one end of T5, T6, T7, and T8, and the inputs c1 and c2 of the rotating current circuit, respectively. C3 and C4; the other ends of T5, T6, T7, and T8 are connected to the drain of M11; one end of transmission gates T9, T10, T11, and T12 is connected to the output Vcp terminal, and the other end is connected to one end of T1, T4, T1, and T4 respectively; one end of transmission gates T13, T14, T15, and T16 is connected to the output Vcn terminal, and the other end is connected to one end of T3, T2, T3, and T2 respectively; among them, the connection relationship of the first common-source cascode current source is that the gate terminals of M1, M2, M3, and M4 are connected together and connected to the drain of M5; M1, M 2. The source terminals of M3 and M4 are connected together and connected to the power supply voltage VDD; the drain terminals of M1, M2, M3, and M4 are connected to the source terminals of M5, M6, M7, and M8 respectively; the gate terminals of M5, M6, M7, and M8 are connected together and connected to the reference current source input terminal Ibias of the rotating current circuit; one end of resistor R1 is connected to the drain terminal of M5, and the other end is connected to the Ibias terminal of the rotating current circuit; the drain terminal of M6 is connected to the drain terminal of M9, the drain terminal of M7 is connected to the drain terminal of M10, and the drain terminal of M8 is connected to transmission gates T1, T2, T3, and... One end of T4; the connection relationship of the second common source cascode current source is as follows: the gate terminals of M9, M10 and M11 are connected together and connected to the drain terminal of M9; the source terminals of M9, M10 and M11 are connected to the drain terminals of M12, M13 and M14 respectively; the drain terminals of M9, M10 and M11 are connected to the drain terminals of M6, M7 and one end of transmission gate T5 respectively; the gate terminals of M13 and M14 are connected together and connected to the gate terminal of M22, and the gate terminal of M12 is connected to the gate terminal of M9; the source terminals of M12, M13 and M14 are connected together and connected to power ground GND.

[0040] The common-mode negative feedback circuit is connected as follows: the source terminals of M15 and M16 are connected to the power supply voltage VDD; the gate terminals of M15 and M16 are connected to the gate terminal of M14; the drain terminals of M15 and M16 are connected to the source terminals of M17 and M19, respectively; the source terminals of M17, M18, M19, and M20 are connected to the drain terminals of M15, M16, and M16, respectively; the gate terminals of M17, M18, M19, and M20 are connected to the output terminal Vcp, the common-mode input terminal Vcm, and the output terminal Vcn of the rotating current circuit, respectively; M17 The drains of M18, M19, and M20 are connected to the drains of M21, M22, M22, and M21, respectively; the gates of M21 and M22 are connected to their respective drains; the source terminals of M21 and M22 are connected to the power ground GND. The function of this module is to modulate the Hall voltage and offset voltage signals output by the device to different phases by continuously rotating the bias current direction of the vertical Hall device. A common-mode negative feedback circuit is designed at the output of this module to stabilize the output common-mode level of the rotating current circuit within a reasonable range, preventing the saturation of the back-end amplifier due to excessively high or low output common-mode levels.

[0041] Differential amplifiers, such as Figure 4 As shown, it consists of a six-input, two-output differential operational amplifier (DDA), two input resistors R1 and R3, and two feedback resistors R2 and R4. The first pair of input terminals Vp1 and Vn1 of the DDA are connected to the output terminals Vo1 and Vo2 of the four-phase rotating current modulator, the second pair of input terminals Vp2 and Vn2 are connected to the output terminals Vo3 and Vo4 of the four-phase rotating current modulator, and the third pair of input terminals Vp3 and Vn3 are connected to one end of the input resistors R1 and R3 respectively. The other ends of the input resistors R1 and R3 are connected to the common-mode circuit of the DDA. The input level is Vcm; one end of the feedback resistors R2 and R4 is connected to the output terminals Vo_dda_n and Vo_dda_p of the DDA, respectively, and the other end is connected to the input terminals Vp3 and Vn3 of the DDA, respectively; the function of the differential amplifier is to subtract the Hall voltages in the X-axis direction output by CS1 and CS2 to eliminate common-mode magnetic field interference in the X-axis direction and amplify the differential-mode Hall voltage signal in the X-axis direction, and to subtract the Hall voltages in the Y-axis direction output by CS3 and CS4 to eliminate common-mode magnetic field interference in the Y-axis direction and amplify the differential-mode Hall voltage signal in the Y-axis direction.

[0042] Related double-sample demodulation and secondary amplifier, such as Figure 5As shown, the circuit consists of a secondary amplifier circuit and two correlated double sampling circuits, including a first correlated double sampling circuit (CDS1) and a second correlated double sampling circuit (CDS2). The clock input terminals L1 and L2 of the correlated double sampling circuit CDS1 are connected to the clock input terminals clkcds1 and clksh1 of the correlated double sampling demodulator and the secondary amplifier, respectively. The signal input terminals are connected to the input terminals Vi_c1_p and Vi_c1_n of the correlated double sampling demodulator and the secondary amplifier, respectively. The signal output terminals Vo_c1_p and Vo_c1_n are connected to one end of resistors R5 and R7, respectively. The secondary amplifier circuit consists of input resistors R5 and R7, feedback resistors R6 and R8, and a fully differential operational amplifier (FDA). The other ends of input resistors R5 and R7 are connected to the FDA. The input terminals Vip and Vin of the correlation dual sampling circuit are connected to the input terminals Vip and Vin of the FDA, respectively. One end of the feedback resistors R6 and R8 is connected to the output terminals Vop and Von of the FDA, respectively. The clock input terminals L3 and L4 of the correlation dual sampling circuit CDS2 are connected to the clock input terminals clkcds2 and clksh2 of the correlation dual sampling demodulator and secondary amplifier, respectively. The signal input terminals Vi_c2_p and Vi_c2_n are connected to the output terminals Vop and Von of the FDA, respectively. The signal output terminal is connected to the output terminals Vo_c2_p and Vo_c2_n of the correlation dual sampling demodulator and secondary amplifier. The function of the correlation dual sampling demodulator and secondary amplifier is to demodulate the Hall signal to a low frequency while eliminating the circuit's own offset and the device's residual offset, and to amplify the signal a second time.

[0043] The X and Y axis sample-and-hold circuits, such as Figure 6As shown, it consists of two sample-and-hold circuits with identical structure and parameters, namely the first sample-and-hold circuit (SH1) and the second sample-and-hold circuit (SH2), and two low-pass filters with identical structure and parameters, namely the first low-pass filter (LPF1) and the second low-pass filter (LPF2). The clock input terminal L5 of the sample-and-hold circuit SH1 is connected to the clock input terminal clksx of the X and Y axis sample-and-hold circuits. The signal input terminals Vi_s1_p and Vi_s1_n are connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits, respectively. The output terminals Vo_s1_p and Vo_s1_n are connected to the input terminals VL_p1 and VL_n1 of the low-pass filter LPF1, respectively. The output of the low-pass filter LPF1 is connected to the output terminal Vh_x of the X and Y axis sample-and-hold circuits. The sample-and-hold circuit SH2... The clock input L6 is connected to the clock input clksy of the X and Y axis sample-and-hold circuits. The signal inputs Vi_s2_p and Vi_s2_n are connected to the inputs Vp and Vn of the X and Y axis sample-and-hold circuits, respectively. The outputs Vo_s2_p and Vo_s2_n are connected to the inputs VL_p2 and VL_n2 of the low-pass filter LPF2, respectively. The output of the low-pass filter LPF2 is connected to the output Vh_y of the X and Y axis sample-and-hold circuits. The function of the X and Y axis sample-and-hold circuits is to separate the Hall voltages of the X and Y axes that are superimposed through the two sample-and-hold circuits SH1 and SH2. Then, the separated X and Y axis Hall signals are filtered out for high-frequency noise by the low-pass filters LPF1 and LPF2. Finally, the signals are output to the inputs of the analog-to-digital converters ADC1 and ADC2, respectively.

[0044] Furthermore, the angle extraction module, such as Figure 7As shown, the system consists of two analog-to-digital converters (ADCs) with identical structure and parameters (ADC1 and ADC2), two error compensation modules (COMP1 and COMP2) with identical structure and parameters, and a CORDIC module. The input terminal of ADC1 is connected to the input terminal Ax1 of the angle extraction module, and its output terminal Dx1 is connected to the input terminal Din_x of the error compensation module COMP1. The output terminal Dout_x of the error compensation module COMP1 is connected to the input terminal Dx of the CORDIC module. The input terminal of ADC2 is connected to the input terminal Ay2 of the angle extraction module, and its output terminal Dy_x is connected to the input terminal Dx of the CORDIC module. Terminal Dx2 is connected to the input terminal Din_y of the error compensation module COMP2, and the output terminal Dout_y of the error compensation module COMP2 is connected to the input terminal Dy of the CORDIC module. The output terminal of the CORDIC module is connected to the output terminal Angle of the angle extraction module. The function of the angle extraction module is to quantize the Hall voltage output by the low-pass filters LPF1 and LPF2 into a digital quantity through the analog-to-digital converters ADC1 and ADC2, and then compensate for the error caused by various non-ideal factors through the error compensation modules COMP1 and COMP2. Finally, the rotation angle is calculated by the CORDIC module.

[0045] This embodiment also proposes a method for implementing a fully integrated Hall angle sensor circuit: A complete working cycle of the fully integrated Hall angle sensor proposed in this invention includes the following parts:

[0046] S1: Perform four-phase rotational modulation of Hall signal and offset signal.

[0047] Specifically, since the magnetic field signals input to the vertical Hall devices X1 and X2 and Y1 and Y2 are opposite in polarity and equal in magnitude, assuming that the magnetic field signals input to X1 and Y1 are positive and the magnetic field signals input to X2 and Y2 are negative, the Hall voltages generated by X1 and X2 are VHX+VCMX and -VHX+VCMX (VHX is the Hall voltage generated by the differential-mode magnetic field acting on X1 and X2 in the X-axis direction, and VCMX is the Hall voltage generated by the common-mode magnetic field acting on X1 and X2 in the X-axis direction), and the Hall voltages generated by Y1 and Y2 are VHY+VCMY and -VHY+VCMY (VHY is the Hall voltage generated by the differential-mode magnetic field acting on Y1 and Y2 in the Y-axis direction, and VCMY is the Hall voltage generated by the common-mode magnetic field acting on Y1 and Y2 in the Y-axis direction).

[0048] Because the offset voltage of the vertical Hall device has a 90-degree rotational symmetry, this invention assumes that the offset voltages generated by the bias currents of X1 and X2 during the four-phase rotation process are VOS1, VOS2, VOS1, and VOS2, respectively. This invention also assumes that the offset voltages generated by the bias currents of Y1 and Y2 during the four-phase rotation process are VOS3, VOS4, VOS3, and VOS4, respectively.

[0049] The modulation process of Hall voltage and offset signal in the X-axis direction is as follows: When the bias currents of X1 and X2 undergo the first phase rotation in the four-phase rotation process, the clock input terminal clk1 of the four-phase rotating current modulator is at a high level, while all other clock input terminals are at a low level. The voltage output by rotating current circuit CS1 is VHX + VOS1 + VCMX, and the voltage output by rotating current circuit CS2 is -VHX + VOS1 + VCMX. When the bias currents of X1 and X2 undergo the second phase rotation in the four-phase rotation process, the clock input terminal clk2 of the four-phase rotating current modulator is at a high level, while all other clock input terminals are at a low level. The voltage output by rotating current circuit CS1 is -VHX - VOS2 - VCMX, and the voltage output by rotating current circuit CS2 is VH... When the bias currents of X1 and X2 undergo the third phase rotation in the four-phase rotation process, the clock input clk3 of the four-phase rotating current modulator is at a high level, while all other clock inputs are at a low level. The voltage output of the rotating current circuit CS1 is -VHX+VOS1-VCMX, and the voltage output of the rotating current circuit CS2 is VHX+VOS1-VCMX. When the bias currents of X1 and X2 undergo the fourth phase rotation in the four-phase rotation process, the clock input clk4 of the four-phase rotating current modulator is at a high level, while all other clock inputs are at a low level. The voltage output of the rotating current circuit CS1 is VHX-VOS2+VCMX, and the voltage output of the rotating current circuit CS2 is -VHX-VOS2+VCMX.

[0050] The modulation process of Hall voltage and offset signal in the Y-axis direction is as follows: When the first phase of the four-phase rotation process is applied to the bias currents of Y1 and Y2, the clock input terminal clk5 of the four-phase rotating current modulator is high, and all other clock input terminals are low. The voltage output of rotating current circuit CS3 is VHY+VOS3+VCMY, and the voltage output of rotating current circuit CS4 is -VHY+VOS3+VCMY. When the second phase of the four-phase rotation process is applied to the bias currents of Y1 and Y2, the clock input terminal clk6 of the four-phase rotating current modulator is high, and all other clock input terminals are low. The voltage output of rotating current circuit CS3 is -VHY-VOS4-VCMY, and the voltage output of rotating current circuit CS4 is VHY+VOS3+VCMY. Y-VOS4-VCMY; When the bias current of Y1 and Y2 is rotated in the third phase of the four-phase rotation process, the clock input terminal clk7 of the four-phase rotating current modulator is at a high level, and all other clock input terminals are at a low level. The voltage output of the rotating current circuit CS3 is -VHY+VOS3-VCMY, and the voltage output of the rotating current circuit CS4 is VHY+VOS3-VCMY. When the bias current of Y1 and Y2 is rotated in the fourth phase of the four-phase rotation process, the clock input terminal clk8 of the four-phase rotating current modulator is at a high level, and all other clock input terminals are at a low level. The voltage output of the rotating current circuit CS3 is VHY-VOS4+VCMY, and the voltage output of the rotating current circuit CS4 is -VHY-VOS4+VCMY.

[0051] S2: Amplify the differential Hall voltage signals in the X and Y axes.

[0052] During this stage, the four-phase Hall voltage and offset voltage aliasing signals from the two X-axis directions output by CS1 and CS2 are differentially amplified to obtain four-phase output voltages: A1×(2VHX+VOS_DDA), A1×(-2VHX+VOS_DDA), A1×(-2VHX+VOS_DDA), and A1×(2VHX+VOS_DDA), where A1 is the gain of the differential amplifier and VOS_DDA is the offset voltage of DDA. The four-phase Hall voltage and offset voltage aliasing signals from the two Y-axis directions output by CS3 and CS4 are differentially amplified to obtain four-phase output voltages: A1×(2VHY+VOS_DDA), A1×(-2VHY+VOS_DDA), A1×(-2VHY+VOS_DDA), and A1×(2VHY+VOS_DDA).

[0053] S3: Perform related double sampling demodulation and secondary amplification.

[0054] When performing correlated double sampling demodulation on the Hall voltage in the X-axis direction, the input clock terminals clkcds1 and clksh1 of the correlated double sampling demodulation and secondary amplifier are at high levels. The correlated double sampling circuit CDS1 calculates the difference between the first and second phases of the four-phase Hall voltage in the X-axis direction output from the differential amplifier to obtain the output voltage A1×(4VHX). After being amplified by the secondary amplifier circuit, the output voltage A2×{A1×(4VHX)+VOS_FDA} is obtained, where A2 is the gain of the secondary amplifier circuit, and VOS_FDA is the gain of the secondary amplifier circuit. DA represents the offset of FDA; CDS1 calculates the difference between the third and fourth phases of the four-phase Hall voltages in the X-axis direction output by the differential amplifier to obtain the output voltage -A1×(4VHX), which is then amplified by the secondary amplifier circuit to obtain the output voltage A2×{-A1×(4VHX)+VOS_FDA}; the correlated dual sampling circuit CDS2 calculates the difference between the X-axis output voltages of the first, second, third, and fourth phases amplified by the secondary amplifier circuit of the correlated dual sampling circuit CDS1 to obtain the output voltage A2×A1×(8VHX).

[0055] When performing correlated double sampling demodulation on the Hall voltage in the Y-axis direction, the input clock terminals clkcds2 and clksh2 of the correlated double sampling demodulation and secondary amplifier are at high levels. The correlated double sampling circuit CDS1 calculates the difference between the first and second phases of the four-phase Hall voltage in the Y-axis direction output from the differential amplifier to obtain the output voltage A1×(4VHY), which is then amplified by the secondary amplifier circuit to obtain the output voltage A2×{A1×(4VHY)+VOS_FDA}. CDS1 calculates the difference between the third and fourth phases of the four-phase Hall voltage in the Y-axis direction output from the differential amplifier to obtain the output voltage -A1×(4VHY), which is then amplified by the secondary amplifier circuit to obtain the output voltage A2×{-A1×(4VHY)+VOS_FDA}. The correlated double sampling circuit CDS2 calculates the difference between the Y-axis output voltages of the first, second, third, and fourth phases amplified by the secondary amplifier circuit after the correlated double sampling circuit CDS1, resulting in the output voltage A2×A1×(8VHY).

[0056] S4: Sampling of Hall signals is maintained in the X and Y axis directions.

[0057] During this stage, the X and Y axis sample-and-hold circuits sample the Hall voltage signals in the X and Y axes output by CDS2, which are mixed together. The X-axis Hall voltage signal is sampled by the sample-and-hold circuit SH1, and then the high-frequency noise is filtered out by the low-pass filter LPF1 before the X-axis Hall voltage is output to the Vh_x terminal. The X and Y axis sample-and-hold circuits sample the Y-axis Hall voltage signal by the sample-and-hold circuit SH2, and then the high-frequency noise is filtered out by the low-pass filter LPF2 before the Y-axis Hall voltage is output to the Vh_y terminal.

[0058] S5: Extract the angle.

[0059] In this stage, the angle extraction module samples the output voltages at Vh_x and Vh_y terminals respectively, then quantizes the sampled voltages through an analog-to-digital converter (ADC), then performs error compensation on the quantized data through an error compensation module, and finally calculates the rotation angle through a CORDIC module.

[0060] In summary, this invention can eliminate offset to the greatest extent: the circuit first uses a differential amplifier to initially eliminate the offset voltage output by the device, and then uses correlated double sampling to eliminate the residual offset of the device and the offset of the subsequent amplification circuit, greatly reducing the residual offset of the entire Hall angle sensor and improving the sensor's accuracy; this invention has very low output ripple: compared with the front-end analog circuit of a traditional Hall angle sensor using chopping technology, this circuit has very low output ripple; this invention can achieve high accuracy: the circuit uses a high-precision analog-to-digital converter, digital error compensation, and CORDIC algorithm to quantize the amplified Hall voltage, thus achieving high accuracy.

[0061] Example 2

[0062] Reference Figures 9-10 This is the second embodiment of the present invention. Based on the first embodiment, scientific simulation experimental data of the present invention are provided in order to verify its beneficial effects.

[0063] This invention uses 0.18μm CMOS technology to design the analog front-end circuit (including a four-phase rotating current modulator, a differential amplifier, a correlated double sampling demodulator and a secondary amplifier, X and Y axis sample-and-hold circuits, and a clock generator) in the above-mentioned fully integrated Hall angle sensor. A 14-bit analog-to-digital converter in the angle extraction module is designed using Verilog-A, and an error compensation module and a 14-bit precision CORDIC module in the angle extraction module are designed using Verilog-HDL.

[0064] The circuit constructed above was simulated using Cadence's AMS mixed-signal simulator.

[0065] Figure 9 The results of transient simulation of the Hall voltage signals in the X and Y axes output by the front-end analog circuit of this fully integrated Hall angle sensor show that the circuit has extremely low output ripple. The absolute value of the difference between the angle value output by the CORDIC module and the actual value is then taken to obtain the following result: Figure 10The angle sensor output error diagram shown in the figure shows that the highest angle error is only 0.24°. This simulation result indicates that the fully integrated Hall angle sensor proposed in this invention has extremely low residual offset and high accuracy, effectively solving the problems of large residual offset and low accuracy of current fully integrated Hall angle sensors.

[0066] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A fully integrated Hall angle sensor circuit, characterized in that: include: The front-end analog circuitry includes a four-phase rotating current modulator, a differential amplifier, a correlated double-sample demodulator and a secondary amplifier, and X and Y-axis sample-and-hold circuits. Back-end digital circuitry, including an angle extraction module and a clock generator; The clock generator outputs are k1~k4, k5~k8, k9, k10, k11, k12, k13, and k14, respectively. The clock signals output from k1~k4 and k5~k8 are the eight-phase clock signals required by the four-phase rotating current modulator; the clock signals output from k9, k10, k11, and k12 are the sampling and holding clocks required by the correlated double sampling demodulation and secondary amplifier. The clock signals output from terminals k13 and k14 are the sampling clocks required by the X and Y axis sample-and-hold circuits; the eight clock input terminals of the four-phase rotating current modulator, clk1, clk2, clk3, clk4, clk5, clk6, clk7, and clk8, are respectively connected to the output terminals k1, k2, k3, k4, k5, k6, k7, and k8 of the clock generator; the output terminals Vo1, Vo2, Vo3, and Vo4 of the four-phase rotating current modulator are respectively connected to the input terminals Vp1, Vn1, Vp2, and Vn2 of the differential amplifier; The output terminals Vo_dda_n and Vo_dda_p of the differential amplifier are connected to the input terminals Vi_c1_p and Vi_c1_n of the correlated double sample demodulation and the secondary amplifier, respectively; the clock input terminals clkcds1, clkcds2, clksh1, and clksh2 of the correlated double sample demodulation and the secondary amplifier are connected to the output terminals k9, k10, k11, and k12 of the clock generator, respectively; the output terminals Vo_c2_p and Vo_c2_n of the correlated double sample demodulation and the secondary amplifier are connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits, respectively; the clock input terminals clksx and clksy of the X and Y axis sample-and-hold circuits are connected to the output terminals k13 and k14 of the clock generator, respectively; the output terminals Vh_x and Vh_y of the X and Y axis sample-and-hold circuits are connected to the input terminals Ax1 and Ay2 of the angle extraction module, respectively; the output terminal of the angle extraction module is connected to the sensor angle output terminal Angle. The differential amplifier consists of a six-terminal input, two-terminal output differential operational amplifier (DDA), two input resistors R1 and R3, and two feedback resistors R2 and R4. The correlated double-sample demodulation and secondary amplifier consists of a secondary amplifier circuit and two correlated double-sample circuits, CDS1 and CDS2. The clock input terminals L1 and L2 of the correlated double-sample circuit CDS1 are connected to the clock input terminals clkcds1 and clksh1 of the correlated double-sample demodulation and secondary amplifier, respectively. The signal input terminals are connected to the input terminals Vi_c1_p and Vi_c1_n of the correlated double-sample demodulation and secondary amplifier, and the signal output terminals Vo_c1_p and Vo_c1_n are connected to one end of resistors R5 and R7, respectively. The secondary amplifier circuit consists of input resistors R5 and R7, feedback resistors R6 and R8, and a fully differential operational amplifier FDA. The other ends of input resistors R5 and R7 are connected to the input terminals Vip and Vin of FDA, respectively. One end of feedback resistors R6 and R8 is connected to the input terminals Vip and Vin of FDA, respectively, and the other end is connected to the output terminals Vop and Von of FDA, respectively. The clock input terminals L3 and L4 of the correlated double sampling circuit CDS2 are connected to the clock input terminals clkcds2 and clksh2 of the correlated double sampling demodulator and secondary amplifier, respectively. The signal input terminals Vi_c2_p and Vi_c2_n are connected to the output terminals Vop and Von of FDA, respectively, and the signal output terminal is connected to the output terminals Vo_c2_p and Vo_c2_n of the correlated double sampling demodulator and secondary amplifier, respectively.

2. The fully integrated Hall angle sensor circuit as described in claim 1, characterized in that: The four-phase rotating current modulator includes, Four rotating current circuits with identical structure and parameters, four bias current sources with identical parameters, and four vertical Hall devices with identical structure and size; The four rotating current circuits are denoted as the first rotating current circuit CS1, the second rotating current circuit CS2, the third rotating current circuit CS3, and the fourth rotating current circuit CS4, respectively; the four bias current sources with the same parameters are denoted as the first bias current source I1, the second bias current source I2, the third bias current source I3, and the fourth bias current source I4, respectively, and are connected to the bias current input terminal Ibias of CS1, CS2, CS3, and CS4, respectively. The clock input terminals S1~S4 of CS1 and CS2, where S1~S4 represent four clock input terminals S1, S2, S3 and S4 respectively, are connected to the clock input terminals clk1, clk2, clk3 and clk4 of the four-phase rotating current modulator; the output terminals Vcp and Vcn of CS1 and CS2 are connected to the output terminals Vo1 and Vo2 of the four-phase rotating current modulator respectively; the clock input terminals S1~S4 of CS3 and CS4 are connected to the clock input terminals clk5, clk6, clk7 and clk8 of the four-phase rotating current modulator respectively. The output terminals Vcp and Vcn of CS3 and CS4 are connected to the output terminals Vo3 and Vo4 of the four-phase rotating current modulator, respectively. Four vertical Hall devices are denoted as X1, X2 and Y1, Y2, respectively. X1 and X2 are used to detect changes in the magnetic field in the X-axis direction, and Y1 and Y2 are used to detect changes in the magnetic field in the Y-axis direction. Each device has four terminals labeled a, b, c, and d. The four output terminals a, b, c, and d of the four vertical Hall devices X1, X2, Y1, and Y2 are connected to the four input terminals c1, c2, c3, and c4 of CS1, CS2, CS3, and CS4, respectively.

3. The fully integrated Hall angle sensor circuit as described in claim 2, characterized in that: The rotating current circuit includes 16 transmission gates, namely transmission gates T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, and T16; two common-source common-gate current sources, wherein the first common-source common-gate current source is composed of MOSFETs M1, M2, M3, M4, M5, M6, M7, and M8 and resistor R1, and the second common-source common-gate current source is composed of MOSFETs M9, M10, M11, M12, M13, and M14; four inverters, namely inverters INV1, INV2, INV3, and INV4; and a common-mode negative feedback circuit, composed of MOSFETs M15, M16, M17, M18, M19, M20, M21, and M22. The inputs of the four inverters INV1, INV2, INV3, and INV4 are respectively connected to the clock inputs S1, S2, S3, and S4 of the clock generation circuit, and their outputs are respectively connected to the control signal inputs Sn1, Sn2, Sn3, and Sn4 of the transmission gates. Of the 16 transmission gates, the control signal inputs for T1, T7, T12, and T14 are S1 and Sn1; the control signal inputs for T3, T5, T10, and T16 are S2 and Sn2; the control signal inputs for T4, T6, T9, and T15 are S3 and Sn3; and the control signal inputs for T2, T8, T11, and T13 are... The input terminals are S4 and Sn4; one end of transmission gates T1, T2, T3, and T4 is connected to the drain of M8, and the other end is connected to one end of T5, T6, T7, and T8, and the input terminals c1, c2, c3, and c4 of the rotating current circuit, respectively; the other end of T5, T6, T7, and T8 is connected to the drain of M11; one end of transmission gates T9, T10, T11, and T12 is connected to the output Vcp terminal, and the other end is connected to one end of T1, T4, T1, and T4, respectively; one end of transmission gates T13, T14, T15, and T16 is connected to the output Vcn terminal, and the other end is connected to one end of T3, T2, T3, and T2, respectively. The first common-source cascode current source is connected such that the gate terminals of M1, M2, M3, and M4 are connected together and connected to the drain terminal of M5. The source terminals of M1, M2, M3 and M4 are connected together and connected to the power supply voltage VDD; the drain terminals of M1, M2, M3 and M4 are connected to the source terminals of M5, M6, M7 and M8 respectively. The gate terminals of M5, M6, M7, and M8 are connected together and connected to the reference current source input terminal Ibias of the rotating current circuit; one end of resistor R1 is connected to the drain terminal of M5, and the other end is connected to the Ibias terminal of the rotating current circuit; the drain terminal of M6 is connected to the drain terminal of M9, the drain terminal of M7 is connected to the drain terminal of M10, and the drain terminal of M8 is connected to one end of transmission gates T1, T2, T3, and T4. The second common-source cascode current source is connected as follows: the gate terminals of M9, M10, and M11 are connected together and then connected to the drain terminal of M9; the source terminals of M9, M10, and M11 are connected to the drain terminals of M12, M13, and M14, respectively; the drain terminals of M9, M10, and M11 are connected to the drain terminals of M6, M7, and one end of transmission gate T5, respectively; the gate terminals of M13 and M14 are connected together and then connected to the gate terminal of M22; the gate terminal of M12 is connected to the gate terminal of M9; the source terminals of M12, M13, and M14 are connected together and then connected to power ground GND. The common-mode negative feedback circuit is connected as follows: the source terminals of M15 and M16 are connected to the power supply voltage VDD; the gate terminals of M15 and M16 are connected to the gate terminal of M14; the drain terminals of M15 and M16 are connected to the source terminals of M17 and M19, respectively; the source terminals of M17, M18, M19, and M20 are connected to the drain terminals of M15, M16, and M14, respectively; and the gate terminals of M17, M18, M19, and M20 are connected to... The common-mode input of the rotating current circuit is connected to the output terminal Vcp, the common-mode input terminal Vcm, and the output terminal Vcn of the rotating current circuit; the drain terminals of M17, M18, M19, and M20 are connected to the drain terminals of M21, M22, and M21, respectively; the gate terminals of M21 and M22 are connected to their respective drain terminals; the source terminals of M21 and M22 are both connected to the power ground GND.

4. The fully integrated Hall angle sensor circuit as described in claim 3, characterized in that: The first pair of input terminals Vp1 and Vn1 of the differential operational amplifier (DDA) are connected to the output terminals Vo1 and Vo2 of the four-phase rotating current modulator. The second pair of input terminals Vp2 and Vn2 are connected to the output terminals Vo3 and Vo4 of the four-phase rotating current modulator. The third pair of input terminals Vp3 and Vn3 are connected to one end of the input resistors R1 and R3, respectively. The other end of the input resistors R1 and R3 is connected to the common-mode level input terminal Vcm of the DDA. One end of the feedback resistors R2 and R4 is connected to the output terminals Vo_dda_n and Vo_dda_p of the differential operational amplifier (DDA), respectively. The other end is connected to the input terminals Vp3 and Vn3 of the DDA, respectively.

5. The fully integrated Hall angle sensor circuit as described in claim 4, characterized in that: The X and Y axis sample-and-hold circuits consist of two sample-and-hold circuits with identical structure and parameters, namely the first sample-and-hold circuit SH1 and the second sample-and-hold circuit SH2, and two low-pass filters with identical structure and parameters, namely the first low-pass filter LPF1 and the second low-pass filter LPF2. The clock input terminal L5 of the sample-and-hold circuit SH1 is connected to the clock input terminal clksx of the X and Y axis sample-and-hold circuits. The signal input terminals Vi_s1_p and Vi_s1_n are connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits, respectively. The output terminals Vo_s1_p and Vo_s1_n are connected to the low-pass filter LPF1, respectively. The input terminals VL_p1 and VL_n1 of the sample-and-hold circuit are connected to the output terminal Vh_x of the X and Y axis sample-and-hold circuits. The clock input terminal L6 of the sample-and-hold circuit SH2 is connected to the clock input terminal clksy of the X and Y axis sample-and-hold circuits. The signal input terminals Vi_s2_p and Vi_s2_n are connected to the input terminals Vp and Vn of the X and Y axis sample-and-hold circuits, respectively. The output terminals Vo_s2_p and Vo_s2_n are connected to the input terminals VL_p2 and VL_n2 of the low-pass filter LPF2, respectively. The output of the low-pass filter LPF2 is connected to the output terminal Vh_y of the X and Y axis sample-and-hold circuits.

6. A method for implementing a fully integrated Hall angle sensor circuit, as described in claim 5, characterized in that: include, Perform four-phase rotational modulation of Hall signal and offset signal; Amplify the differential Hall voltage signals in the X and Y axes; Perform relevant double sampling demodulation and secondary amplification; The Hall signal is sampled in both the X and Y axes; Angle extraction is performed.

7. The method for implementing the fully integrated Hall angle sensor circuit as described in claim 6, characterized in that: The four-phase rotation modulation of the Hall signal and the offset signal includes... Assuming the magnetic field signals input to X1 and Y1 are positive, and the magnetic field signals input to X2 and Y2 are negative, then the Hall voltages generated by X1 and X2 are VHX+VCMX and -VHX+VCMX, where VHX is the Hall voltage generated by the differential-mode magnetic field acting on X1 and X2 in the X-axis direction, and VCMX is the Hall voltage generated by the common-mode magnetic field acting on X1 and X2 in the X-axis direction. Then the Hall voltages generated by Y1 and Y2 are VHY+VCMY and -VHY+VCMY, where VHY is the Hall voltage generated by the differential-mode magnetic field acting on Y1 and Y2 in the Y-axis direction, and VCMY is the Hall voltage generated by the common-mode magnetic field acting on Y1 and Y2 in the Y-axis direction. Since the offset voltage of the vertical Hall device has a 90-degree rotational symmetry, assuming that the offset voltages generated by the bias currents of X1 and X2 during the four-phase rotation are VOS1, VOS2, VOS1, and VOS2 respectively during the first, second, third, and fourth phase rotations; and assuming that the offset voltages generated by the bias currents of Y1 and Y2 during the four-phase rotation are VOS3, VOS4, VOS3, and VOS4 respectively during the first, second, third, and fourth phase rotations. The four-phase rotational modulation process of the Hall signal and the offset signal involves the X-axis and Y-axis directions.

8. The method for implementing the fully integrated Hall angle sensor circuit as described in claim 7, characterized in that: The four-phase rotation modulation process of the Hall signal and offset signal in the X-axis direction includes: when the bias currents of X1 and X2 are rotated in the first phase of the four-phase rotation process, the clock input terminal clk1 of the four-phase rotating current modulator is at a high level, and all other clock input terminals are at a low level. The voltage output by the rotating current circuit CS1 is VHX+VOS1+VCMX, and the voltage output by the rotating current circuit CS2 is -VHX+VOS1+VCMX. When the bias currents of X1 and X2 undergo the second phase rotation in the four-phase rotation process, the clock input terminal clk2 of the four-phase rotating current modulator is high, while all other clock input terminals are low. The voltage output of the rotating current circuit CS1 is -VHX-VOS2-VCMX, and the voltage output of the rotating current circuit CS2 is VHX-VOS2-VCMX. When the bias currents of X1 and X2 undergo the third phase rotation in the four-phase rotation process, the clock input terminal clk3 of the four-phase rotating current modulator is high, while all other clock input terminals are low. When the bias current of X1 and X2 is at a low level, the voltage output of the rotating current circuit CS1 is -VHX+VOS1-VCMX, and the voltage output of the rotating current circuit CS2 is VHX+VOS1-VCMX. When the bias current of X1 and X2 is rotated in the fourth phase of the four-phase rotation process, the clock input terminal clk4 of the four-phase rotating current modulator is at a high level, and all other clock input terminals are at a low level. The voltage output of the rotating current circuit CS1 is VHX-VOS2+VCMX, and the voltage output of the rotating current circuit CS2 is -VHX-VOS2+VCMX. The four-phase rotation modulation process of the Hall signal and offset signal in the Y-axis direction includes: when the first phase of the four-phase rotation process is applied to the bias currents of Y1 and Y2, the clock input terminal clk5 of the four-phase rotating current modulator is high, and all other clock input terminals are low. The voltage output by the rotating current circuit CS3 is VHY+VOS3+VCMY, and the voltage output by the rotating current circuit CS4 is -VHY+VOS3+VCMY. When the second phase of the four-phase rotation process is applied to the bias currents of Y1 and Y2, the clock input terminal clk6 of the four-phase rotating current modulator is high, and all other clock input terminals are low. The voltage output by the rotating current circuit CS3 is -VHY-VOS4-VCMY, and the voltage output by the rotating current circuit CS4 is... When the bias currents of Y1 and Y2 undergo the third phase rotation in the four-phase rotation process, the clock input clk7 of the four-phase rotating current modulator is at a high level, while all other clock inputs are at a low level. The voltage output of the rotating current circuit CS3 is -VHY+VOS3-VCMY, and the voltage output of the rotating current circuit CS4 is VHY+VOS3-VCMY. When the bias currents of Y1 and Y2 undergo the fourth phase rotation in the four-phase rotation process, the clock input clk8 of the four-phase rotating current modulator is at a high level, while all other clock inputs are at a low level. The voltage output of the rotating current circuit CS3 is VHY-VOS4+VCMY, and the voltage output of the rotating current circuit CS4 is -VHY-VOS4+VCMY.

9. The method for implementing the fully integrated Hall angle sensor circuit as described in claim 8, characterized in that: The amplification of the differential Hall voltage signals in the X and Y axes includes the following steps: The four-phase Hall voltage and offset voltage aliasing signals from the two X-axis directions output by CS1 and CS2 are differentially amplified to obtain four-phase output voltages: A1×(2VHX+VOS_DDA), A1×(-2VHX+VOS_DDA), A1×(-2VHX+VOS_DDA), and A1×(2VHX+VOS_DDA), where A1 is the gain of the differential amplifier and VOS_DDA is the offset voltage of DDA. The four-phase Hall voltage and offset voltage aliasing signals output from the two Y-axis directions of CS3 and CS4 are differentially amplified to obtain four phase output voltages: A1×(2VHY+VOS_DDA), A1×(-2VHY+VOS_DDA), A1×(-2VHY+VOS_DDA), and A1×(2VHY+VOS_DDA).

10. The method for implementing the fully integrated Hall angle sensor circuit as described in claim 9, characterized in that: The aforementioned correlation double sampling demodulation and secondary amplification include, When performing correlated double sampling demodulation on the Hall voltage in the X-axis direction, the input clock terminals clkcds1 and clksh1 of the correlated double sampling demodulation and secondary amplifier are at high levels. The correlated double sampling circuit CDS1 calculates the difference between the first and second phases of the four-phase Hall voltage in the X-axis direction output from the differential amplifier to obtain the output voltage A1×(4VHX). After being amplified by the secondary amplifier circuit, the output voltage A2×{A1×(4VHX)+VOS_FDA} is obtained, where A2 is the gain of the secondary amplifier circuit. VOS_FDA represents the offset of FDA; CDS1 calculates the difference between the third and fourth phases of the four-phase Hall voltages in the X-axis direction output by the differential amplifier to obtain the output voltage -A1×4VHX, which is then amplified by the secondary amplifier circuit to obtain the output voltage A2×{-A1×4VHX+VOS_FDA}; the correlated double sampling circuit CDS2 calculates the difference between the X-axis output voltages of the first, second, third, and fourth phases amplified by the secondary amplifier circuit of the correlated double sampling circuit CDS1 to obtain the output voltage A2×A1×8VHX; When performing correlated double sampling demodulation on the Hall voltage in the Y-axis direction, the input clock terminals clkcds2 and clksh2 of the correlated double sampling demodulation and secondary amplifier are at high level. The correlated double sampling circuit CDS1 calculates the difference between the first and second phases of the four-phase Hall voltage in the Y-axis direction output from the differential amplifier to obtain the output voltage A1×4VHY. After being amplified by the secondary amplifier circuit, the output voltage A2×{A1×(4VHY)+VOS_FDA} is obtained. CDS1 calculates the difference between the third and fourth phases of the four-phase Hall voltage in the Y-axis direction output from the differential amplifier to obtain the output voltage -A1×4VHY. After being amplified by the secondary amplifier circuit, the output voltage A2×{-A1×(4VHY)+VOS_FDA} is obtained. The correlated double sampling circuit CDS2 calculates the difference between the output voltages in the Y-axis direction of the correlated double sampling circuit CDS1 after amplification by the secondary amplifier circuit for the first, second, third, and fourth phases to obtain the output voltage A2×A1×8VHY.