[go: up one dir, main page]

US20170336445A1 - Zero-crossing detection circuit and sensor device - Google Patents

Zero-crossing detection circuit and sensor device Download PDF

Info

Publication number
US20170336445A1
US20170336445A1 US15/598,755 US201715598755A US2017336445A1 US 20170336445 A1 US20170336445 A1 US 20170336445A1 US 201715598755 A US201715598755 A US 201715598755A US 2017336445 A1 US2017336445 A1 US 2017336445A1
Authority
US
United States
Prior art keywords
zero
output
circuit
crossing detection
input signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US15/598,755
Inventor
Minoru Ariyama
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ablic Inc
Original Assignee
Ablic Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2017059973A external-priority patent/JP6581615B2/en
Application filed by Ablic Inc filed Critical Ablic Inc
Assigned to SII SEMICONDUCTOR CORPORATION reassignment SII SEMICONDUCTOR CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: ARIYAMA, MINORU
Publication of US20170336445A1 publication Critical patent/US20170336445A1/en
Assigned to ABLIC INC. reassignment ABLIC INC. CHANGE OF NAME Assignors: SII SEMICONDUCTOR CORPORATION
Priority to US16/717,820 priority Critical patent/US10852328B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D3/00Indicating or recording apparatus with provision for the special purposes referred to in the subgroups
    • G01D3/10Indicating or recording apparatus with provision for the special purposes referred to in the subgroups with provision for switching-in of additional or auxiliary indicators or recorders
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/175Indicating the instants of passage of current or voltage through a given value, e.g. passage through zero
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/34Testing dynamo-electric machines
    • G01R31/343Testing dynamo-electric machines in operation

Definitions

  • the present invention relates to a zero-crossing detection circuit and a sensor device, and more particularly, to a zero-crossing detection circuit capable of accurately detecting a zero-crossing point based on a signal from a sensor element.
  • a magnetic sensor device is used for detecting a position of a movable element of a brushless motor.
  • the brushless motor includes a cylindrical stator, and a cylindrical rotor provided so as to be opposed to an inner periphery or an outer periphery of the stator.
  • the rotor is configured to freely rotate about its rotary axis with respect to the stator.
  • the rotor includes field magnets arranged along a circumferential direction of the rotor, and the stator includes a stator core having winding wound therearound. A magnetic field generated by causing current to flow through the winding and a magnetic field generated by the field magnets interact with each other to cause rotation of the rotor.
  • a magnetic sensor element is generally used as means for detecting the position.
  • the magnetic sensor element is configured to detect the rotational position of the rotor by detecting a position at which the S-pole and the N-pole of the magnet are switched, that is, a zero-crossing position.
  • zero-crossing detection there have been examined various methods using hysteresis characteristics to prevent chattering near the zero-crossing.
  • this hysteresis may cause deviation between an original zero-crossing position and a zero-crossing detection position detected based on a sensor signal, which may cause problems such as reduction in motor efficiency, rotation unevenness, and occurrence of vibration.
  • a zero-crossing detection circuit capable of preventing chattering near the zero-crossing with no hysteresis characteristics in its output.
  • FIG. 12 is a circuit diagram for illustrating an example of a related-art zero-crossing detection circuit.
  • the related-art zero-crossing detection circuit includes an operational amplifier 50 and a comparison signal generation circuit 51 .
  • the operational amplifier 50 is configured to receive a signal S to be detected at an inverting input terminal as input, to thereby output a zero-crossing detection signal fa.
  • the comparison signal generation circuit 51 is configured to generate a comparison signal h to apply the comparison signal h to a non-inverting input terminal of the operational amplifier 50 .
  • the comparison signal h is inverted to the positive or negative level with respect to the signal S to be detected based on the zero-crossing detection signal fa immediately after the zero-crossing detection, and sequentially changes its level to reach a zero level after a predetermined time period.
  • FIG. 13 is an illustration of the operation of the related-art zero-crossing detection circuit configured as described above.
  • the operational amplifier 50 compares the respective levels of the signal S to be detected and the comparison signal h to output the zero-crossing detection signal fa being the result of this comparison.
  • the signal S to be detected has a positive level
  • the comparison signal h has a negative level.
  • the operational amplifier 50 outputs a low-level zero-crossing detection signal fa.
  • the level of the comparison signal h changes in accordance with the time constant T to reach the zero level.
  • the voltage at the inverting input terminal of the operational amplifier 50 changes from the positive level to the zero level, and further changes to the negative level.
  • a high-level zero-crossing detection signal fa that is, +Vdd is applied to the capacitor Ca, and hence a voltage C of +2 Vdd appears at the other end of the capacitor Ca.
  • This voltage C is divided by the resistors R 10 and R 11 to be supplied to the non-inverting input terminal of the operational amplifier 50 as the comparison signal h.
  • the zero-crossing detection circuit operates such that the positive or negative level of the comparison signal h is inverted with respect to the signal S to be detected due to the action of the comparison signal generation circuit 51 .
  • the zero-crossing detection signal fa output from the operational amplifier 50 is prevented from being inverted due to the noise ns, and thus a detection error of the zero-crossing is prevented.
  • the level of the comparison signal h gradually degreases in accordance with the time constant T, and reaches the zero level before a next zero-crossing time t 3 .
  • the zero-crossing detection signal fa output from the operational amplifier 50 is inverted to have a low level.
  • a low-level zero-crossing detection signal fa that is, a voltage ⁇ Vdd is applied to the capacitor Ca, and hence the voltage C of ⁇ 2 Vdd appears at the other end of the capacitor Ca.
  • This voltage C is divided by the resistors R 10 and R 11 to be supplied to the non-inverting input terminal of the operational amplifier 50 as the comparison signal h.
  • the above-mentioned operation is performed for each change in positive and negative levels of the signal to be detected so as to output the zero-crossing detection signal fa.
  • the zero-crossing detection signal is achieved without a detection error, that is, chattering, even when zero-crossing is caused due to noise.
  • a zero-crossing detection circuit configured as follows.
  • the zero-crossing detection circuit includes a first comparison circuit configured to receive a first input signal and a second input signal as input, a second comparison circuit having a hysteresis function and being configured to receive the first input signal and the second input signal as input, and a logic circuit.
  • the first comparison circuit is configured to output a zero-crossing detection result of the first input signal and the second input signal.
  • the second comparison circuit is configured to output a comparison result of the first input signal and the second input signal.
  • the logic circuit includes means for determining output of the logic circuit based on the zero-crossing detection result and the comparison result.
  • the zero-crossing point at which the input signal is switched from positive to negative or from negative to positive can be detected with high accuracy, and the influence of zero-crossing due to noise can be removed.
  • the zero-crossing detection circuit can be achieved with a relatively small circuit scale and a simple configuration.
  • the present invention is widely applicable not only to a brushless motor given as an example but also to general zero-crossing point detection of signals such as sensor output.
  • FIG. 1 is a circuit diagram for illustrating a zero-crossing detection circuit according to a first embodiment of the present invention.
  • FIG. 2A , FIG. 2B , and FIG. 2C are graphs for showing an operation of each element of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 3A , FIG. 3B , FIG. 3C , and FIG. 3D are charts for illustrating an operation of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 4 is another example of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 5A , FIG. 5B , FIG. 5C , and FIG. 5D are graphs for showing an operation of each element of the another example of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 6 is a circuit diagram for illustrating a zero-crossing detection circuit according to a second embodiment of the present invention.
  • FIG. 7 is a circuit diagram for illustrating a zero-crossing detection circuit according to a third embodiment of the present invention.
  • FIG. 8 is a circuit diagram for illustrating a first application example in which the zero-crossing detection circuit according to the first embodiment is applied to a magnetic sensor device.
  • FIG. 9 is a circuit diagram for illustrating a second application example in which the zero-crossing detection circuit according to the first embodiment is applied to the magnetic sensor device.
  • FIG. 10 is a circuit diagram for illustrating a third application example in which the zero-crossing detection circuit according to the second embodiment is applied to the magnetic sensor device.
  • FIG. 11 is a circuit diagram for illustrating a fourth application example in which the zero-crossing detection circuit according to the third embodiment is applied to the magnetic sensor device.
  • FIG. 12 is a circuit diagram for illustrating a related-art zero-crossing detection circuit.
  • FIG. 13 is a chart for illustrating an operation of the related-art zero-crossing detection circuit.
  • a zero-crossing detection circuit according to the present invention may be widely used as a zero-crossing detection circuit in a semiconductor circuit. Now, the zero-crossing detection circuit according to the present invention is described with reference to the drawings.
  • FIG. 1 is a circuit diagram for illustrating a zero-crossing detection circuit according to a first embodiment of the present invention.
  • the zero-crossing detection circuit according to the first embodiment includes a comparison circuit 10 , a comparison circuit 11 , and a logic circuit 20 .
  • the comparison circuit 10 includes two input terminals and one output terminal, specifically, an inverting input terminal, a non-inverting input terminal, and an output terminal out 0 .
  • the comparison circuit 11 includes two input terminals and one output terminal, specifically, an inverting input terminal, a non-inverting input terminal, and an output terminal out 1 .
  • the inverting input terminal of the comparison circuit 10 and the inverting input terminal of the comparison circuit 11 are connected in common to an input terminal N 1 .
  • the non-inverting input terminal of the comparison circuit 10 and the non-inverting input terminal of the comparison circuit 11 are connected in common to an input terminal N 2 .
  • a first input signal and a second input signal are supplied to the input terminal N 1 and the input terminal N 2 , respectively.
  • the output terminal out 0 of the comparison circuit 10 and the output terminal out 1 of the comparison circuit 11 are connected to the logic circuit 20 .
  • the logic circuit 20 is configured to receive a signal from the output terminal out 0 and a signal from the output terminal out 1 as input, to thereby output a logical operation result from an output terminal out.
  • the voltage of the input terminal N 1 , the voltage of the input terminal N 2 , the voltage of the output terminal out 0 , the voltage of the output terminal out 1 , and the voltage of the output terminal out are referred to as an input voltage Vn 1 , an input voltage Vn 2 , an output voltage Vout 0 , an output voltage Vout 1 , and an output voltage Vout, respectively.
  • the comparison circuit 10 operates so as to output a high level from the output terminal out 0 when the voltage supplied to the non-inverting input terminal is higher than the voltage supplied to the inverting input terminal, and, on the other hand, output a low level from the output terminal out 0 when the voltage supplied to the non-inverting input terminal is lower than the voltage supplied to the inverting input terminal.
  • FIG. 2A the lateral axis represents an input voltage difference between the input voltages Vn 1 and Vn 2
  • the vertical axis represents each output voltage. As shown in FIG.
  • the output voltage Vout 0 when the input voltage Vn 2 is higher than the input voltage Vn 1 , that is, when Vn 2 ⁇ Vn 1 >0 is satisfied, the output voltage Vout 0 is output as a high level.
  • the input voltage Vn 2 when the input voltage Vn 2 is lower than the input voltage Vn 1 , that is, when Vn 2 ⁇ Vn 1 ⁇ 0 is satisfied, the output voltage Vout 0 is output as a low level.
  • FIG. 3A and FIG. 3B the operation of the comparison circuit 10 when the input voltage difference Vn 2 ⁇ Vn 1 changes along with time is illustrated in FIG. 3A and FIG. 3B .
  • the lateral axis represents elapse of time
  • the vertical axis represents the input voltage difference or the output voltage.
  • FIG. 3A represents transition of the input voltage difference Vn 2 ⁇ Vn 1 that changes along with time.
  • FIG. 3B represents transition of the output voltage Vout 0 that changes along with the time change of the input voltage difference Vn 2 ⁇ Vn 1 .
  • the output voltage Vout 0 is output as a high level when Vn 2 ⁇ Vn 1 >0 is satisfied, and is output as a low level when Vn 2 ⁇ Vn 1 ⁇ 0 is satisfied.
  • the comparison circuit 11 operates so as to output a high level from the output terminal out 1 when the voltage supplied to the non-inverting input terminal is higher than a sum of the voltage supplied to the inverting input terminal and a voltage Vth 1 , and, on the other hand, output a low level from the output terminal out 1 when the voltage supplied to the non-inverting input terminal is lower than a sum of the voltage supplied to the inverting input terminal and a voltage Vth 2 .
  • FIG. 2B As shown in FIG.
  • the output voltage Vout 1 is output as a high level when the input voltage Vn 2 is higher than the sum of the input voltage Vn 1 and the voltage Vth 1 , that is, when Vn 2 ⁇ Vn 1 >Vth 1 is satisfied, and is output as a low level when the input voltage Vn 2 is lower than the sum of the input voltage Vn 1 and the voltage Vth 2 , that is, when Vn 2 ⁇ Vn 1 ⁇ Vth 2 is satisfied.
  • the voltage Vth 1 is a positive value and represents a positive hysteresis value
  • the voltage Vth 2 is a negative value and represents a negative hysteresis value.
  • Vn 2 ⁇ Vn 1 falls within a range between Vth 1 and Vth 2 , the high level or the low level is output depending on the latest state. That is, the comparison circuit 11 operates as a comparison circuit having a hysteresis width of
  • FIG. 3C represents transition of the output voltage Vout 1 that changes along with the time change of the input voltage difference Vn 2 ⁇ Vn 1 illustrated in FIG. 3A .
  • the output voltage Vout 1 is output as a high level. Even after elapse of time thereafter, the output voltage Vout 1 is maintained at the high level, and then transitions from the high level to the low level when Vn 2 ⁇ Vn 1 ⁇ Vth 2 is satisfied along with the decrease of Vn 2 ⁇ Vn 1 .
  • the output voltage Vout 1 is maintained at the low level, and then transitions from the low level to the high level when Vn 2 ⁇ Vn 1 >Vth 1 is satisfied along with the increase of Vn 2 ⁇ Vn 1 .
  • the logic circuit 20 operates so as to determine the logic of the output voltage Vout depending on the logic states of the output voltage Vout 0 and the output voltage Vout 1 .
  • Vout 1 when Vout 1 is at a high level, the logic circuit 20 causes Vout to transition from the high level to the low level based on the transition of Vout 0 from the high level to the low level.
  • Vout when Vout is originally at the low level, Vout does not change. The transition of Vout 0 from the low level to the high level does not cause Vout to change.
  • Vout 1 is at a low level
  • the transition of Vout 0 from the low level to the high level causes Vout to transition from the low level to the high level.
  • Vout when Vout is originally at the high level, Vout does not change.
  • the transition of Vout 0 from the high level to the low level does not cause Vout to change.
  • the above-mentioned operation is described with reference to FIG. 3A to FIG. 3D .
  • FIG. 3A , FIG. 3B , and FIG. 3C represent the time change of the input voltage difference Vn 2 ⁇ Vn 1 , the time change of the output voltage Vout 0 , and the time change of the output voltage Vout 1 , respectively.
  • FIG. 3D represents the time change of the output voltage Vout.
  • Vout 0 and the output voltage Vout 1 are at a high level.
  • Vout 0 transitions from the high level to the low level when zero-crossing is obtained.
  • Vout 1 is at a high level, and hence the logic circuit 20 outputs, to Vout, the detection of zero-crossing from the high level to the low level based on Vout 0 .
  • Vout 1 transitions from the high level to the low level.
  • Vout 0 transitions from the low level to the high level when zero-crossing is obtained.
  • Vout 1 is at the low level, and hence the logic circuit 20 outputs, to Vout, the detection of the zero-crossing from the low level to the high level based on Vout 0 .
  • Vout 1 transitions from the low level to the high level. Further after that, as the time elapses to arrive at a time t 2 , the same state as that at the time t 1 is obtained.
  • the output voltage Vout 0 and the output voltage Vout 1 are at a high level.
  • Vout 0 transitions from the high level to the low level when zero-crossing is obtained.
  • Vout 1 is at a high level, and hence the logic circuit 20 outputs, to Vout, the detection of the zero-crossing from the high level to the low level based on Vout 0 .
  • Vn 2 ⁇ Vn 1 crosses zero two times due to the noise ns.
  • the output voltage Vout 0 transitions from the low level to the high level, and then further transitions to the low level.
  • Vout 1 is at a high level, and hence the logic circuit 20 operates so as to prevent the transition from the low level to the high level of Vout 0 from being output to Vout.
  • the zero-crossing detection due to the noise does not appear at the output terminal out.
  • Vout 1 transitions from the high level to the low level.
  • Vout 0 transitions from the low level to the high level when zero-crossing is obtained.
  • Vout 1 is at a low level, and hence the logic circuit 20 outputs, to Vout, the detection of the zero-crossing from the low level to the high level based on Vout 0 .
  • Vn 2 ⁇ Vn 1 crosses zero two times due to the noise ns.
  • the output voltage Vout 0 transitions from the high level to the low level, and then further transitions to the high level.
  • Vout 1 is at a low level, and hence the logic circuit 20 operates so as to prevent the transition from the high level to the low level of Vout 0 from being output to Vout.
  • the zero-crossing detection due to the noise does not appear at the output terminal out.
  • Vout 1 transitions from the low level to the high level. Further after that, as the time elapses to arrive at a time t 3 , the same state as those at the time t 1 and the time 2 is obtained.
  • the voltage Vth 1 and the voltage Vth 2 are regarded as the hysteresis voltages of the comparison circuit 11 , but as illustrated in the circuit diagram of FIG. 4 and the operation graphs of FIG. 5A to FIG. 5D , the comparison circuit 11 may be divided into a comparison circuit 12 and a comparison circuit 13 .
  • the comparison circuit 12 may determine whether Vn 2 ⁇ Vn 1 is larger or smaller than the voltage Vth 1
  • the comparison circuit 13 may determine whether Vn 2 ⁇ Vn 1 is larger or smaller than the voltage Vth 2 .
  • FIG. 5A represents the operation of the comparison circuit 10
  • FIG. 5B represents the operation of the comparison circuit 12
  • FIG. 5C represents the operation of the comparison circuit 13
  • FIG. 5D represents the operation of the logic circuit 20 .
  • FIG. 6 is a circuit diagram for illustrating a zero-crossing detection circuit according to a second embodiment of the present invention.
  • the second embodiment differs from the first embodiment illustrated in FIG. 1 in that the comparison circuit 10 and the comparison circuit 11 are removed to add a comparison circuit 14 , and a latch circuit 30 is added between the comparison circuit 14 and the logic circuit 20 .
  • the added elements are configured and connected as follows. Further, the following connection differs from that of the first embodiment due to the removed elements.
  • the comparison circuit 14 includes two input terminals, one output terminal, and one control terminal HC. Specifically, the comparison circuit 14 includes an inverting input terminal, a non-inverting input terminal, an output terminal out 4 , and a hysteresis control terminal HC. The inverting input terminal of the comparison circuit 14 is connected to the input terminal N 1 , and the non-inverting input terminal of the comparison circuit 14 is connected to the input terminal N 2 .
  • the hysteresis control terminal HC of the comparison circuit 14 is configured to adjust a hysteresis voltage of the comparison circuit 14 based on a control signal input to the hysteresis control terminal.
  • the control circuit for the hysteresis control terminal HC is not shown.
  • the output terminal out 4 of the comparison circuit 14 is connected to the latch circuit 30 .
  • the latch circuit 30 includes latches LT 1 , LT 2 , and LT 3 , and the output terminal out 4 is connected to data input terminals D of the latches LT 1 , LT 2 , and LT 3 .
  • a data output terminal Q of the latch LT 1 , a data output terminal Q of the latch LT 2 , and a data output terminal Q of the latch LT 3 correspond to the output terminal out 0 , the output terminal out 2 , and the output terminal out 3 , respectively, which are connected to the logic circuit 20 similarly to the first embodiment illustrated in FIG. 4 .
  • the latches LT 1 , LT 2 , and LT 3 each include a clock terminal C, and are each configured to latch data input to the data input terminal D based on each of clock signals CK 1 , CK 2 , and CK 3 to output the data to the data output terminal Q.
  • the control circuit for the clock signals CK 1 , CK 2 , and CK 3 is not shown. Other connections and configurations are the same as those of the first embodiment. In the following description, the voltage of the output terminal out 4 is referred to as an output voltage Vout 4 .
  • the comparison circuit 14 operates so as to perform the operations of the comparison circuit 10 and the comparison circuit 11 of the first embodiment in a time-division manner based on the control signal input to the hysteresis control terminal HC. That is, when the comparison circuit 14 is controlled so that the voltage Vth 1 and the voltage Vth 2 are zero, the comparison circuit 14 operates similarly to the comparison circuit 10 , and when the comparison circuit 14 is controlled so that the voltage Vth 1 and the voltage Vth 2 are prevented from being zero, the comparison circuit 14 operates similarly to the comparison circuit 12 or the comparison circuit 13 .
  • the comparison circuit that operates as described above can be obtained by a known technology, and hence description thereof is omitted herein.
  • the output voltage Vout 0 becomes an output voltage similar to Vout 0 represented in FIG. 5A and FIG. 3B .
  • the output voltage Vout 4 of the comparison circuit 14 is latched by the latches LT 2 and LT 3 based on the clock signals CK 2 and CK 3 under a state in which the comparison circuit 14 is controlled in the same manner as the comparison circuit 12 and the comparison circuit 13 .
  • the output voltage Vout 1 becomes an output voltage similar to Vout I represented in FIG. 5B , FIG. 5C , and FIG. 3C .
  • the operation of the logic circuit 20 is similar to that of the first embodiment, and the output voltage Vout can be used to perform zero-crossing detection while removing the influence of zero-crossing due to noise.
  • the comparison circuit 14 is operated in a time-division manner, and hence the operation speed is lower than that of the first embodiment.
  • the second embodiment has an advantage in that the number of the comparison circuits can be reduced to decrease the circuit scale.
  • FIG. 7 is a circuit diagram for illustrating a zero-crossing detection circuit according to a third embodiment of the present invention.
  • the third embodiment differs from the second embodiment illustrated in FIG. 6 in that the comparison circuit 14 is removed to add a comparison circuit 15 , and a hysteresis generation circuit 40 is added between the input terminal N 2 and a non-inverting input terminal of the comparison circuit 15 .
  • the added elements are configured and connected as follows. Further, the following connection differs from that of the second embodiment due to the removed element.
  • the comparison circuit 15 includes two input terminals and one output terminal. Specifically, the comparison circuit 15 includes an inverting input terminal, the non-inverting input terminal, and an output terminal out 5 .
  • the inverting input terminal of the comparison circuit 15 is connected to the input terminal N 1
  • the non-inverting input terminal of the comparison circuit 15 is connected to an output terminal of the hysteresis generation circuit 40 .
  • An input terminal of the hysteresis generation circuit 40 is connected to the input terminal N 2 .
  • the output terminal outs of the comparison circuit 15 is connected to the latch circuit 30 .
  • the hysteresis generation circuit 40 includes the hysteresis control terminal HC, and is configured to adjust a hysteresis voltage based on a control signal.
  • the control circuit for the hysteresis control terminal HC is not shown. Other connections and configurations are similar to those of the second embodiment.
  • the node between the non-inverting input terminal of the comparison circuit 15 and the output terminal of the hysteresis generation circuit 40 is represented by N 2 ′, and the voltage of the node N 2 ′ is represented by Vn 2 ′. Further, the voltage of the output terminal outs is referred to as an output voltage Vout 5 .
  • the comparison circuit 15 operates similarly to the comparison circuit 10 of the first embodiment. That is, the comparison circuit 15 operates so as to output a high level from the output terminal out 5 when the voltage supplied to the non-inverting input terminal is higher than the voltage supplied to the inverting input terminal, and, on the other hand, output a low level from the output terminal outs when the voltage supplied to the non-inverting input terminal is lower than the voltage supplied to the inverting input terminal.
  • the hysteresis generation circuit 40 operates so as to switch whether to output the input voltage as it is, output the input voltage with the positive voltage Vth 1 being added, or output the input voltage with the negative voltage Vth 2 being added, depending on the control state of the hysteresis control terminal HC.
  • the hysteresis generation circuit that operates as described above can be obtained by a known technology, and, for example, can be achieved with use of a resistor, a constant current source, and a switching element.
  • the comparison circuit 15 operates similarly to the comparison circuit 10 of the first embodiment.
  • the output voltage Vout 5 of the comparison circuit 15 is latched by the latch LT 1 based on the clock signal CK 1 under this control state, the output voltage Vout 0 becomes an output voltage similar to Vout 0 represented in FIG. 5A and FIG. 3B .
  • the comparison circuit 15 operates similarly to the comparison circuits 12 and 13 of the first embodiment.
  • the output voltage Vout 5 of the comparison circuit 15 is latched by the latches LT 2 and LT 3 based on the clock signals CK 2 and CK 3 under those control states, the output voltage Vout 1 becomes an output voltage similar to Vout 1 represented in FIG. 5B , FIG. 5C , and FIG. 3C .
  • the operation of the logic circuit 20 is similar to those in the first and second embodiments, and the output voltage Vout can be used to perform zero-crossing detection while removing the influence of zero-crossing due to noise.
  • the hysteresis generation circuit 40 is operated in a switching manner, and hence the operation speed is lower than that of the first embodiment as in the second embodiment.
  • the third embodiment has an advantage in that the number of the comparison circuits can be reduced to decrease the circuit scale.
  • the voltage is added to the input terminal N 2 side, but the voltage may be added to the input terminal N 1 side. Further, the voltage may be added to both of the input terminal N 1 and the input terminal N 2 .
  • the latch circuit is represented as a circuit configured to hold the output voltage of the comparison circuit, but the present invention is not necessarily limited to this configuration as long as the configuration can perform a data importing operation.
  • the high level and the low level of each output voltage is specified based on the operation state, but the high level and the low level may be reversed, and the combination of the high level and the low level may be changed.
  • the voltage Vth 1 and the voltage Vth 2 are regarded as the hysteresis voltages of the comparison circuit.
  • the present invention is not necessarily limited to this configuration as long as the configuration can perform the operation of the comparison circuit described herein.
  • the comparison circuit may not have the hysteresis voltages therein.
  • a reference voltage may be supplied to the comparison circuit to adjust the inverting level of the output voltage Vout 1 .
  • the voltage Vth 1 and the voltage Vth 2 are regarded as constant voltages that do not change along with time as illustrated in FIG. 3A .
  • the voltage Vth 1 and the voltage Vth 2 may be variable instead of being constant voltages.
  • the hysteresis width of the comparison circuit 10 is not particularly referred to, and the description is made on the premise that the hysteresis width is zero. In an actual circuit, however, a non-ideal component is present, and hence the hysteresis width is not always zero and may have a minute value. Even in this case, the effect of the present invention is not lost. Further, in an actual circuit, the comparison circuit 10 may have a hysteresis function with very small amplitude in order to remove the noise due to, for example, fluctuations in power supply voltage.
  • the comparison circuit 10 may have a temporal hysteresis function, or a digital filter may be provided by sampling the output of the comparison circuit 10 a plurality of times.
  • voltage is particularly noted as the input signal, but it is apparent that the input signal may be current.
  • FIG. 8 is a circuit diagram for illustrating a first application example in which the zero-crossing detection circuit according to the first embodiment of the present invention is applied to a magnetic sensor device.
  • a signal of a Hall element 1 a serving as a magnetoelectric conversion element is input to a differential amplifier circuit 2 a from a terminal Ba and a terminal Da.
  • the differential amplifier circuit 2 a amplifies the signal, and the output of the differential amplifier circuit 2 a is connected to the input terminal N 1 and the input terminal N 2 of the zero-crossing detection circuit of the present invention.
  • the voltage of the terminal Ba and the voltage of the terminal Da are represented by VBa and VDa, respectively.
  • the signal voltage of the Hall element 1 a is represented by VDa ⁇ VBa
  • an amplification factor of the differential amplifier circuit 2 a is represented by G.
  • the magnitude and the sign of the signal voltage VDa ⁇ VBa of the Hall element 1 a change based on the direction of the current flowing through the Hall element 1 a and the direction of the magnetic field applied thereto in accordance with the Fleming's left-hand rule.
  • the sign of the signal voltage VDa ⁇ VBa is positive in a case where the magnetic field is applied in a direction from the front side to the depth side of the drawing sheet
  • the sign of the signal voltage VDa ⁇ VBa is negative in a case where the magnetic field is applied in a direction from the depth side to the front side of the drawing sheet.
  • the magnitude of the signal voltage VDa ⁇ VBa is increased.
  • the signal voltage VDa ⁇ VBa is zero when the magnetic field applied to the Hall element 1 a is zero.
  • the signal voltage of the Hall element 1 a is amplified by the differential amplifier circuit 2 a to obtain the following expression.
  • Vn 2 ⁇ Vn 1 G ⁇ ( VDa ⁇ VBa ) (1)
  • Vn 2 ⁇ Vn 1 takes a positive value, a negative value, or zero depending on the magnetic field applied to the Hall element 1 a. That is, due to the operation of the zero-crossing detection circuit according to the first embodiment of the present invention, the zero-crossing point of the magnetic field applied to the Hall element 1 a can be detected with high accuracy without an operation error due to noise.
  • a point at which the magnetic field applied to the sensor device is switched from the S-pole to the N-pole or from the N-pole to the S-pole due to the change in relative position can be detected with high accuracy.
  • the first application example of the present invention is suitable for usage in an encoder or usage in a brushless motor, which requires highly-accurate detection of the rotational position of the rotor.
  • the demand for high-speed rotation can be met.
  • an output error due to noise which has been a problem in the related art when meeting the demand of increase in speed, can be prevented, and the rotation can be controlled accurately.
  • FIG. 9 is a circuit diagram for illustrating a second application example in which the zero-crossing detection circuit according to the first embodiment of the present invention is applied to the magnetic sensor device.
  • the configuration of connection between a Hall element 1 b and a differential amplifier circuit 2 b is similar to the configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a of the first application example. Further, the configuration of connection between a Hall element 1 c and a differential amplifier circuit 2 c is also similar to the configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a of the first application example.
  • the differential amplifier circuits 2 b and 2 c have single-ended output as compared to the differential amplifier circuit 2 a having differential output.
  • the signal of the Hall element 1 b serving as a magnetoelectric conversion element is input to the differential amplifier circuit 2 b from a terminal Bb and a terminal Db.
  • the differential amplifier circuit 2 b amplifies the signal, and the output of the differential amplifier circuit 2 b is connected to the input terminal N 1 of the zero-crossing detection circuit of the present invention.
  • the signal of the Hall element 1 c serving as a magnetoelectric conversion element is input to the differential amplifier circuit 2 c from a terminal Bc and a terminal Dc.
  • the differential amplifier circuit 2 c amplifies the signal, and the output of the differential amplifier circuit 2 c is connected to the input terminal N 2 of the zero-crossing detection circuit of the present invention.
  • the voltage of the terminal Bb, the voltage of the terminal Db, the voltage of the terminal Bc, and the voltage of the terminal Dc are represented by VBb, VDb, VBc, and VDc, respectively
  • the signal voltage of the Hall element 1 b and the signal voltage of the Hall element 1 c are represented by VDb-VBb and VDc-VBc, respectively.
  • An amplification factor of each of the differential amplifier circuits 2 b and 2 c is represented by G.
  • the input voltage Vn 1 supplied to the input terminal N 1 and the input voltage Vn 2 supplied to the input terminal N 2 are represented as follows.
  • Vn 1 G ⁇ ( VDb ⁇ VBb ) (2)
  • Vn 2 G ⁇ ( VDc ⁇ VBc ) (3)
  • Vn 2 ⁇ Vn 1 G ⁇ ( VDc ⁇ VBc ) ⁇ ( VDb ⁇ VBb ) ⁇ (4)
  • Vn 2 ⁇ Vn 1 takes a positive value, a negative value, or zero depending on the magnetic fields applied to the Hall element 1 b and the Hall element 1 c. That is, due to the operation of the zero-crossing detection circuit according to the first embodiment of the present invention, the zero-crossing point being the difference of the magnetic fields applied to the Hall element 1 b and the Hall element 1 c can be detected with high accuracy without an operation error due to noise. That is, the zero-crossing detection is output when the signals of the two sensor elements are equal to each other, and the output can be performed while which of the signals of the two sensor elements is larger is determined.
  • the second application example is suitable for an application in which, for example, the magnetic sensor device is arranged between a magnet generating a bias magnetic field and a gear made of a metal, for example, iron or a magnetic material, and the rotation of the gear is detected by the magnetic sensor device.
  • the differential amplifier circuits 2 b and 2 c have single-ended output, but the differential amplifier circuits 2 b and 2 c may have differential output in order to improve the noise resistance. Further, description is given of a case of two Hall elements, but the number of the Hall elements may be larger than two. For example, a differential signal 1 of two Hall elements and a differential signal 2 of two Hall elements different from the above-mentioned Hall elements may be generated, and the zero-crossing of the differential signal 1 and the differential signal 2 may be detected.
  • FIG. 10 is a circuit diagram for illustrating a third application example in which the zero-crossing detection circuit according to the second embodiment of the present invention is applied to the magnetic sensor device.
  • the configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a is similar to the configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a of the first application example.
  • the signal of the Hall element 1 a serving as the magnetoelectric conversion element is input to the differential amplifier circuit 2 a from the terminal Ba and the terminal Da.
  • the differential amplifier circuit 2 a amplifies the signal, and the output of the differential amplifier circuit 2 a is connected to the input terminal N 1 and the input terminal N 2 of the zero-crossing detection circuit of the present invention.
  • Vn 2 ⁇ Vn 1 takes a positive value, a negative value, or zero depending on the magnetic field applied to the Hall element 1 a. That is, due to the operation of the zero-crossing detection circuit according to the second embodiment of the present invention, the zero-crossing point of the magnetic field applied to the Hall element 1 a can be detected with high accuracy without an operation error due to noise.
  • FIG. 11 is a circuit diagram for illustrating a fourth application example in which the zero-crossing detection circuit according to the third embodiment of the present invention is applied to the magnetic sensor device.
  • the difference from the third application example of FIG. 10 resides in that the third embodiment is applied instead of the second embodiment.
  • the comparison circuit 14 is removed to add the comparison circuit 15
  • the hysteresis generation circuit 40 is added between the input terminal N 2 and the non-inverting input terminal of the comparison circuit 15 .
  • the hysteresis control terminal HC of the hysteresis generation circuit 40 is omitted.
  • Other connections and configurations are the same as those of the third application example.
  • the signal of the Hall element 1 a serving as the magnetoelectric conversion element is input to the differential amplifier circuit 2 a from the terminal Ba and the terminal Da.
  • the differential amplifier circuit 2 a amplifies the signal, and the output of the differential amplifier circuit 2 a is connected to the input terminal N 1 and the input terminal N 2 of the zero-crossing detection circuit of the present invention.
  • Vn 2 ⁇ Vn 1 takes a positive value, a negative value, or zero depending on the magnetic field applied to the Hall element 1 a. That is, due to the operation of the zero-crossing detection circuit according to the third embodiment of the present invention, the zero-crossing point of the magnetic field applied to the Hall element 1 a can be detected with high accuracy without an operation error due to noise.
  • the hysteresis generation circuit 40 is connected between the differential amplifier circuit 2 a and the comparison circuit 15 , but the hysteresis generation circuit 40 may be connected to a side closer to the signal source. Specifically, the hysteresis generation circuit 40 may be connected between the Hall element 1 a and the differential amplifier circuit 2 a.
  • the Hall element has a resistance component, and hence the hysteresis generation circuit 40 does not require a resistor.
  • the hysteresis generation circuit 40 may be formed of only a constant current source and a switching element as an example. In this manner, there are advantages such as contribution to downsizing, and further reduction of characteristic shift due to temperature by synchronizing the value of the constant current with the resistance value of the Hall element.
  • FIG. 8 to FIG. 11 are examples in which the zero-crossing detection circuit of the present invention is applied to the magnetic sensor device.
  • specific examples are shown for description.
  • the present invention is not necessarily limited to the configuration or the sensor element, and is applicable to various semiconductor circuits and sensor circuits. The same applies to the cases of the zero-crossing detection circuits according to the first, second, and third embodiments.
  • the zero-crossing detection circuit may be combined with a spinning current circuit configured to cancel an offset voltage that is a non-ideal component of the Hall element serving as the magnetoelectric conversion element, or may be combined with a circuit for a chopping operation or an auto-zero operation, which is configured to cancel an offset voltage that is a non-ideal component of the differential amplifier circuit or the comparison circuit.
  • the zero-crossing detection circuit is combined with, for example, the spinning current circuit or the circuit for the chopping operation or the auto-zero operation, the signal processing is performed not in a successive time but in a discrete time, and hence it is not preferred to compute the output of each of the comparison circuits 10 to 15 with a combinational circuit for output from the output terminal out.
  • the zero-crossing detection circuit may be used for sensor elements such as a temperature sensor element, an acceleration sensor element, and a pressure sensor element other than the magnetoelectric conversion element.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

Provided is a zero-crossing detection circuit capable of detecting zero-crossing with high accuracy without being influenced by noise. The zero-crossing detection circuit includes a first comparison circuit, a second comparison circuit having a hysteresis function, and a logic circuit. The first comparison circuit is configured to output a zero-crossing detection result of a first input signal and a second input signal. The second comparison circuit is configured to output a comparison result of the first input signal and the second input signal. The logic circuit includes a unit configured to determine whether to reflect the zero-crossing detection result to output of the logic circuit based on the zero-crossing detection result and the comparison result.

Description

    RELATED APPLICATIONS
  • This application claims priority under 35 U.S.C. §119 to Japanese Patent Applications No. 2016-101236 filed on May 20, 2016 and No. 2017-059973 filed on Mar. 24, 2017, the entire content of which is hereby incorporated by reference.
  • BACKGROUND OF THE INVENTION 1. Field of the Invention
  • The present invention relates to a zero-crossing detection circuit and a sensor device, and more particularly, to a zero-crossing detection circuit capable of accurately detecting a zero-crossing point based on a signal from a sensor element.
  • 2. Description of the Related Art
  • Hitherto, various sensor devices have been mounted on electronic devices to be utilized. As an example, a magnetic sensor device is used for detecting a position of a movable element of a brushless motor. The brushless motor includes a cylindrical stator, and a cylindrical rotor provided so as to be opposed to an inner periphery or an outer periphery of the stator. The rotor is configured to freely rotate about its rotary axis with respect to the stator. The rotor includes field magnets arranged along a circumferential direction of the rotor, and the stator includes a stator core having winding wound therearound. A magnetic field generated by causing current to flow through the winding and a magnetic field generated by the field magnets interact with each other to cause rotation of the rotor.
  • In order to control the rotation of the rotor, it is necessary to detect a rotational position of the rotor, and a magnetic sensor element is generally used as means for detecting the position. The magnetic sensor element is configured to detect the rotational position of the rotor by detecting a position at which the S-pole and the N-pole of the magnet are switched, that is, a zero-crossing position. As for zero-crossing detection, there have been examined various methods using hysteresis characteristics to prevent chattering near the zero-crossing. However, this hysteresis may cause deviation between an original zero-crossing position and a zero-crossing detection position detected based on a sensor signal, which may cause problems such as reduction in motor efficiency, rotation unevenness, and occurrence of vibration. Thus, there has been required a zero-crossing detection circuit capable of preventing chattering near the zero-crossing with no hysteresis characteristics in its output.
  • FIG. 12 is a circuit diagram for illustrating an example of a related-art zero-crossing detection circuit. The related-art zero-crossing detection circuit includes an operational amplifier 50 and a comparison signal generation circuit 51. The operational amplifier 50 is configured to receive a signal S to be detected at an inverting input terminal as input, to thereby output a zero-crossing detection signal fa. The comparison signal generation circuit 51 is configured to generate a comparison signal h to apply the comparison signal h to a non-inverting input terminal of the operational amplifier 50. The comparison signal h is inverted to the positive or negative level with respect to the signal S to be detected based on the zero-crossing detection signal fa immediately after the zero-crossing detection, and sequentially changes its level to reach a zero level after a predetermined time period. The comparison signal generation circuit 51 includes resistors R10 and R11 and a capacitor Ca, and a time constant T=(R10+R11)·Ca is set.
  • FIG. 13 is an illustration of the operation of the related-art zero-crossing detection circuit configured as described above. When the signal S to be detected is applied to the inverting input terminal of the operational amplifier 50, the operational amplifier 50 compares the respective levels of the signal S to be detected and the comparison signal h to output the zero-crossing detection signal fa being the result of this comparison. At a time t1, the signal S to be detected has a positive level, and the comparison signal h has a negative level. Thus, the operational amplifier 50 outputs a low-level zero-crossing detection signal fa. As time elapses from this state, the level of the comparison signal h changes in accordance with the time constant T to reach the zero level. When the signal S to be detected crosses zero at a time t2, the voltage at the inverting input terminal of the operational amplifier 50 changes from the positive level to the zero level, and further changes to the negative level. This causes the zero-crossing detection signal fa output from the operational amplifier 50 to be inverted to the high level at the time t2. At this time, a high-level zero-crossing detection signal fa, that is, +Vdd is applied to the capacitor Ca, and hence a voltage C of +2 Vdd appears at the other end of the capacitor Ca. This voltage C is divided by the resistors R10 and R11 to be supplied to the non-inverting input terminal of the operational amplifier 50 as the comparison signal h. Thus, immediately after the time t2, the signal S to be detected changed to the negative level and the comparison signal h changed to the positive level are compared to each other by the operational amplifier 50. With this, even when noise ns is added to the signal S to be detected near zero-crossing to forcibly cause the zero-crossing, the zero-crossing detection circuit operates such that the positive or negative level of the comparison signal h is inverted with respect to the signal S to be detected due to the action of the comparison signal generation circuit 51. Thus, the zero-crossing detection signal fa output from the operational amplifier 50 is prevented from being inverted due to the noise ns, and thus a detection error of the zero-crossing is prevented. After that, the level of the comparison signal h gradually degreases in accordance with the time constant T, and reaches the zero level before a next zero-crossing time t3. When the signal S to be detected crosses zero again at the time t3, the zero-crossing detection signal fa output from the operational amplifier 50 is inverted to have a low level. At this time, a low-level zero-crossing detection signal fa, that is, a voltage −Vdd is applied to the capacitor Ca, and hence the voltage C of −2 Vdd appears at the other end of the capacitor Ca. This voltage C is divided by the resistors R10 and R11 to be supplied to the non-inverting input terminal of the operational amplifier 50 as the comparison signal h. The above-mentioned operation is performed for each change in positive and negative levels of the signal to be detected so as to output the zero-crossing detection signal fa. Thus, the zero-crossing detection signal is achieved without a detection error, that is, chattering, even when zero-crossing is caused due to noise.
  • SUMMARY OF THE INVENTION
  • In order to be able to detect the zero-crossing point with high accuracy, a zero-crossing detection circuit according to the present invention is configured as follows.
  • The zero-crossing detection circuit includes a first comparison circuit configured to receive a first input signal and a second input signal as input, a second comparison circuit having a hysteresis function and being configured to receive the first input signal and the second input signal as input, and a logic circuit. The first comparison circuit is configured to output a zero-crossing detection result of the first input signal and the second input signal. The second comparison circuit is configured to output a comparison result of the first input signal and the second input signal. The logic circuit includes means for determining output of the logic circuit based on the zero-crossing detection result and the comparison result.
  • According to the zero-crossing detection circuit of the present invention, the zero-crossing point at which the input signal is switched from positive to negative or from negative to positive can be detected with high accuracy, and the influence of zero-crossing due to noise can be removed. In addition, the zero-crossing detection circuit can be achieved with a relatively small circuit scale and a simple configuration. The present invention is widely applicable not only to a brushless motor given as an example but also to general zero-crossing point detection of signals such as sensor output.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a circuit diagram for illustrating a zero-crossing detection circuit according to a first embodiment of the present invention.
  • FIG. 2A, FIG. 2B, and FIG. 2C are graphs for showing an operation of each element of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 3A, FIG. 3B, FIG. 3C, and FIG. 3D are charts for illustrating an operation of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 4 is another example of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 5A, FIG. 5B, FIG. 5C, and FIG. 5D are graphs for showing an operation of each element of the another example of the zero-crossing detection circuit according to the first embodiment.
  • FIG. 6 is a circuit diagram for illustrating a zero-crossing detection circuit according to a second embodiment of the present invention.
  • FIG. 7 is a circuit diagram for illustrating a zero-crossing detection circuit according to a third embodiment of the present invention.
  • FIG. 8 is a circuit diagram for illustrating a first application example in which the zero-crossing detection circuit according to the first embodiment is applied to a magnetic sensor device.
  • FIG. 9 is a circuit diagram for illustrating a second application example in which the zero-crossing detection circuit according to the first embodiment is applied to the magnetic sensor device.
  • FIG. 10 is a circuit diagram for illustrating a third application example in which the zero-crossing detection circuit according to the second embodiment is applied to the magnetic sensor device.
  • FIG. 11 is a circuit diagram for illustrating a fourth application example in which the zero-crossing detection circuit according to the third embodiment is applied to the magnetic sensor device.
  • FIG. 12 is a circuit diagram for illustrating a related-art zero-crossing detection circuit.
  • FIG. 13 is a chart for illustrating an operation of the related-art zero-crossing detection circuit.
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • A zero-crossing detection circuit according to the present invention may be widely used as a zero-crossing detection circuit in a semiconductor circuit. Now, the zero-crossing detection circuit according to the present invention is described with reference to the drawings.
  • First Embodiment
  • FIG. 1 is a circuit diagram for illustrating a zero-crossing detection circuit according to a first embodiment of the present invention. The zero-crossing detection circuit according to the first embodiment includes a comparison circuit 10, a comparison circuit 11, and a logic circuit 20.
  • The comparison circuit 10 includes two input terminals and one output terminal, specifically, an inverting input terminal, a non-inverting input terminal, and an output terminal out0. Further, the comparison circuit 11 includes two input terminals and one output terminal, specifically, an inverting input terminal, a non-inverting input terminal, and an output terminal out1. The inverting input terminal of the comparison circuit 10 and the inverting input terminal of the comparison circuit 11 are connected in common to an input terminal N1. The non-inverting input terminal of the comparison circuit 10 and the non-inverting input terminal of the comparison circuit 11 are connected in common to an input terminal N2. A first input signal and a second input signal are supplied to the input terminal N1 and the input terminal N2, respectively. The output terminal out0 of the comparison circuit 10 and the output terminal out1 of the comparison circuit 11 are connected to the logic circuit 20. The logic circuit 20 is configured to receive a signal from the output terminal out0 and a signal from the output terminal out1 as input, to thereby output a logical operation result from an output terminal out. In the following description, the voltage of the input terminal N1, the voltage of the input terminal N2, the voltage of the output terminal out0, the voltage of the output terminal out1, and the voltage of the output terminal out are referred to as an input voltage Vn1, an input voltage Vn2, an output voltage Vout0, an output voltage Vout1, and an output voltage Vout, respectively.
  • Next, the operation of the zero-crossing detection circuit according to the first embodiment is described with reference to FIG. 2A to FIG. 2C and FIG. 3A to FIG. 3D.
  • First, the operation of the comparison circuit 10 is described. The comparison circuit 10 operates so as to output a high level from the output terminal out0 when the voltage supplied to the non-inverting input terminal is higher than the voltage supplied to the inverting input terminal, and, on the other hand, output a low level from the output terminal out0 when the voltage supplied to the non-inverting input terminal is lower than the voltage supplied to the inverting input terminal. The details of the operation are shown in FIG. 2A. In FIG. 2A, the lateral axis represents an input voltage difference between the input voltages Vn1 and Vn2, and the vertical axis represents each output voltage. As shown in FIG. 2A, when the input voltage Vn2 is higher than the input voltage Vn1, that is, when Vn2−Vn1>0 is satisfied, the output voltage Vout0 is output as a high level. On the other hand, when the input voltage Vn2 is lower than the input voltage Vn1, that is, when Vn2−Vn1<0 is satisfied, the output voltage Vout0 is output as a low level. The output voltage Vout0 transitions from the high level to the low level when Vn2−Vn1=0 is satisfied. Further, the output voltage Vout0 similarly transitions from the low level to the high level when Vn2−Vn1=0 is satisfied.
  • Further, the operation of the comparison circuit 10 when the input voltage difference Vn2−Vn1 changes along with time is illustrated in FIG. 3A and FIG. 3B. In FIG. 3A and FIG. 3B, the lateral axis represents elapse of time, and the vertical axis represents the input voltage difference or the output voltage. FIG. 3A represents transition of the input voltage difference Vn2−Vn1 that changes along with time. The input voltage difference Vn2−Vn1 may take various values along with the time change. In particular, the time when Vn2−Vn1=0 is satisfied is expressed as zero-crossing. FIG. 3B represents transition of the output voltage Vout0 that changes along with the time change of the input voltage difference Vn2−Vn1. As illustrated in FIG. 3B, the output voltage Vout0 is output as a high level when Vn2−Vn1>0 is satisfied, and is output as a low level when Vn2−Vn1<0 is satisfied. When Vn2−Vn1=0 is satisfied, that is, when Vn1=Vn2 is satisfied, the output voltage Vout0 is detected as zero-crossing.
  • Next, the operation of the comparison circuit 11 is described. The comparison circuit 11 operates so as to output a high level from the output terminal out1 when the voltage supplied to the non-inverting input terminal is higher than a sum of the voltage supplied to the inverting input terminal and a voltage Vth1, and, on the other hand, output a low level from the output terminal out1 when the voltage supplied to the non-inverting input terminal is lower than a sum of the voltage supplied to the inverting input terminal and a voltage Vth2. The details of this operation are shown in FIG. 2B. As shown in FIG. 2B, the output voltage Vout1 is output as a high level when the input voltage Vn2 is higher than the sum of the input voltage Vn1 and the voltage Vth1, that is, when Vn2−Vn1>Vth1 is satisfied, and is output as a low level when the input voltage Vn2 is lower than the sum of the input voltage Vn1 and the voltage Vth2, that is, when Vn2−Vn1<Vth2 is satisfied. In this case, the voltage Vth1 is a positive value and represents a positive hysteresis value, and the voltage Vth2 is a negative value and represents a negative hysteresis value. The output voltage Vout1 transitions from the high level to the low level when Vn2−Vn1=Vth2 is satisfied. Further, the output voltage Vout1 transitions from the low level to the high level when Vn2−Vn1=Vth1 is satisfied. When Vn2−Vn1 falls within a range between Vth1 and Vth2, the high level or the low level is output depending on the latest state. That is, the comparison circuit 11 operates as a comparison circuit having a hysteresis width of |Vth1|+|Vth2|.
  • Further, the operation of the comparison circuit 11 when the input voltage difference Vn2−Vn1 changes along with time is illustrated in FIG. 3A and FIG. 3C. FIG. 3C represents transition of the output voltage Vout1 that changes along with the time change of the input voltage difference Vn2−Vn1 illustrated in FIG. 3A. At a time t1, that is, when Vn2−Vn1>Vth1 is satisfied, the output voltage Vout1 is output as a high level. Even after elapse of time thereafter, the output voltage Vout1 is maintained at the high level, and then transitions from the high level to the low level when Vn2−Vn1<Vth2 is satisfied along with the decrease of Vn2−Vn1. Even after elapse of time thereafter, the output voltage Vout1 is maintained at the low level, and then transitions from the low level to the high level when Vn2−Vn1>Vth1 is satisfied along with the increase of Vn2−Vn1.
  • Next, the operation of the logic circuit 20 is described. The logic circuit 20 operates so as to determine the logic of the output voltage Vout depending on the logic states of the output voltage Vout0 and the output voltage Vout1. In more detail, when Vout1 is at a high level, the logic circuit 20 causes Vout to transition from the high level to the low level based on the transition of Vout0 from the high level to the low level. When Vout is originally at the low level, Vout does not change. The transition of Vout0 from the low level to the high level does not cause Vout to change. Further, when Vout1 is at a low level, the transition of Vout0 from the low level to the high level causes Vout to transition from the low level to the high level. When Vout is originally at the high level, Vout does not change. The transition of Vout0 from the high level to the low level does not cause Vout to change. The above-mentioned operation is described with reference to FIG. 3A to FIG. 3D.
  • As described above, FIG. 3A, FIG. 3B, and FIG. 3C represent the time change of the input voltage difference Vn2−Vn1, the time change of the output voltage Vout0, and the time change of the output voltage Vout1, respectively. FIG. 3D represents the time change of the output voltage Vout.
  • In FIG. 3A to FIG. 3D, at the time t1, the output voltage Vout0 and the output voltage Vout1 are at a high level. After that, as the time elapses and Vn2−Vn1 decreases, Vout0 transitions from the high level to the low level when zero-crossing is obtained. At this time, Vout1 is at a high level, and hence the logic circuit 20 outputs, to Vout, the detection of zero-crossing from the high level to the low level based on Vout0. After that, as the time elapses and Vn2−Vn1<Vth2 is satisfied, Vout1 transitions from the high level to the low level. After that, as the time elapses and Vn2−Vn1 increases, Vout0 transitions from the low level to the high level when zero-crossing is obtained. At this time, Vout1 is at the low level, and hence the logic circuit 20 outputs, to Vout, the detection of the zero-crossing from the low level to the high level based on Vout0. After that, as the time elapses and Vn2−Vn1>Vth1 is satisfied, Vout 1 transitions from the low level to the high level. Further after that, as the time elapses to arrive at a time t2, the same state as that at the time t1 is obtained.
  • At the time t2, the output voltage Vout0 and the output voltage Vout1 are at a high level. After that, as the time elapses and Vn2−Vn1 decreases, Vout0 transitions from the high level to the low level when zero-crossing is obtained. At this time, Vout1 is at a high level, and hence the logic circuit 20 outputs, to Vout, the detection of the zero-crossing from the high level to the low level based on Vout0. Then, as the time elapses, Vn2−Vn1 crosses zero two times due to the noise ns. Thus, the output voltage Vout0 transitions from the low level to the high level, and then further transitions to the low level. At this time, Vout1 is at a high level, and hence the logic circuit 20 operates so as to prevent the transition from the low level to the high level of Vout0 from being output to Vout. Thus, the zero-crossing detection due to the noise does not appear at the output terminal out. As the time further elapses and Vn2−Vn1<Vth2 is satisfied, Vout1 transitions from the high level to the low level. After that, as the time elapses and Vn2−Vn1 increases, Vout0 transitions from the low level to the high level when zero-crossing is obtained. At this time, Vout1 is at a low level, and hence the logic circuit 20 outputs, to Vout, the detection of the zero-crossing from the low level to the high level based on Vout0. After that, as the time elapses, Vn2−Vn1 crosses zero two times due to the noise ns. Thus, the output voltage Vout0 transitions from the high level to the low level, and then further transitions to the high level. At this time, Vout1 is at a low level, and hence the logic circuit 20 operates so as to prevent the transition from the high level to the low level of Vout0 from being output to Vout. Thus, the zero-crossing detection due to the noise does not appear at the output terminal out. After that, as the time elapses and Vn2−Vn1>Vth1 is satisfied, Vout1 transitions from the low level to the high level. Further after that, as the time elapses to arrive at a time t3, the same state as those at the time t1 and the time 2 is obtained.
  • Description has been given above of the operation of the zero-crossing detection circuit according to the first embodiment. It is shown that zero-crossing detection can be performed while removing the influence of zero-crossing due to noise, and also zero-crossing detection results can be obtained with high accuracy with a simple circuit configuration. With use of the zero-crossing detection circuit according to the first embodiment in a brushless motor, the demand for high-speed rotation can be met. Further, an output error due to noise, which has been a problem in the related art when meeting the demand of increase in speed, can be prevented, and the rotation can be controlled accurately.
  • In this description, the voltage Vth1 and the voltage Vth2 are regarded as the hysteresis voltages of the comparison circuit 11, but as illustrated in the circuit diagram of FIG. 4 and the operation graphs of FIG. 5A to FIG. 5D, the comparison circuit 11 may be divided into a comparison circuit 12 and a comparison circuit 13. The comparison circuit 12 may determine whether Vn2−Vn1 is larger or smaller than the voltage Vth1, and the comparison circuit 13 may determine whether Vn2−Vn1 is larger or smaller than the voltage Vth2. Here, FIG. 5A represents the operation of the comparison circuit 10, FIG. 5B represents the operation of the comparison circuit 12, FIG. 5C represents the operation of the comparison circuit 13, and FIG. 5D represents the operation of the logic circuit 20.
  • Second Embodiment
  • FIG. 6 is a circuit diagram for illustrating a zero-crossing detection circuit according to a second embodiment of the present invention. The second embodiment differs from the first embodiment illustrated in FIG. 1 in that the comparison circuit 10 and the comparison circuit 11 are removed to add a comparison circuit 14, and a latch circuit 30 is added between the comparison circuit 14 and the logic circuit 20. The added elements are configured and connected as follows. Further, the following connection differs from that of the first embodiment due to the removed elements.
  • The comparison circuit 14 includes two input terminals, one output terminal, and one control terminal HC. Specifically, the comparison circuit 14 includes an inverting input terminal, a non-inverting input terminal, an output terminal out4, and a hysteresis control terminal HC. The inverting input terminal of the comparison circuit 14 is connected to the input terminal N1, and the non-inverting input terminal of the comparison circuit 14 is connected to the input terminal N2. The hysteresis control terminal HC of the comparison circuit 14 is configured to adjust a hysteresis voltage of the comparison circuit 14 based on a control signal input to the hysteresis control terminal. The control circuit for the hysteresis control terminal HC is not shown. The output terminal out4 of the comparison circuit 14 is connected to the latch circuit 30. The latch circuit 30 includes latches LT1, LT2, and LT3, and the output terminal out4 is connected to data input terminals D of the latches LT1, LT2, and LT3. A data output terminal Q of the latch LT1, a data output terminal Q of the latch LT2, and a data output terminal Q of the latch LT3 correspond to the output terminal out0, the output terminal out2, and the output terminal out3, respectively, which are connected to the logic circuit 20 similarly to the first embodiment illustrated in FIG. 4. The latches LT1, LT2, and LT3 each include a clock terminal C, and are each configured to latch data input to the data input terminal D based on each of clock signals CK1, CK2, and CK3 to output the data to the data output terminal Q. The control circuit for the clock signals CK1, CK2, and CK3 is not shown. Other connections and configurations are the same as those of the first embodiment. In the following description, the voltage of the output terminal out4 is referred to as an output voltage Vout4.
  • Next, the operation of the zero-crossing detection circuit according to the second embodiment is described.
  • The comparison circuit 14 operates so as to perform the operations of the comparison circuit 10 and the comparison circuit 11 of the first embodiment in a time-division manner based on the control signal input to the hysteresis control terminal HC. That is, when the comparison circuit 14 is controlled so that the voltage Vth1 and the voltage Vth2 are zero, the comparison circuit 14 operates similarly to the comparison circuit 10, and when the comparison circuit 14 is controlled so that the voltage Vth1 and the voltage Vth2 are prevented from being zero, the comparison circuit 14 operates similarly to the comparison circuit 12 or the comparison circuit 13. The comparison circuit that operates as described above can be obtained by a known technology, and hence description thereof is omitted herein. When the output voltage Vout4 of the comparison circuit 14 is latched by the latch LT1 based on the clock signal CK1 under a state in which the comparison circuit 14 is controlled in the same manner as the comparison circuit 10, the output voltage Vout0 becomes an output voltage similar to Vout0 represented in FIG. 5A and FIG. 3B. When the output voltage Vout4 of the comparison circuit 14 is latched by the latches LT2 and LT3 based on the clock signals CK2 and CK3 under a state in which the comparison circuit 14 is controlled in the same manner as the comparison circuit 12 and the comparison circuit 13, the output voltage Vout1 becomes an output voltage similar to Vout I represented in FIG. 5B, FIG. 5C, and FIG. 3C. The operation of the logic circuit 20 is similar to that of the first embodiment, and the output voltage Vout can be used to perform zero-crossing detection while removing the influence of zero-crossing due to noise.
  • In the second embodiment, the comparison circuit 14 is operated in a time-division manner, and hence the operation speed is lower than that of the first embodiment. However, the second embodiment has an advantage in that the number of the comparison circuits can be reduced to decrease the circuit scale.
  • Description has been given above of the operation of the zero-crossing detection circuit according to the second embodiment. Similarly to the first embodiment, it is shown that zero-crossing detection can be performed while removing the influence of zero-crossing due to noise, and zero-crossing detection results can be obtained with high accuracy with a simple circuit configuration.
  • Third Embodiment
  • FIG. 7 is a circuit diagram for illustrating a zero-crossing detection circuit according to a third embodiment of the present invention. The third embodiment differs from the second embodiment illustrated in FIG. 6 in that the comparison circuit 14 is removed to add a comparison circuit 15, and a hysteresis generation circuit 40 is added between the input terminal N2 and a non-inverting input terminal of the comparison circuit 15. The added elements are configured and connected as follows. Further, the following connection differs from that of the second embodiment due to the removed element.
  • The comparison circuit 15 includes two input terminals and one output terminal. Specifically, the comparison circuit 15 includes an inverting input terminal, the non-inverting input terminal, and an output terminal out5. The inverting input terminal of the comparison circuit 15 is connected to the input terminal N1, and the non-inverting input terminal of the comparison circuit 15 is connected to an output terminal of the hysteresis generation circuit 40. An input terminal of the hysteresis generation circuit 40 is connected to the input terminal N2. The output terminal outs of the comparison circuit 15 is connected to the latch circuit 30. The hysteresis generation circuit 40 includes the hysteresis control terminal HC, and is configured to adjust a hysteresis voltage based on a control signal. The control circuit for the hysteresis control terminal HC is not shown. Other connections and configurations are similar to those of the second embodiment. In the following description, the node between the non-inverting input terminal of the comparison circuit 15 and the output terminal of the hysteresis generation circuit 40 is represented by N2′, and the voltage of the node N2′ is represented by Vn2′. Further, the voltage of the output terminal outs is referred to as an output voltage Vout5.
  • Next, the operation of the zero-crossing detection circuit according to the third embodiment is described.
  • The comparison circuit 15 operates similarly to the comparison circuit 10 of the first embodiment. That is, the comparison circuit 15 operates so as to output a high level from the output terminal out5 when the voltage supplied to the non-inverting input terminal is higher than the voltage supplied to the inverting input terminal, and, on the other hand, output a low level from the output terminal outs when the voltage supplied to the non-inverting input terminal is lower than the voltage supplied to the inverting input terminal. The hysteresis generation circuit 40 operates so as to switch whether to output the input voltage as it is, output the input voltage with the positive voltage Vth1 being added, or output the input voltage with the negative voltage Vth2 being added, depending on the control state of the hysteresis control terminal HC. That is, the output voltage of the hysteresis generation circuit 40 is controlled so as to satisfy any one of Vn2′=Vn2, Vn2′=Vn2+Vth1, and Vn2′=Vn2+Vth2. The hysteresis generation circuit that operates as described above can be obtained by a known technology, and, for example, can be achieved with use of a resistor, a constant current source, and a switching element.
  • Under a state in which the output voltage of the hysteresis generation circuit 40 is controlled so as to satisfy Vn2′=Vn2, the comparison circuit 15 compares the voltage Vn2′=Vn2 input to the non-inverting input terminal and the voltage Vn1 input to the inverting input terminal. Thus, the comparison circuit 15 operates similarly to the comparison circuit 10 of the first embodiment. When the output voltage Vout5 of the comparison circuit 15 is latched by the latch LT1 based on the clock signal CK1 under this control state, the output voltage Vout0 becomes an output voltage similar to Vout0 represented in FIG. 5A and FIG. 3B.
  • Further, under a state in which the output voltage of the hysteresis generation circuit 40 is controlled so as to satisfy Vn2′=Vn2+Vth1, the comparison circuit 15 compares the voltage Vn2′=Vn2+Vth1 input to the non-inverting input terminal and the voltage Vn1 input to the inverting input terminal. Under a state in which the output voltage of the hysteresis generation circuit 40 is controlled so as to satisfy Vn2′=Vn2+Vth2, the comparison circuit 15 compares the voltage Vn2′=Vn2+Vth2 input to the non-inverting input terminal and the voltage Vn1 input to the inverting input terminal. Thus, the comparison circuit 15 operates similarly to the comparison circuits 12 and 13 of the first embodiment. When the output voltage Vout5 of the comparison circuit 15 is latched by the latches LT2 and LT3 based on the clock signals CK2 and CK3 under those control states, the output voltage Vout1 becomes an output voltage similar to Vout1 represented in FIG. 5B, FIG. 5C, and FIG. 3C. The operation of the logic circuit 20 is similar to those in the first and second embodiments, and the output voltage Vout can be used to perform zero-crossing detection while removing the influence of zero-crossing due to noise.
  • In the third embodiment, the hysteresis generation circuit 40 is operated in a switching manner, and hence the operation speed is lower than that of the first embodiment as in the second embodiment. However, the third embodiment has an advantage in that the number of the comparison circuits can be reduced to decrease the circuit scale.
  • Description has been given above of the operation of the zero-crossing detection circuit according to the third embodiment. Similarly to the first and second embodiments, it is shown that zero-crossing detection can be performed while removing the influence of zero-crossing due to noise, and zero-crossing detection results can be obtained with high accuracy with a simple circuit configuration.
  • In this description, for the sake of convenience in description, the voltage is added to the input terminal N2 side, but the voltage may be added to the input terminal N1 side. Further, the voltage may be added to both of the input terminal N1 and the input terminal N2.
  • Further, in the description of the second and third embodiments, the latch circuit is represented as a circuit configured to hold the output voltage of the comparison circuit, but the present invention is not necessarily limited to this configuration as long as the configuration can perform a data importing operation.
  • Further, in the description of the first, second, and third embodiments, description is given of the operation of selecting whether or not to output the output voltage Vout0 to the voltage Vout depending on the high-level or low-level logic state of the output voltage Vout1, but the present invention is not necessarily limited thereto. There may be performed an operation of controlling the output voltage Vout at a timing at which the output Vout0 changes based on the logic state of the output voltage Vout1. Further, there may be performed an operation of outputting, to Vout, the transition from the high level to the low level of Vout0 only once when the output voltage Vout1 is at a high level, and outputting, to Vout, the transition from the low level to the high level of Vout0 only once when the output voltage Vout1 is at a low level. Further, for the sake of convenience in description, the high level and the low level of each output voltage is specified based on the operation state, but the high level and the low level may be reversed, and the combination of the high level and the low level may be changed. Further, in this description, the voltage Vth1 and the voltage Vth2 are regarded as the hysteresis voltages of the comparison circuit. However, the present invention is not necessarily limited to this configuration as long as the configuration can perform the operation of the comparison circuit described herein. As an example, the comparison circuit may not have the hysteresis voltages therein. A reference voltage may be supplied to the comparison circuit to adjust the inverting level of the output voltage Vout1. Further, the voltage Vth1 and the voltage Vth2 are regarded as constant voltages that do not change along with time as illustrated in FIG. 3A. However, for example, when the magnitude of the noise changes depending on a power supply voltage or an ambient environment like temperature, the voltage Vth1 and the voltage Vth2 may be variable instead of being constant voltages. Further, the hysteresis width of the comparison circuit 10 is not particularly referred to, and the description is made on the premise that the hysteresis width is zero. In an actual circuit, however, a non-ideal component is present, and hence the hysteresis width is not always zero and may have a minute value. Even in this case, the effect of the present invention is not lost. Further, in an actual circuit, the comparison circuit 10 may have a hysteresis function with very small amplitude in order to remove the noise due to, for example, fluctuations in power supply voltage. Alternatively, the comparison circuit 10 may have a temporal hysteresis function, or a digital filter may be provided by sampling the output of the comparison circuit 10 a plurality of times. Further, in this description, for the sake of convenience in description, voltage is particularly noted as the input signal, but it is apparent that the input signal may be current.
  • Application Examples of Zero-crossing Detection Circuit of Invention
  • FIG. 8 is a circuit diagram for illustrating a first application example in which the zero-crossing detection circuit according to the first embodiment of the present invention is applied to a magnetic sensor device. A signal of a Hall element 1 a serving as a magnetoelectric conversion element is input to a differential amplifier circuit 2 a from a terminal Ba and a terminal Da. The differential amplifier circuit 2 a amplifies the signal, and the output of the differential amplifier circuit 2 a is connected to the input terminal N1 and the input terminal N2 of the zero-crossing detection circuit of the present invention. In this case, the voltage of the terminal Ba and the voltage of the terminal Da are represented by VBa and VDa, respectively. The signal voltage of the Hall element 1 a is represented by VDa−VBa, and an amplification factor of the differential amplifier circuit 2 a is represented by G.
  • The magnitude and the sign of the signal voltage VDa−VBa of the Hall element 1 a change based on the direction of the current flowing through the Hall element 1 a and the direction of the magnetic field applied thereto in accordance with the Fleming's left-hand rule. When the sign of the signal voltage VDa−VBa is positive in a case where the magnetic field is applied in a direction from the front side to the depth side of the drawing sheet, the sign of the signal voltage VDa−VBa is negative in a case where the magnetic field is applied in a direction from the depth side to the front side of the drawing sheet. Further, as the applied magnetic field is increased, the magnitude of the signal voltage VDa−VBa is increased. Further, in an ideal case where an offset voltage of the Hall element 1 a is zero, the signal voltage VDa−VBa is zero when the magnetic field applied to the Hall element 1 a is zero. The signal voltage of the Hall element 1 a is amplified by the differential amplifier circuit 2 a to obtain the following expression.

  • Vn2−Vn1=G×(VDa−VBa)   (1)
  • Thus, Vn2−Vn1 takes a positive value, a negative value, or zero depending on the magnetic field applied to the Hall element 1 a. That is, due to the operation of the zero-crossing detection circuit according to the first embodiment of the present invention, the zero-crossing point of the magnetic field applied to the Hall element 1 a can be detected with high accuracy without an operation error due to noise. As a different expression, in an application for detecting a relative positional relationship between a magnet and the sensor device having mounted thereon the zero-crossing detection circuit according to the first embodiment of the present invention, a point at which the magnetic field applied to the sensor device is switched from the S-pole to the N-pole or from the N-pole to the S-pole due to the change in relative position can be detected with high accuracy. Thus, the first application example of the present invention is suitable for usage in an encoder or usage in a brushless motor, which requires highly-accurate detection of the rotational position of the rotor. Thus, the demand for high-speed rotation can be met. Further, an output error due to noise, which has been a problem in the related art when meeting the demand of increase in speed, can be prevented, and the rotation can be controlled accurately.
  • FIG. 9 is a circuit diagram for illustrating a second application example in which the zero-crossing detection circuit according to the first embodiment of the present invention is applied to the magnetic sensor device. The configuration of connection between a Hall element 1 b and a differential amplifier circuit 2 b is similar to the configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a of the first application example. Further, the configuration of connection between a Hall element 1 c and a differential amplifier circuit 2 c is also similar to the configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a of the first application example. The differential amplifier circuits 2 b and 2 c have single-ended output as compared to the differential amplifier circuit 2 a having differential output. The signal of the Hall element 1 b serving as a magnetoelectric conversion element is input to the differential amplifier circuit 2 b from a terminal Bb and a terminal Db. The differential amplifier circuit 2 b amplifies the signal, and the output of the differential amplifier circuit 2 b is connected to the input terminal N1 of the zero-crossing detection circuit of the present invention. Further, the signal of the Hall element 1 c serving as a magnetoelectric conversion element is input to the differential amplifier circuit 2 c from a terminal Bc and a terminal Dc. The differential amplifier circuit 2 c amplifies the signal, and the output of the differential amplifier circuit 2 c is connected to the input terminal N2 of the zero-crossing detection circuit of the present invention. In this case, the voltage of the terminal Bb, the voltage of the terminal Db, the voltage of the terminal Bc, and the voltage of the terminal Dc are represented by VBb, VDb, VBc, and VDc, respectively, and the signal voltage of the Hall element 1 b and the signal voltage of the Hall element 1 c are represented by VDb-VBb and VDc-VBc, respectively. An amplification factor of each of the differential amplifier circuits 2 b and 2 c is represented by G. In this case, the input voltage Vn1 supplied to the input terminal N1 and the input voltage Vn2 supplied to the input terminal N2 are represented as follows.

  • Vn1=G×(VDb−VBb)   (2)

  • Vn2=G×(VDc−VBc)   (3)
  • The following expression is obtained from Expression (2) and Expression (3).

  • Vn2−Vn1=G×{(VDc−VBc)−(VDb−VBb)}  (4)
  • Thus, Vn2−Vn1 takes a positive value, a negative value, or zero depending on the magnetic fields applied to the Hall element 1 b and the Hall element 1 c. That is, due to the operation of the zero-crossing detection circuit according to the first embodiment of the present invention, the zero-crossing point being the difference of the magnetic fields applied to the Hall element 1 b and the Hall element 1 c can be detected with high accuracy without an operation error due to noise. That is, the zero-crossing detection is output when the signals of the two sensor elements are equal to each other, and the output can be performed while which of the signals of the two sensor elements is larger is determined. The second application example is suitable for an application in which, for example, the magnetic sensor device is arranged between a magnet generating a bias magnetic field and a gear made of a metal, for example, iron or a magnetic material, and the rotation of the gear is detected by the magnetic sensor device.
  • In this description, for the sake of convenience in description, the differential amplifier circuits 2 b and 2 c have single-ended output, but the differential amplifier circuits 2 b and 2 c may have differential output in order to improve the noise resistance. Further, description is given of a case of two Hall elements, but the number of the Hall elements may be larger than two. For example, a differential signal 1 of two Hall elements and a differential signal 2 of two Hall elements different from the above-mentioned Hall elements may be generated, and the zero-crossing of the differential signal 1 and the differential signal 2 may be detected.
  • FIG. 10 is a circuit diagram for illustrating a third application example in which the zero-crossing detection circuit according to the second embodiment of the present invention is applied to the magnetic sensor device. The configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a is similar to the configuration of connection between the Hall element 1 a and the differential amplifier circuit 2 a of the first application example. The signal of the Hall element 1 a serving as the magnetoelectric conversion element is input to the differential amplifier circuit 2 a from the terminal Ba and the terminal Da. The differential amplifier circuit 2 a amplifies the signal, and the output of the differential amplifier circuit 2 a is connected to the input terminal N1 and the input terminal N2 of the zero-crossing detection circuit of the present invention. Similarly to the case of the first application example, Vn2−Vn1 takes a positive value, a negative value, or zero depending on the magnetic field applied to the Hall element 1 a. That is, due to the operation of the zero-crossing detection circuit according to the second embodiment of the present invention, the zero-crossing point of the magnetic field applied to the Hall element 1 a can be detected with high accuracy without an operation error due to noise.
  • FIG. 11 is a circuit diagram for illustrating a fourth application example in which the zero-crossing detection circuit according to the third embodiment of the present invention is applied to the magnetic sensor device. The difference from the third application example of FIG. 10 resides in that the third embodiment is applied instead of the second embodiment. Specifically, the comparison circuit 14 is removed to add the comparison circuit 15, and the hysteresis generation circuit 40 is added between the input terminal N2 and the non-inverting input terminal of the comparison circuit 15. The hysteresis control terminal HC of the hysteresis generation circuit 40 is omitted. Other connections and configurations are the same as those of the third application example.
  • The signal of the Hall element 1 a serving as the magnetoelectric conversion element is input to the differential amplifier circuit 2 a from the terminal Ba and the terminal Da. The differential amplifier circuit 2 a amplifies the signal, and the output of the differential amplifier circuit 2 a is connected to the input terminal N1 and the input terminal N2 of the zero-crossing detection circuit of the present invention. Similarly to the cases of the first and second application examples, Vn2−Vn1 takes a positive value, a negative value, or zero depending on the magnetic field applied to the Hall element 1 a. That is, due to the operation of the zero-crossing detection circuit according to the third embodiment of the present invention, the zero-crossing point of the magnetic field applied to the Hall element 1 a can be detected with high accuracy without an operation error due to noise.
  • In this description, for the sake of convenience in description, the hysteresis generation circuit 40 is connected between the differential amplifier circuit 2 a and the comparison circuit 15, but the hysteresis generation circuit 40 may be connected to a side closer to the signal source. Specifically, the hysteresis generation circuit 40 may be connected between the Hall element 1 a and the differential amplifier circuit 2 a. In general, the Hall element has a resistance component, and hence the hysteresis generation circuit 40 does not require a resistor. Thus, the hysteresis generation circuit 40 may be formed of only a constant current source and a switching element as an example. In this manner, there are advantages such as contribution to downsizing, and further reduction of characteristic shift due to temperature by synchronizing the value of the constant current with the resistance value of the Hall element.
  • FIG. 8 to FIG. 11 are examples in which the zero-crossing detection circuit of the present invention is applied to the magnetic sensor device. In this description, specific examples are shown for description. However, the present invention is not necessarily limited to the configuration or the sensor element, and is applicable to various semiconductor circuits and sensor circuits. The same applies to the cases of the zero-crossing detection circuits according to the first, second, and third embodiments. As an example, the zero-crossing detection circuit may be combined with a spinning current circuit configured to cancel an offset voltage that is a non-ideal component of the Hall element serving as the magnetoelectric conversion element, or may be combined with a circuit for a chopping operation or an auto-zero operation, which is configured to cancel an offset voltage that is a non-ideal component of the differential amplifier circuit or the comparison circuit. When the zero-crossing detection circuit is combined with, for example, the spinning current circuit or the circuit for the chopping operation or the auto-zero operation, the signal processing is performed not in a successive time but in a discrete time, and hence it is not preferred to compute the output of each of the comparison circuits 10 to 15 with a combinational circuit for output from the output terminal out. As described with reference to the second or third embodiment, combination with a sequential circuit, for example, a latch circuit, is preferred. Further, the zero-crossing detection circuit may be used for sensor elements such as a temperature sensor element, an acceleration sensor element, and a pressure sensor element other than the magnetoelectric conversion element.

Claims (14)

What is claimed is:
1. A zero-crossing detection circuit, comprising:
a first comparison circuit configured to receive a first input signal and a second input signal as input;
a second comparison circuit having a hysteresis function and being configured to receive the first input signal and the second input signal as input; and
a logic circuit,
the first comparison circuit being configured to output a first comparison result of the first input signal and the second input signal,
the second comparison circuit being configured to output a second comparison result of the first input signal and the second input signal,
the logic circuit being configured to determine whether to reflect the first comparison result to output of the logic circuit based on the second comparison result.
2. A zero-crossing detection circuit according to claim 1,
wherein, under a first condition in which the second comparison result has a first level and the output of the logic circuit has a first output level, transition of the first comparison result from the first level to a second level causes transition of the output of the logic circuit to a second output level,
wherein, under a second condition in which the second comparison result has the second level and the output of the logic circuit has the second output level, transition of the first comparison result from the second level to the first level causes transition of the output of the logic circuit to the first output level, and
wherein the output of the logic circuit is prevented from being changed under a state other than the first condition and the second condition.
3. A zero-crossing detection circuit according to claim 1, wherein the first comparison circuit has a hysteresis width that is smaller than a hysteresis width of the hysteresis function of the second comparison circuit.
4. A zero-crossing detection circuit according to claim 1,
wherein the first comparison circuit and the second comparison circuit are constructed of the same comparison circuit, and
wherein the zero-crossing detection circuit further comprises means for switching operation states of the first comparison circuit and the second comparison circuit.
5. A zero-crossing detection circuit according to claim 1,
wherein the first comparison circuit and the second comparison circuit are constructed of the same comparison circuit, and
wherein the zero-crossing detection circuit further comprises voltage addition means for switching a voltage to be added to at least one of the first input signal or the second input signal.
6. A zero-crossing detection circuit according to claim 1, wherein the first input signal and the second input signal comprise voltages.
7. A zero-crossing detection circuit according to claim 1, wherein the first input signal and the second input signal comprise currents.
8. A sensor device, comprising:
a sensor element configured to output a signal based on an intensity of a physical amount applied to the sensor element; and
the zero-crossing detection circuit of claim 1, which is configured to detect zero-crossing of the signal output from the sensor element.
9. A sensor device according to claim 8,
wherein the first input signal comprises an output signal of a first sensor element, and
wherein the second input signal comprises an output signal of a second sensor element.
10. A zero-crossing detection circuit, comprising:
a first comparison result signal representing magnitudes of a first input signal and a second input signal; and
a second comparison result signal representing whether a difference between the first input signal and the second input signal is larger or smaller than a predetermined value,
the zero-crossing detection circuit being configured to output, based on the second comparison result signal, a signal that is based on the first comparison result signal to an output signal.
11. A zero-crossing detection circuit according to claim 10, wherein the first input signal and the second input signal comprise voltages.
12. A zero-crossing detection circuit according to claim 10, wherein the first input signal and the second input signal comprise currents.
13. A sensor device, comprising:
a sensor element configured to output a signal based on an intensity of a physical amount applied to the sensor element; and
the zero-crossing detection circuit of claim 10, which is configured to detect zero-crossing of the signal output from the sensor element.
14. A sensor device according to claim 13,
wherein the first input signal comprises an output signal of a first sensor element, and
wherein the second input signal comprises an output signal of a second sensor element.
US15/598,755 2016-05-20 2017-05-18 Zero-crossing detection circuit and sensor device Abandoned US20170336445A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/717,820 US10852328B2 (en) 2016-05-20 2019-12-17 Zero-crossing detection circuit and sensor device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2016101236 2016-05-20
JP2016-101236 2016-05-20
JP2017059973A JP6581615B2 (en) 2016-05-20 2017-03-24 Zero-cross detection circuit and sensor device
JP2017-059973 2017-03-24

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/717,820 Continuation US10852328B2 (en) 2016-05-20 2019-12-17 Zero-crossing detection circuit and sensor device

Publications (1)

Publication Number Publication Date
US20170336445A1 true US20170336445A1 (en) 2017-11-23

Family

ID=60330071

Family Applications (2)

Application Number Title Priority Date Filing Date
US15/598,755 Abandoned US20170336445A1 (en) 2016-05-20 2017-05-18 Zero-crossing detection circuit and sensor device
US16/717,820 Active US10852328B2 (en) 2016-05-20 2019-12-17 Zero-crossing detection circuit and sensor device

Family Applications After (1)

Application Number Title Priority Date Filing Date
US16/717,820 Active US10852328B2 (en) 2016-05-20 2019-12-17 Zero-crossing detection circuit and sensor device

Country Status (2)

Country Link
US (2) US20170336445A1 (en)
CN (1) CN107402322B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190324066A1 (en) * 2018-04-24 2019-10-24 Ablic Inc. Zero cross detection circuit and sensor device
EP3564686A1 (en) * 2018-04-24 2019-11-06 ABLIC Inc. Zero cross detection circuit and sensor device
US11181562B2 (en) 2017-07-31 2021-11-23 Rohm Co., Ltd. Zero-crossing detection circuit
CN114487820A (en) * 2022-01-27 2022-05-13 大连尚佳新能源科技有限公司 Self-adaptive power supply incremental encoder detection circuit
US11733275B2 (en) 2017-07-31 2023-08-22 Rohm Co., Ltd. Zero-crossing detection circuit

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114323083B (en) * 2021-12-17 2024-08-20 上海艾为电子技术股份有限公司 Hall sensing device and electronic equipment
CN115498931A (en) * 2022-09-02 2022-12-20 上海鑫雁微电子股份有限公司 Zero-crossing detection circuit with simple structure

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4959558A (en) * 1988-03-31 1990-09-25 U.S. Philips Corporation Circuit arrangement for detecting cross-over by an alternating voltage of a fixed reference voltage level
US6326816B1 (en) * 1999-12-09 2001-12-04 Via Technologies, Inc. Method and apparatus for minimal phase delay and zero-crossing filtering
US20110057686A1 (en) * 2009-09-08 2011-03-10 Ricoh Company, Ltd. Hysteresis comparator circuit and semiconductor device incorporating same
US20110062996A1 (en) * 2009-09-17 2011-03-17 Taiwan Semiconductor Manufacturing Co., Ltd. Power on detection circuit
US20120039425A1 (en) * 2010-08-16 2012-02-16 Haishi Wang Zero-crossing gain control system and associated methods
US20160141887A1 (en) * 2014-11-13 2016-05-19 Silergy Semiconductor Technology (Hangzhou) Ltd. Tuning circuit, tuning method and resonance-type contactless power supply

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2585231B2 (en) 1986-09-19 1997-02-26 株式会社東芝 Zero cross detection circuit
SU1807984A3 (en) * 1991-07-19 1993-04-07 Gol K B N Proizv Ob Edineniya Device for determination of transit-though-zero moment
US5949597A (en) 1996-04-24 1999-09-07 Tandberg Data Storage A/S Method and apparatus for data pulse qualification wherein the amplitude of a preceding pulse of opposite polarity is tracked
JP3319717B2 (en) 1998-03-05 2002-09-03 日本テキサス・インスツルメンツ株式会社 Voltage comparison circuit
JP4160322B2 (en) * 2002-06-04 2008-10-01 三洋電機株式会社 Zero cross detection circuit
JP4230972B2 (en) * 2003-10-16 2009-02-25 ローム株式会社 Rotation position detecting device and recording / reproducing device using the same
DE102004014674A1 (en) * 2004-03-25 2005-10-13 Robert Bosch Gmbh Zero-crossing detection of a variable threshold ultrasonic signal
JP2011220953A (en) * 2010-04-14 2011-11-04 Yokogawa Electric Corp Zero-cross signal generation circuit and phase measuring instrument
JP5835917B2 (en) 2011-03-22 2015-12-24 ローム株式会社 MOTOR DRIVE CIRCUIT, METHOD, COOLING DEVICE USING SAME, AND ELECTRONIC DEVICE
CN202854226U (en) * 2012-10-26 2013-04-03 上海大学 Zero-cross detection circuit of electric energy metering chip
CN204287305U (en) * 2014-12-01 2015-04-22 深圳市金威源科技股份有限公司 A kind of alternating voltage zero-crossing point testing circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4959558A (en) * 1988-03-31 1990-09-25 U.S. Philips Corporation Circuit arrangement for detecting cross-over by an alternating voltage of a fixed reference voltage level
US6326816B1 (en) * 1999-12-09 2001-12-04 Via Technologies, Inc. Method and apparatus for minimal phase delay and zero-crossing filtering
US20110057686A1 (en) * 2009-09-08 2011-03-10 Ricoh Company, Ltd. Hysteresis comparator circuit and semiconductor device incorporating same
US20110062996A1 (en) * 2009-09-17 2011-03-17 Taiwan Semiconductor Manufacturing Co., Ltd. Power on detection circuit
US20120039425A1 (en) * 2010-08-16 2012-02-16 Haishi Wang Zero-crossing gain control system and associated methods
US20160141887A1 (en) * 2014-11-13 2016-05-19 Silergy Semiconductor Technology (Hangzhou) Ltd. Tuning circuit, tuning method and resonance-type contactless power supply

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11181562B2 (en) 2017-07-31 2021-11-23 Rohm Co., Ltd. Zero-crossing detection circuit
US11733275B2 (en) 2017-07-31 2023-08-22 Rohm Co., Ltd. Zero-crossing detection circuit
US12105123B2 (en) 2017-07-31 2024-10-01 Rohm Co., Ltd. Zero-crossing detection circuit
US20190324066A1 (en) * 2018-04-24 2019-10-24 Ablic Inc. Zero cross detection circuit and sensor device
EP3561526A1 (en) * 2018-04-24 2019-10-30 ABLIC Inc. Zero cross detection circuit and sensor device
CN110398623A (en) * 2018-04-24 2019-11-01 艾普凌科有限公司 Zero cross detection circuit and sensor device
EP3564686A1 (en) * 2018-04-24 2019-11-06 ABLIC Inc. Zero cross detection circuit and sensor device
US10908193B2 (en) 2018-04-24 2021-02-02 Ablic Inc. Zero cross detection circuit and sensor device
US10914610B2 (en) 2018-04-24 2021-02-09 Ablic Inc. Zero cross detection circuit and sensor device
TWI802680B (en) * 2018-04-24 2023-05-21 日商艾普凌科有限公司 Zero-cross detection circuit and sensing device
CN114487820A (en) * 2022-01-27 2022-05-13 大连尚佳新能源科技有限公司 Self-adaptive power supply incremental encoder detection circuit

Also Published As

Publication number Publication date
US20200124647A1 (en) 2020-04-23
CN107402322B (en) 2021-01-12
US10852328B2 (en) 2020-12-01
CN107402322A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
US10852328B2 (en) Zero-crossing detection circuit and sensor device
JP6899877B2 (en) Zero cross detection circuit and sensor device
US8193807B2 (en) Magnetic sensor device
US8866474B2 (en) Magnetic sensor device
US9128127B2 (en) Sensor device
US9261569B2 (en) Sensor device
US8502529B2 (en) Magnetic sensor device
US9453888B2 (en) Sensor device
US9267818B2 (en) Magnetic sensor device
US9322672B2 (en) Magnetic sensor device
JP5729254B2 (en) Hysteresis device
JP7080098B2 (en) Zero cross detection circuit and sensor device
JP2005257642A (en) Magnetic detection circuit and encoder
JP4415748B2 (en) Sample hold circuit
CN114551715B (en) Signal processing circuit and signal processing method thereof and Hall sensor circuit

Legal Events

Date Code Title Description
AS Assignment

Owner name: SII SEMICONDUCTOR CORPORATION, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ARIYAMA, MINORU;REEL/FRAME:042428/0324

Effective date: 20170508

AS Assignment

Owner name: ABLIC INC., JAPAN

Free format text: CHANGE OF NAME;ASSIGNOR:SII SEMICONDUCTOR CORPORATION;REEL/FRAME:045567/0927

Effective date: 20180105

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION