Offset voltage detection circuit and detection method for four-phase current rotary Hall sensor
By designing a four-phase current rotation Hall sensor offset voltage detection circuit, using a discrete time sampling module and a switching capacitor amplification module, the failure problem of offset voltage detection in the existing technology is solved, and the offset voltage of the four-phase current rotation Hall sensor is realized Accurate detection and efficient response.
Patent Information
- Application Number
- CN202410937323.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-08
AI Technical Summary
The existing four-phase current rotation Hall sensors have failure problems when detecting offset voltages, especially when the input offset voltage is too large, and it is difficult to identify voltage offsets when the offset voltage is small, which cannot meet the actual needs.
A four-phase current rotating Hall sensor offset voltage detection circuit is designed, including a discrete time sampling module, a switching capacitor amplification module and a switching capacitor comparison module. The offset output is calculated by sampling and amplifying the two-phase Hall signal with a phase difference of 180°. The voltage is compared with the set threshold to achieve detection of offset voltage.
Accurate detection of offset voltage of four-phase current rotation Hall sensor is achieved, detection efficiency and response speed is improved, and it can detect +Vos within half a rotation period and perform bidirectional detection within one rotation period, which is equivalent to detection| Vos|, ensures the accuracy and reliability of the detection.
Smart Images

Figure CN118914632A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of test hardware circuit generation, and in particular to a four-phase current rotation Hall sensor offset voltage detection circuit and a detection method. Background Art
[0002] Hall current sensor is a method of detecting current using the Hall effect. It has the advantages of high precision, high stability, high frequency response, and good electrical isolation. It is often used in large current detection fields such as automobiles and instruments.
[0003] For the Hall element integrated on the chip, it is easy to be affected by factors such as process deviation, external stress, temperature, electromagnetic interference, etc. to produce Hall offset, thereby affecting the result of current detection; rotating current modulation is usually used to eliminate the influence of offset voltage. For example, the Chinese invention patent with application number 201310515616.8 provides a four-phase current rotation circuit and method for eliminating Hall offset. The current rotation circuit is connected through the four ports of the Hall sensor, and the Hall sensor is continuously changed in four different working modes under the control of the clock signal. After the Hall signal passes through the current rotation circuit, it is introduced into the amplifier circuit, which is connected to the high-pass filter. The other end of the high-pass filter is connected to the double-correlation sampling circuit. The demodulated signal is input into the addition circuit with sampling and holding function, and the signals generated by the previous and next cycles are added, and then output through the low-pass filter.
[0004] However, when the input offset voltage is too large, the offset cancellation may fail. When the offset voltage is small, it is difficult to accurately detect whether there is a voltage offset, so it cannot meet actual usage requirements. Summary of the invention
[0005] The purpose of the present invention is to provide a four-phase current rotation Hall sensor offset voltage detection circuit and detection method to solve the current four-phase current rotation Hall sensor offset voltage is difficult to detect the technical problem.
[0006] The technical solution of the present invention to solve the above technical problems is as follows:
[0007] A four-phase current rotation Hall sensor offset voltage detection circuit, comprising:
[0008] The discrete time sampling module is used to sample and calculate the output of the four-phase current rotation Hall sensor according to the two-phase Hall signal with a phase difference of 180° to obtain the offset output voltage V in ;
[0009] The switch capacitor amplifier module is used to complete the first offset output voltage V in the discrete time sampling module according to the two-phase Hall signal with a phase difference of 180° inCalculate the offset output voltage V obtained before sampling the Hall sensor output with the second four-phase current rotation in Amplify and get the offset amplified voltage V out ;
[0010] Switched capacitor comparison module, used to determine the offset threshold voltage V according to usage requirements ref , and based on the two-phase Hall signal with a phase difference of 180°, before sampling the output of the second four-phase current rotation Hall sensor, the offset amplification voltage V out Sampling and comparing with the offset threshold voltage V ref Compare and obtain the offset voltage detection result.
[0011] It is further defined that the discrete time sampling module includes two sampling units connected in parallel, and the sampling unit includes a switch switch and sampling capacitor C D , the switch With switch Parallel, switch and switch Both with sampling capacitor C D One end of the sampling capacitor C D The other end of the switch Connect to constant voltage V cm At the same time, it is also connected to the switched capacitor amplifier module. With switch Both are passed through the clock signal CLK 1 Control, switch Through the clock signal CLK 2 control;
[0012] The second phase Hall signal and the fourth phase Hall signal of the four-phase current rotation Hall sensor are both connected to the clock signal CLK 1 and clock signal CLK 2 In association, the second-phase Hall signal is 180° out of phase with the fourth-phase Hall signal.
[0013] It is further defined that the clock signal CLK 1 At the beginning of the fourth phase Hall signal After a certain time, the second phase Hall signal starts After a certain time, the clock signal CLK changes from low level to high level. 1 It changes from high level to low level when the fourth phase Hall signal ends and the second phase Hall signal ends;
[0014] The clock signal CLK 2 After the fourth phase Hall signal starts, the clock signal CLK changes from low level to high level after the second phase Hall signal starts.2 At the beginning of the fourth phase Hall signal After a certain time, the second phase Hall signal starts After a certain period of time, it changes from high level to low level.
[0015] It is further defined that the switch capacitor amplification module includes a switch capacitor amplifier and two switch capacitor amplification units, one switch capacitor amplification unit is connected to the negative electrode of the switch capacitor amplifier input terminal and the positive electrode of the switch capacitor amplifier output terminal, and the other switch capacitor amplification unit is connected to the positive electrode of the switch capacitor amplifier input terminal and the negative electrode of the switch capacitor amplifier output terminal;
[0016] The switched capacitor amplification unit includes a switch switch switch switch switch Offset storage capacitor C s and capacitor C H , the switch switch and switch Both are passed through the clock signal CLK 1 Control, switch and switch Both are passed through the clock signal CLK 2 control;
[0017] Sampling capacitor C D The other end is also connected through the switch and the offset storage capacitor C s One end of the offset storage capacitor C s One end of the switch Connect to constant voltage V cm ,switch One end is connected to the switch and the offset storage capacitor C s Between, the offset storage capacitor C s The other end is connected to the input end of the switched capacitor amplifier;
[0018] Capacitor C H One end is connected to the offset storage capacitor C s The other end is connected to the input of the switched capacitor amplifier, and the capacitor C H The other end of the switch With constant voltage V cm At the same time, the switch Connected to the output of the switched capacitor amplifier, the switch One end is connected to the capacitor C H With switch between;
[0019] switch With capacitor C H Parallel, switch Located at switch With capacitor C H The output end of the switched capacitor amplifier is also connected to the switched capacitor comparison module.
[0020] It is further defined that the switch capacitor comparison module includes a regenerative comparator, a first switch capacitor comparison unit and a second switch capacitor comparison unit, the first switch capacitor comparison unit is connected between the positive electrode of the switch capacitor amplifier output terminal and the positive electrode of the regenerative comparator, and the second switch capacitor comparison unit is connected between the negative electrode of the switch capacitor amplifier output terminal and the negative electrode of the regenerative comparator;
[0021] The first switch capacitor comparison unit and the second switch capacitor comparison unit both include a capacitor C A , capacitor C B ,switch switch switch and switch
[0022] In the first switch capacitor comparison unit, the capacitor C A One end of the capacitor is connected to the positive terminal of the switched capacitor amplifier output, and the capacitor C A The other end of the switch Connect to the positive terminal of the regenerative comparator input; switch One end is connected to the capacitor C A With switch Between, switch The other end is connected to the common mode voltage V cm Connect; switch With switch Parallel, switch One end of the switch is grounded. The other end of the capacitor C B Connect one end of the switch One end is connected to the offset threshold voltage V ref ,switch The other end of the capacitor C B One end of the capacitor C B The other end is connected to the negative electrode of the regenerative comparator input terminal;
[0023] In the second switch capacitor comparison unit, the capacitor C A One end of the capacitor is connected to the negative terminal of the switched capacitor amplifier output, and the capacitor C A The other end of the switch Connect to the negative terminal of the regenerative comparator input; switch One end is connected to the capacitor CA With switch Between, switch The other end is connected to the common mode voltage V cm Connect; switch With switch Parallel, switch One end is connected to the offset threshold voltage V ref ,switch The other end of the capacitor C B Connect one end of the switch One end of the switch is grounded. The other end of the capacitor C B One end of the capacitor C B The other end is connected to the negative electrode of the regenerative comparator input terminal;
[0024] switch and switch Both are passed through the clock signal CLK 3 Control, switch and switch Both are passed through the clock signal CLK 4 control.
[0025] It is further defined that the clock signal CLK 3 The clock signal CLK 2 After changing to high level for half a period, it changes from high level to low level. The clock signal CLK 3 The clock signal CLK 2 When it changes to low level, it changes from low level to high level;
[0026] Clock signal CLK 4 The clock signal CLK 2 After half a period of transition to high level, the clock signal CLK changes from low level to high level. 4 The clock signal CLK 2 When it changes to a low level, it changes from a high level to a low level.
[0027] A four-phase current rotation Hall sensor offset voltage detection method, based on the above-mentioned four-phase current rotation Hall sensor offset voltage detection circuit, comprises the following steps:
[0028] S1. Sample the output of the four-phase current rotation Hall sensor according to the two-phase Hall signal with a phase difference of 180° and calculate it to obtain the offset output voltage V in ;
[0029] S2, based on the two-phase Hall signal with a phase difference of 180°, the discrete time sampling module completes the first offset output voltage V inCalculate the offset output voltage V obtained before sampling the Hall sensor output with the second four-phase current rotation in Amplify and get the offset amplified voltage V out ;
[0030] S3. Determine the offset threshold voltage V according to the usage requirements ref , and based on the two-phase Hall signal with a phase difference of 180°, before sampling the output of the second four-phase current rotation Hall sensor, the offset amplification voltage V out Sampling and comparing with the offset threshold voltage V ref Compare and obtain the offset voltage detection result.
[0031] It is further defined that step S1 comprises the following steps:
[0032] S11, at the clock signal CLK 1 When the level is high, the two sampling capacitors C D Perform the first Hall voltage sampling respectively, and obtain the collected voltage V 1+ And the acquisition voltage V 1- ;
[0033] S12, at the clock signal CLK 2 When the level is high, the two sampling capacitors C D Perform the second Hall voltage sampling respectively, and collect the voltage V 2+ And the acquisition voltage V 2- At the same time, according to the collected voltage V 1+ And the acquisition voltage V 1- With the collection voltage V 2+ And the acquisition voltage V 2- Calculate the offset output voltage V in ;
[0034] Among them, V in =(V 1+ -V 1- )-(V 2+ -V 2- ), where V 1+ -V 1- =V hall -V os , V 2+ -V 2- =V hall +V os , V in =2V os , V hall is the Hall voltage, V os is the offset voltage.
[0035] It is further defined that step S2 comprises the following steps:
[0036] S21, at the clock signal CLK 1 When it is high, the offset storage capacitor C s Offset the offset voltage of the switched capacitor amplifier;
[0037] S22, at the clock signal CLK 2 When it is high level, the offset output voltage V obtained in step S12 is obtained. in and through the switched capacitor amplifier to offset the output voltage V in Amplify to get the offset amplified voltage V out ;
[0038] Among them, V out =V out+ -V out- , V out+ is the positive voltage at the output of the switched capacitor amplifier, V out- is the negative voltage at the output of the switched capacitor amplifier.
[0039] It is further defined that step S3 comprises the following steps:
[0040] S31, at the clock signal CLK 3 When the voltage V is high, the first switch capacitor comparison unit receives the positive voltage V at the output terminal of the switch capacitor amplifier. out+ The second switch capacitor comparison unit receives the negative voltage V at the output terminal of the switch capacitor amplifier. out- ;
[0041] S32, at the clock signal CLK 4 When the voltage is high, the capacitor C B The voltage drop is the comparison voltage C B1 and transmitted to the positive electrode of the regenerative comparator input terminal, the capacitor C in the second switched capacitor comparison unit B The voltage rises to the comparison voltage C B2 And sent to the negative electrode of the regenerative comparator input terminal. If the output terminal of the regenerative comparator outputs a high level, it is determined that the offset voltage V os Greater than the offset threshold voltage V ref , otherwise the offset voltage V os Meet the offset threshold voltage V ref ;
[0042] Among them, C B1 =V out+ -kV ref , C B2 =V out+ +kV ref, k is the proportionality coefficient.
[0043] The beneficial effects of the present invention are:
[0044] 1. The present invention uses a discrete time sampling module to sample and calculate the two-phase Hall signal with a phase difference of 180° to obtain the offset output voltage V in , the resulting offset output voltage V in The discrete time sampling module can perform the next Hall signal sampling while outputting to the switched capacitor amplifier module, and the next offset output voltage V in The calculation can be completed when the offset output voltage V in The switch capacitor comparison module then completes the offset voltage and the offset threshold voltage V ref The detection results are obtained by comparison, so that the offset voltage detection of the four-phase current rotation Hall sensor can be realized, and at the same time, the sampling and calculation time can be reasonably utilized to improve the detection efficiency and make the detection response faster and more timely.
[0045] 2. The present invention sets the clock signal CLK 1 At the start of the second phase Hall signal After a certain time, the clock signal CLK changes to a high level. 2 After the fourth phase Hall signal starts to turn into a high level, thus achieving +V os Detection; at the same time set the clock signal CLK 1 At the beginning of the fourth phase Hall signal After a certain time, the clock signal CLK changes to a high level. 2 After the second phase Hall signal starts to turn to high level, thus achieving +V os and -V os Perform bidirectional detection, which is equivalent to detecting |V os |. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a schematic diagram of the offset voltage detection circuit of the four-phase current rotation Hall sensor of the present invention;
[0047] Figure 2 This is a circuit diagram of a discrete time sampling module of the present invention;
[0048] Figure 3 This is a timing diagram of the clock signal of the present invention;
[0049] Figure 4 This is a circuit diagram of a switched capacitor amplifier module of the present invention;
[0050] Figure 5 This is a circuit diagram of the switch capacitor comparison module of the present invention. DETAILED DESCRIPTION
[0051] Example 1
[0052] refer to Figure 1 This embodiment provides a four-phase current rotation Hall sensor offset voltage detection circuit, including:
[0053] The discrete time sampling module is used to sample and calculate the output of the four-phase current rotation Hall sensor according to the two-phase Hall signal with a phase difference of 180° to obtain the offset output voltage V in ;
[0054] Among them, since the output of the four-phase current rotation Hall sensor differs by 90° each time and the output duration of each time is the same, the output of the four-phase voltage of the four-phase current rotation Hall sensor is achieved by sequentially inputting the first-phase Hall signal, the second-phase Hall signal, the third-phase Hall signal and the fourth-phase Hall signal with a phase difference of 90°.
[0055] By sampling the output voltage of the four-phase current rotation Hall sensor through two-phase Hall signals with a phase difference of 180°, for example, the second-phase Hall signal and the fourth-phase Hall signal, the second-phase output voltage V hall +V os And the fourth phase output voltage V hall -V os .
[0056] Then, the collected second-phase output voltage and fourth-phase output voltage are calculated to obtain the offset output voltage V in :
[0057] V in =(V hall -V os )-(V hall +V os )=2V os
[0058] Among them, V hall is the Hall voltage, V os is the offset voltage.
[0059] The switch capacitor amplifier module is used to complete the first offset output voltage V in the discrete time sampling module according to the two-phase Hall signal with a phase difference of 180° in Calculate the offset output voltage V obtained before sampling the Hall sensor output with the second four-phase current rotation in Amplify and get the offset amplified voltage V out ;
[0060] Specifically, since the actual offset output voltage is usually in the millivolt level, there is a large error in the detection process, which makes the detection result inaccurate. Therefore, it is necessary to in to zoom in.
[0061] In order to improve the response speed and sampling and calculation efficiency, it is selected to complete the offset output voltage V in After calculation, the second four-phase current rotation Hall sensor output sampling is performed. Before the second four-phase current rotation Hall sensor output sampling, the offset output voltage V obtained for the first time is in Sampling and amplification make the second offset output voltage V in After calculation, the first offset output voltage V in The amplification of the four-phase current rotation Hall sensor output sampling and the offset output voltage V in Calculate the offset output voltage with V in Amplify, reduce interval time and improve work efficiency.
[0062] Switched capacitor comparison module, used to determine the offset threshold voltage V according to usage requirements ref , and based on the two-phase Hall signal with a phase difference of 180°, before sampling the output of the second four-phase current rotation Hall sensor, the offset amplification voltage V out Sampling and comparing with the offset threshold voltage V ref Compare and obtain the offset voltage detection result.
[0063] For further explanation, see Figure 2 The discrete time sampling module includes two parallel sampling units, the sampling unit includes a switch switch and sampling capacitor C D , the switch With switch Parallel, switch and switch Both with sampling capacitor C D One end of the sampling capacitor C D The other end of the switch Connect to constant voltage V cm At the same time, it is also connected to the switched capacitor amplifier module. With switch Both are passed through the clock signal CLK 1 Control, switch Through the clock signal CLK 2 control.
[0064] The second phase Hall signal and the fourth phase Hall signal of the four-phase current rotation Hall sensor are both connected to the clock signal CLK1 and clock signal CLK 2 In association, the second-phase Hall signal is 180° out of phase with the fourth-phase Hall signal.
[0065] Specifically, through the clock signal CLK 1 Switch Controlled by the clock signal CLK 2 Switch The discrete time sampling module can collect the second phase voltage and the fourth phase voltage in different time periods, and obtain the offset output voltage V before the next voltage collection. in Calculate and output, so as to make full use of time and improve detection efficiency.
[0066] Therefore, the clock signal CLK 1 and clock signal CLK 2 They are associated with the second phase Hall signal and the fourth phase Hall signal which are 180° apart. For example, when the four-phase current rotation Hall sensor outputs the third phase voltage or the first phase voltage, the output voltage V is offset. in Calculation, in the figure, V in+ is the positive output voltage of the sampling unit, V in- is the negative output voltage of the sampling unit.
[0067] Preferably, reference Figure 3 , clock signal CLK 1 At the beginning of the fourth phase Hall signal After a certain time, the second phase Hall signal starts After a certain time, the clock signal CLK changes from low level to high level. 1 When the fourth phase Hall signal ends and the second phase Hall signal ends, it changes from high level to low level.
[0068] The clock signal CLK 2 After the fourth phase Hall signal starts, the clock signal CLK changes from low level to high level after the second phase Hall signal starts. 2 At the beginning of the fourth phase Hall signal After a certain time, the second phase Hall signal starts After a certain period of time, it changes from high level to low level.
[0069] Further explanation, at the beginning of the fourth phase Hall signal After time, the clock signal CLK 1 High level and input switch and switch switch and switch Both are closed, the clock signal CLK 2is low level and input switch switch Disconnect; at this time, the two sampling capacitors C D The left side of the sample is respectively obtained V 1+ and V 1- , sampling capacitor C D The right side of is a constant voltage V cm ; When the fourth phase Hall signal ends, the clock signal CLK 1 With the clock signal CLK 2 All are low level until the second phase Hall signal starts During this time, the clock signal CLK 2 High level and input switch switch Closed, clock signal CLK 1 is low level and input switch and switch switch and switch Both sampling capacitors C D The left side of the sample is respectively obtained V 2+ and V 2- , two sampling capacitors C D The right side of the sampling unit outputs the positive output voltage V in+ and the negative output voltage V in- , complete the output voltage V in Calculation and output.
[0070] Then, the second phase Hall signal starts After time, the clock signal CLK 1 With the clock signal CLK 2 All are low level until the second phase Hall signal starts When the time is up, the clock signal CLK 1 High level and input switch and switch switch and switch Both are closed, the clock signal CLK 2 is low level and input switch switch Disconnect; at this time, the two sampling capacitors C D The left side of the sample is respectively obtained V 1+ and V 1- , sampling capacitor C D The right side of is a constant voltage V cm ; When the fourth phase Hall signal starts During this time, the clock signal CLK 2 High level and input switch switch Closed, clock signal CLK 1 is low level and input switch and switch switch and switch Both sampling capacitors C D The left side of the sample is respectively obtained V 2+ and V 2- , two sampling capacitors C D The right side of the sampling unit outputs the positive output voltage V in+ and the negative output voltage V in- , complete the output voltage V in Calculation and output.
[0071] In this way, the +V os and -V os Perform bidirectional detection, which is equivalent to detecting |V os |, thus ensuring the detection is accurate and reliable.
[0072] For further explanation, see Figure 4 The switched capacitor amplifier module includes a switched capacitor amplifier and two switched capacitor amplifier units, one switched capacitor amplifier unit is connected to the negative pole of the switched capacitor amplifier input terminal and the positive pole of the switched capacitor amplifier output terminal, and the other switched capacitor amplifier unit is connected to the positive pole of the switched capacitor amplifier input terminal and the negative pole of the switched capacitor amplifier output terminal.
[0073] The switched capacitor amplification unit includes a switch switch switch switch switch Offset storage capacitor C s and capacitor C H , the switch switch and switch Both are passed through the clock signal CLK 1 Control, switch and switch Both are passed through the clock signal CLK 2 control.
[0074] Sampling capacitor C D The other end is also connected through the switch and the offset storage capacitor C s One end of the offset storage capacitor C s One end of the switch Connect to constant voltage V cm ,switch One end is connected to the switch and the offset storage capacitor C s Between, the offset storage capacitor C s The other end is connected to the input end of the switched capacitor amplifier.
[0075] Capacitor C H One end is connected to the offset storage capacitor C s The other end is connected to the input of the switched capacitor amplifier, and the capacitor C H The other end of the switch With constant voltage V cm At the same time, the switch Connected to the output of the switched capacitor amplifier, the switch One end is connected to the capacitor C H With switch between.
[0076] switch With capacitor C H Parallel, switch Located at switch With capacitor C H The output end of the switched capacitor amplifier is also connected to the switched capacitor comparison module.
[0077] Specifically, in order to prevent the switched capacitor amplifier from receiving an offset output voltage V due to its own voltage offset, in The effect is amplified, resulting in insufficient detection accuracy and reliability, so the offset storage capacitor C is increased. s , which is used to offset the offset voltage of the switched capacitor amplifier, so that the switched capacitor amplifier outputs an offset amplified voltage V out :
[0078] V out =V out+ -V out-
[0079]
[0080] Among them, V out+ is the positive voltage at the output of the switched capacitor amplifier, V out- is the negative voltage at the output of the switched capacitor amplifier, so the offset amplifier voltage V out It is not affected by the offset voltage of the switched capacitor amplifier and can be adjusted by adjusting the capacitor C H The size of the offset storage capacitor C s The size can be adjusted to suit your needs.
[0081] At the same time, according to the clock signal CLK 1With the clock signal CLK 2 , so that the clock signal CLK 1 With the clock signal CLK 2 When both are high level, voltage acquisition is performed and the calculated offset output voltage V in Output to the switched capacitor amplifier module, at the next clock signal CLK 1 The offset output voltage V in Amplification, synchronous processing and time saving.
[0082] For further explanation, see Figure 5 The switching capacitor comparison module includes a regenerative comparator, a first switching capacitor comparison unit and a second switching capacitor comparison unit. The first switching capacitor comparison unit is connected between the positive electrode of the switching capacitor amplifier output terminal and the positive electrode of the regenerative comparator, and the second switching capacitor comparison unit is connected between the negative electrode of the switching capacitor amplifier output terminal and the negative electrode of the regenerative comparator.
[0083] The first switch capacitor comparison unit and the second switch capacitor comparison unit both include a capacitor C A , capacitor C B ,switch switch switch and switch
[0084] In the first switch capacitor comparison unit, the capacitor C A One end of the capacitor is connected to the positive terminal of the switched capacitor amplifier output, and the capacitor C A The other end of the switch Connect to the positive terminal of the regenerative comparator input; switch One end is connected to the capacitor C A With switch Between, switch The other end is connected to the common mode voltage V cm Connect; switch With switch Parallel, switch One end of the switch is grounded. The other end of the capacitor C B Connect one end of the switch One end is connected to the offset threshold voltage V ref ,switch The other end of the capacitor C B One end of the capacitor C B The other end is connected to the negative terminal of the regenerative comparator input.
[0085] In the second switch capacitor comparison unit, the capacitor C AOne end of the capacitor is connected to the negative terminal of the switched capacitor amplifier output, and the capacitor C A The other end of the switch Connect to the negative terminal of the regenerative comparator input; switch One end is connected to the capacitor C A With switch Between, switch The other end is connected to the common mode voltage V cm Connect; switch With switch Parallel, switch One end is connected to the offset threshold voltage V ref ,switch The other end of the capacitor C B Connect one end of the switch One end of the switch is grounded. The other end of the capacitor C B One end of the capacitor C B The other end is connected to the negative terminal of the regenerative comparator input.
[0086] switch and switch Both are passed through the clock signal CLK 3 Control, switch and switch Both are passed through the clock signal CLK 4 control.
[0087] Clock signal CLK 3 The clock signal CLK 2 After changing to high level for half a period, it changes from high level to low level. The clock signal CLK 3 The clock signal CLK 2 When it changes to a low level, it changes from a low level to a high level; the clock signal CLK 4 The clock signal CLK 2 After half a period of transition to high level, the clock signal CLK changes from low level to high level. 4 The clock signal CLK 2 When it changes to a low level, it changes from a high level to a low level.
[0088] Specifically, when the positive voltage V out+ The negative voltage V out- The first switching capacitor comparison unit and the second switching capacitor comparison unit are input to the corresponding first switching capacitor comparison unit and the second switching capacitor comparison unit. With switch The connection position is different, resulting in the clock signal CLK 3and clock signal CLK 4 The capacitor C in the first switched capacitor comparison unit B The output voltage to the regenerative comparator is V out+ -kV ref , the capacitor C in the second switch capacitor comparison unit B The output voltage to the regenerative comparator is V out+ +kV ref , when the capacitor C B With capacitor C B When k is the same, 0.5, the regenerative comparator can judge V out+ -kV ref With V out- +kV ref The judgment result can be obtained by the size relationship.
[0089] Among them, V out+ -kV ref With V out- +kV ref The judgment of size relationship is converted into (V out+ -kV ref )-(V out- +kV ref ) and 0; So we get Thus, through V os With V ref Compare the test results to determine whether they meet the requirements.
[0090] Clock signal CLK 3 and clock signal CLK 4 Both are related to the clock signal CLK 2 The offset output voltage V can be achieved after completing two voltage acquisitions within half a rotation period. in The amplification and offset amplification voltage V out and the offset threshold voltage V ref The detection results are obtained by comparison, with high detection efficiency and timely response.
[0091] Example 2
[0092] Based on the four-phase current rotation Hall sensor offset voltage detection circuit provided in Example 1, this embodiment provides a four-phase current rotation Hall sensor offset voltage detection method, including the following steps:
[0093] S1. Sample the output of the four-phase current rotation Hall sensor according to the two-phase Hall signal with a phase difference of 180° and calculate it to obtain the offset output voltage V in ;
[0094] S2, based on the two-phase Hall signal with a phase difference of 180°, the discrete time sampling module completes the first offset output voltage V in Calculate the offset output voltage V obtained before sampling the Hall sensor output with the second four-phase current rotation in Amplify and get the offset amplified voltage V out ;
[0095] S3. Determine the offset threshold voltage V according to the usage requirements ref , and based on the two-phase Hall signal with a phase difference of 180°, before sampling the output of the second four-phase current rotation Hall sensor, the offset amplification voltage V out Sampling and comparing with the offset threshold voltage V ref Compare and obtain the offset voltage detection result.
[0096] Step S1 includes the following steps:
[0097] S11, at the clock signal CLK 1 When the level is high, the two sampling capacitors C D Perform the first Hall voltage sampling respectively, and obtain the collected voltage V 1+ And the acquisition voltage V 1- ;
[0098] S12, at the clock signal CLK 2 When the level is high, the two sampling capacitors C D Perform the second Hall voltage sampling respectively, and collect the voltage V 2+ And the acquisition voltage V 2- At the same time, according to the collected voltage V 1+ And the acquisition voltage V 1- With the collection voltage V 2+ And the acquisition voltage V 2- Calculate the offset output voltage V in ;
[0099] Among them, V in =(V 1+ -V 1- )-(V 2+ -V 2- ), where V 1+ -V 1- =V hall -V os , V 2+ -V 2- =V hall +V os , V in =2V os , V hall is the Hall voltage, Vos is the offset voltage.
[0100] Step S2 includes the following steps:
[0101] S21, at the clock signal CLK 1 When it is high, the offset storage capacitor C s Offset the offset voltage of the switched capacitor amplifier;
[0102] S22, at the clock signal CLK 2 When it is high level, the offset output voltage V obtained in step S12 is obtained. in and through the switched capacitor amplifier to offset the output voltage V in Amplify to get the offset amplified voltage V out ;
[0103] Among them, V out =V out+ -V out- , V out+ is the positive voltage at the output of the switched capacitor amplifier, V out- is the negative voltage at the output of the switched capacitor amplifier.
[0104] Step S3 includes the following steps:
[0105] S31, at the clock signal CLK 3 When the voltage V is high, the first switch capacitor comparison unit receives the positive voltage V at the output terminal of the switch capacitor amplifier. out+ The second switch capacitor comparison unit receives the negative voltage V at the output terminal of the switch capacitor amplifier. out- ;
[0106] S32, at the clock signal CLK 4 When the voltage is high, the capacitor C B The voltage drop is the comparison voltage C B1 and transmitted to the positive electrode of the regenerative comparator input terminal, the capacitor C in the second switched capacitor comparison unit B The voltage rises to the comparison voltage C B2 And sent to the negative electrode of the regenerative comparator input terminal. If the output terminal of the regenerative comparator outputs a high level, it is determined that the offset voltage V os Greater than the offset threshold voltage V ref , otherwise the offset voltage V os Meet the offset threshold voltage V ref ;
[0107] Among them, C B1 =V out+ -kV ref, C B2 =V out+ +kV ref , when C A =C B When k=0.5, k is the proportional coefficient.
[0108] The above is the embodiment of the present application. The above embodiments and the specific parameters in the embodiments are only for the purpose of clearly describing the verification process of the application, and are not intended to limit the scope of patent protection of the present application. The scope of patent protection of the present application is still subject to the claims, and any equivalent structural changes made by using the description and drawings of the present application should be included in the scope of protection of the present application.
Claims
1. A four-phase current rotation Hall sensor offset voltage detection circuit, characterized in that: include: The discrete time sampling module is used to sample and calculate the output of the four-phase current rotation Hall sensor according to the two-phase Hall signal with a phase difference of 180° to obtain the offset output voltage V in ; The switch capacitor amplifier module is used to complete the first offset output voltage V in the discrete time sampling module according to the two-phase Hall signal with a phase difference of 180° in Calculate the offset output voltage V obtained before sampling the Hall sensor output with the second four-phase current rotation in Amplify and get the offset amplified voltage V out ; Switched capacitor comparison module, used to determine the offset threshold voltage V according to usage requirements ref , and based on the two-phase Hall signal with a phase difference of 180°, before sampling the output of the second four-phase current rotation Hall sensor, the offset amplification voltage V out Sampling and comparing with the offset threshold voltage V ref Compare and obtain the offset voltage detection result.
2. The four-phase current rotation Hall sensor offset voltage detection circuit according to claim 1, characterized in that: The discrete time sampling module includes two parallel sampling units, each of which includes a switch switch and sampling capacitor C D , the switch With switch Parallel, switch and switch Both with sampling capacitor C D One end of the sampling capacitor C D The other end of the switch Connect to constant voltage V cm At the same time, it is also connected to the switched capacitor amplifier module. With switch Both are controlled by the clock signal CLK1, the switch Controlled by clock signal CLK2; The second-phase Hall signal and the fourth-phase Hall signal of the four-phase current rotation Hall sensor are both associated with the clock signal CLK1 and the clock signal CLK2 , and the second-phase Hall signal is 180° out of phase with the fourth-phase Hall signal.
3. The four-phase current rotation Hall sensor offset voltage detection circuit according to claim 2, characterized in that: The clock signal CLK1 starts at the fourth phase Hall signal After a certain time, the second phase Hall signal starts The clock signal CLK1 changes from a high level to a low level when the fourth phase Hall signal ends and the second phase Hall signal ends; The clock signal CLK2 changes from a low level to a high level after the fourth phase Hall signal starts and after the second phase Hall signal starts. After a certain time, the second phase Hall signal starts After a certain period of time, it changes from high level to low level.
4. The four-phase current rotation Hall sensor offset voltage detection circuit according to claim 3, characterized in that: The switch capacitor amplification module includes a switch capacitor amplifier and two switch capacitor amplification units, one switch capacitor amplification unit is connected to the negative electrode of the switch capacitor amplifier input terminal and the positive electrode of the switch capacitor amplifier output terminal, and the other switch capacitor amplification unit is connected to the positive electrode of the switch capacitor amplifier input terminal and the negative electrode of the switch capacitor amplifier output terminal; The switched capacitor amplification unit includes a switch switch switch switch switch Offset storage capacitor C s and capacitor C H , the switch switch and switch Both are controlled by the clock signal CLK1, the switch and switch All are controlled by the clock signal CLK2; Sampling capacitor C D The other end is also connected through the switch and the offset storage capacitor C s One end of the offset storage capacitor C s One end of the switch Connect to constant voltage V cm ,switch One end is connected to the switch and the offset storage capacitor C s Between, the offset storage capacitor C s The other end is connected to the input end of the switched capacitor amplifier; Capacitor C H One end is connected to the offset storage capacitor C s The other end is connected to the input of the switched capacitor amplifier, and the capacitor C H The other end of the switch With constant voltage V cm At the same time, the switch Connected to the output of the switched capacitor amplifier, the switch One end is connected to the capacitor C H With switch between; switch With capacitor C H Parallel, switch Located at switch With capacitor C H The output end of the switched capacitor amplifier is also connected to the switched capacitor comparison module.
5. The four-phase current rotation Hall sensor offset voltage detection circuit according to claim 4, characterized in that: The switch capacitor comparison module includes a regenerative comparator, a first switch capacitor comparison unit and a second switch capacitor comparison unit, the first switch capacitor comparison unit is connected between the positive electrode of the switch capacitor amplifier output terminal and the positive electrode of the regenerative comparator, and the second switch capacitor comparison unit is connected between the negative electrode of the switch capacitor amplifier output terminal and the negative electrode of the regenerative comparator; The first switch capacitor comparison unit and the second switch capacitor comparison unit both include a capacitor C A , capacitor C B ,switch switch switch and switch In the first switch capacitor comparison unit, the capacitor C A One end of the capacitor is connected to the positive terminal of the switched capacitor amplifier output, and the capacitor C A The other end of the switch Connect to the positive terminal of the regenerative comparator input; switch One end is connected to the capacitor C A With switch Between, switch The other end is connected to the common mode voltage V cm Connect; switch With switch Parallel, switch One end of the switch is grounded. The other end of the capacitor C B Connect one end of the switch One end is connected to the offset threshold voltage V ref ,switch The other end of the capacitor C B One end of the capacitor C B The other end is connected to the negative electrode of the regenerative comparator input terminal; In the second switch capacitor comparison unit, the capacitor C A One end of the capacitor is connected to the negative terminal of the switched capacitor amplifier output, and the capacitor C A The other end of the switch Connect to the negative terminal of the regenerative comparator input; switch One end is connected to the capacitor C A With switch Between, switch The other end is connected to the common mode voltage V cm Connect; switch With switch Parallel, switch One end is connected to the offset threshold voltage V ref ,switch The other end of the capacitor C B Connect one end of the switch One end of the switch is grounded. The other end of the capacitor C B One end of the capacitor C B The other end is connected to the negative electrode of the regenerative comparator input terminal; switch and switch All are controlled by the clock signal CLK3, the switch and switch Both are controlled by the clock signal CLK4.
6. The four-phase current rotation Hall sensor offset voltage detection circuit according to claim 5, characterized in that: The clock signal CLK3 changes from a high level to a low level after the clock signal CLK2 changes to a high level for half a period, and the clock signal CLK3 changes from a low level to a high level when the clock signal CLK2 changes to a low level; The clock signal CLK4 changes from a low level to a high level half a period after the clock signal CLK2 changes to a high level, and the clock signal CLK4 changes from a high level to a low level when the clock signal CLK2 changes to a low level.
7. A method for detecting offset voltage of a four-phase current rotation Hall sensor, characterized in that: The four-phase current rotation Hall sensor offset voltage detection circuit according to claim 6 comprises the following steps: S1. Sample the output of the four-phase current rotation Hall sensor according to the two-phase Hall signal with a phase difference of 180° and calculate it to obtain the offset output voltage V in ; S2, based on the two-phase Hall signal with a phase difference of 180°, the discrete time sampling module completes the first offset output voltage V in Calculate the offset output voltage V obtained before sampling the Hall sensor output with the second four-phase current rotation in Amplify and get the offset amplified voltage V out ; S3. Determine the offset threshold voltage V according to the usage requirements ref , and based on the two-phase Hall signal with a phase difference of 180°, before sampling the output of the second four-phase current rotation Hall sensor, the offset amplification voltage V out Sampling and comparing with the offset threshold voltage V ref Compare and obtain the offset voltage detection result.
8. The four-phase current rotation Hall sensor offset voltage detection method according to claim 7, characterized in that: The step S1 comprises the following steps: S11, when the clock signal CLK1 is at a high level, the two sampling capacitors C D Perform the first Hall voltage sampling respectively, and obtain the collected voltage V 1+ And the acquisition voltage V 1- ; S12, when the clock signal CLK2 is at a high level, the two sampling capacitors C D Perform the second Hall voltage sampling respectively, and collect the voltage V 2+ And the acquisition voltage V 2- At the same time, according to the collected voltage V 1+ And the acquisition voltage V 1- With the collection voltage V 2+ And the acquisition voltage V 2- Calculate the offset output voltage V in ; Among them, V in =(V 1+ -V 1- )-(V 2+ -V 2- ), where V 1+ -V 1- =V hall -V os , V 2+ -V 2- =V hall +V os , V in =2V os , V hall is the Hall voltage, V os is the offset voltage.
9. The four-phase current rotation Hall sensor offset voltage detection method according to claim 8, characterized in that: The step S2 comprises the following steps: S21, when the clock signal CLK1 is at a high level, the offset storage capacitor C s Offset the offset voltage of the switched capacitor amplifier; S22, when the clock signal CLK2 is at a high level, obtain the offset output voltage V obtained in step S12 in and through the switched capacitor amplifier to offset the output voltage V in Amplify to get the offset amplified voltage V out ; in, V out+ is the positive voltage at the output of the switched capacitor amplifier, V out- is the negative voltage at the output of the switched capacitor amplifier.
10. The four-phase current rotation Hall sensor offset voltage detection method according to claim 9, characterized in that: The step S3 comprises the following steps: S31, when the clock signal CLK3 is at a high level, the first switch capacitor comparison unit receives the positive voltage V at the output end of the switch capacitor amplifier out+ The second switch capacitor comparison unit receives the negative voltage V at the output terminal of the switch capacitor amplifier. out- ; S32: When the clock signal CLK4 is at a high level, the capacitor C in the first switch capacitor comparison unit B The voltage drop is the comparison voltage C B1 and transmitted to the positive electrode of the regenerative comparator input terminal, the capacitor C in the second switched capacitor comparison unit B The voltage rises to the comparison voltage C B2 And sent to the negative electrode of the regenerative comparator input terminal. If the output terminal of the regenerative comparator outputs a high level, it is determined that the offset voltage V os Greater than the offset threshold voltage V ref , otherwise the offset voltage V os Meet the offset threshold voltage V ref ; Among them, C B1 =V out+ -kV ref , C B2 =V out+ +kV ref , k is the proportionality coefficient.
