TW201805600A - Zero-cross detecting circuit and sensor device - Google Patents

Zero-cross detecting circuit and sensor device Download PDF

Info

Publication number
TW201805600A
TW201805600A TW106116060A TW106116060A TW201805600A TW 201805600 A TW201805600 A TW 201805600A TW 106116060 A TW106116060 A TW 106116060A TW 106116060 A TW106116060 A TW 106116060A TW 201805600 A TW201805600 A TW 201805600A
Authority
TW
Taiwan
Prior art keywords
zero
circuit
output
comparison
signal
Prior art date
Application number
TW106116060A
Other languages
Chinese (zh)
Other versions
TWI670472B (en
Inventor
有山稔
Original Assignee
精工半導體有限公司
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
Application filed by 精工半導體有限公司 filed Critical 精工半導體有限公司
Publication of TW201805600A publication Critical patent/TW201805600A/en
Application granted granted Critical
Publication of TWI670472B publication Critical patent/TWI670472B/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/153Arrangements in which a pulse is delivered at the instant when a predetermined characteristic of an input signal is present or at a fixed time interval after this instant
    • H03K5/1536Zero-crossing detectors
    • 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
    • H02P6/18Circuit arrangements for detecting position without separate position detecting elements
    • H02P6/182Circuit arrangements for detecting position without separate position detecting elements using back-emf in windings

Abstract

The present invention provides a zero-cross detecting circuit capable of detecting a zero-cross with high accuracy without being influenced by a noise. The zero-cross detecting circuit comprises: a first comparison circuit; a second comparison circuit having a hysteresis function; and a logic circuit. The first comparison circuit outputs a zero-cross detection result of a first input signal and a second input signal. The second comparison circuit outputs a comparison result of the first and second input signals. The logic circuit provides a means determining whether the zero-cross detection result is reflected to an output based on the zero-cross detection result and the comparison result.

Description

零交越檢測電路以及感測裝置Zero-crossing detection circuit and sensing device

本發明是有關於一種零交越(zero-cross)檢測電路及感測裝置,尤其是有關於一種可基於來自感測元件的訊號而準確地檢測零交越點的零交越檢測電路。The invention relates to a zero-cross detection circuit and a sensing device, and more particularly to a zero-cross detection circuit that can accurately detect a zero-cross point based on a signal from a sensing element.

在習知上,各種感測裝置被裝載於電子設備而受到有效利用。作為一例,可列舉為了檢測無刷馬達(brushless motor)的活動件的位置而使用磁力感測裝置的例子。無刷馬達包括圓筒狀的定子(stator)、以及在該定子的內周或外周相向地設置的圓筒狀的轉子(rotor)。轉子以旋轉軸為中心相對於定子自如地旋轉。在轉子中沿圓周方向配置有勵磁用的磁鐵,在定子的定子鐵心上捲繞有線圈,利用藉由使電流流至線圈而產生的磁場與勵磁用的磁鐵所形成的磁場的相互作用,轉子進行旋轉。Conventionally, various sensing devices are mounted on electronic devices and are effectively used. As an example, an example in which a magnetic force sensing device is used to detect the position of a movable member of a brushless motor can be cited. The brushless motor includes a cylindrical stator and a cylindrical rotor that is provided on the inner or outer periphery of the stator so as to face each other. The rotor rotates freely with respect to the stator around the rotation axis. A magnet for excitation is arranged in the rotor in a circumferential direction, a coil is wound around a stator core of the stator, and a magnetic field generated by passing a current to the coil is used to interact with a magnetic field formed by the magnet for excitation. The rotor rotates.

為了對轉子的旋轉進行控制,需要進行轉子的旋轉位置的檢測,作為位置檢測的手段,通常使用磁力感測元件。利用磁力感測元件對磁鐵的S極與N極的切換、即零交越的位置進行檢測,藉此檢測轉子的旋轉位置。於零交越檢測中,為了防止零交越附近的顫動(chattering)而對使具有磁滯(hysteresis)特性的方法進行了各種研究。但是,受該磁滯的影響,原本的零交越位置與藉由感測訊號檢測而得的零交越檢測位置之間產生偏差,產生馬達的效率降低、旋轉不均或發生振動等問題。因此,需要一種在零交越附近不產生顫動且輸出不具有磁滯特性的零交越檢測電路。In order to control the rotation of the rotor, it is necessary to detect the rotational position of the rotor. As a means of position detection, a magnetic force sensing element is generally used. A magnetic sensing element is used to detect the switching between the S pole and the N pole of the magnet, that is, the position of zero crossing, thereby detecting the rotation position of the rotor. In the zero-crossing detection, various methods for making hysteresis characteristics have been studied in order to prevent chattering near the zero-crossing. However, due to the influence of the hysteresis, a deviation occurs between the original zero-crossing position and the zero-crossing detection position detected by the sensing signal, causing problems such as a decrease in the efficiency of the motor, uneven rotation, or vibration. Therefore, there is a need for a zero-crossing detection circuit that does not generate chattering near the zero-crossing and has no hysteresis output.

將習知的零交越檢測電路的一例的電路圖示於圖12。習知的零交越檢測電路包括:運算放大器50,將被檢測訊號S輸入至反相輸入端子,並作為零交越檢測訊號fa而加以輸出;以及比較訊號形成電路51,形成比較訊號h並賦予至運算放大器50的非反相輸入端子,其中藉由零交越檢測訊號fa,所述比較訊號h相對於被檢測訊號S而在零交越檢測後立即成為正負相反的位準,並且依序發生位準變化,在規定時間後成為零位準。比較訊號形成電路51包括電阻R10、電阻R11及電容Ca,且設定為時間常數T=(R10+R11)·Ca。A circuit diagram of an example of a conventional zero-crossing detection circuit is shown in FIG. 12. The conventional zero-crossing detection circuit includes: an operational amplifier 50 that inputs a detected signal S to an inverting input terminal and outputs the detected signal S as a zero-crossing detection signal fa; and a comparison signal forming circuit 51 that forms a comparison signal h and The non-inverting input terminal provided to the operational amplifier 50, wherein by the zero-crossing detection signal fa, the comparison signal h is opposite to the detected signal S immediately after the zero-crossing detection and has a positive and negative opposite level, and The sequence changes its level and becomes the zero level after a specified time. The comparison signal forming circuit 51 includes a resistor R10, a resistor R11, and a capacitor Ca, and is set to a time constant T = (R10 + R11) · Ca.

將如此般構成的習知的零交越檢測電路的動作示於圖13。若將被檢測訊號S賦予至運算放大器50的反相輸入端子,則運算放大器50對被檢測訊號S與比較訊號h的各位準進行比較,並輸出作為其比較結果的零交越檢測訊號fa。於時刻t1,被檢測訊號S為正側位準,比較訊號h為負側位準,運算放大器50輸出低位準的零交越檢測訊號fa。自該狀態起經過一定時刻,比較訊號h跟隨時間常數T發生位準變化而成為零位準,若於時刻t2被檢測訊號S進行零交越,則運算放大器50的反相輸入端子的電壓自正側的位準成為零位準,進而變化為負側位準。藉此,自演算放大器50輸出的零交越檢測訊號fa於時刻t2反相為高位準。此時,對電容器Ca賦予高位準的零交越檢測訊號fa、即+Vdd,因此於該電容器Ca的另一端出現為+2Vdd的電壓C。該電壓C經電阻R10與電阻R11分壓,作為比較訊號h而供給至運算放大器50的非反相輸入端子。因此,緊接於時刻t2後,利用運算放大器50對變化為負側位準的被檢測訊號S與成為正側位準的比較訊號h進行比較。藉此,即便在零交越附近雜訊ns附加於被檢測訊號S而強制地進行了零交越,藉由比較訊號形成電路51的作用,亦以比較訊號h的位準相對於被檢測訊號S而成為正負相反的位準的方式動作,因此自運算放大器50輸出的零交越檢測訊號fa不會因雜訊ns而反相,不會發生零交越的誤檢測。此後,比較訊號h跟隨時間常數T而其位準緩慢降低,在來到下一零交越時刻t3以前到達零位準。若來到時刻t3而被檢測訊號S再次進行零交越,則自運算放大器50輸出的零交越檢測訊號fa反相而成為低位準。此時,對電容器Ca賦予低位準的零交越檢測訊號fa、即電壓-Vdd,因此於電容器Ca的另一端出現為-2Vdd的電壓C。該電壓C經電阻R10與電阻R11分壓,作為比較訊號h而供給至運算放大器50的非反相輸入端子。每當發生被檢測訊號的正負位準的變化時便進行以上動作,以輸出零交越檢測訊號fa。因此,實現了即便發生由雜訊引起的零交越亦不會發生誤檢測即顫動的零交越檢測訊號。 [現有技術文獻] [專利文獻]The operation of the conventional zero-crossing detection circuit having such a configuration is shown in FIG. 13. If the detected signal S is given to the inverting input terminal of the operational amplifier 50, the operational amplifier 50 compares each bit of the detected signal S with the comparison signal h and outputs a zero-crossing detection signal fa as a comparison result. At time t1, the detected signal S is a positive level, the comparison signal h is a negative level, and the operational amplifier 50 outputs a low-level zero-crossing detection signal fa. After a certain time has elapsed from this state, the comparison signal h changes to a zero level following the level change of the time constant T. If the detected signal S performs zero crossing at time t2, the voltage of the inverting input terminal of the operational amplifier 50 is The positive level becomes the zero level and then changes to the negative level. Thereby, the zero-crossing detection signal fa output from the operational amplifier 50 is inverted to a high level at time t2. At this time, the capacitor Ca is given a high-level zero-crossing detection signal fa, that is, + Vdd, so a voltage C of + 2Vdd appears at the other end of the capacitor Ca. This voltage C is divided by the resistor R10 and the resistor R11, and is supplied to the non-inverting input terminal of the operational amplifier 50 as a comparison signal h. Therefore, immediately after time t2, the operational signal 50 is used to compare the detected signal S that has changed to the negative level with the comparison signal h that has become the positive level. Thereby, even if the noise ns is added to the detected signal S in the vicinity of the zero-crossing and the zero-crossing is forcibly performed, the role of the comparison signal forming circuit 51 is to compare the level of the signal h with respect to the detected signal. S operates in a positive and negative level. Therefore, the zero-crossing detection signal fa output from the operational amplifier 50 does not reverse due to noise ns, and no false detection of zero-crossing occurs. Thereafter, the comparison signal h follows the time constant T and its level slowly decreases, reaching the zero level before reaching the next zero crossing time t3. When the detected signal S is zero-crossed again at time t3, the zero-crossing detection signal fa output from the operational amplifier 50 is inverted and becomes a low level. At this time, the capacitor Ca is given a low-level zero-crossing detection signal fa, that is, the voltage -Vdd, and therefore a voltage C of -2Vdd appears at the other end of the capacitor Ca. This voltage C is divided by the resistor R10 and the resistor R11, and is supplied to the non-inverting input terminal of the operational amplifier 50 as a comparison signal h. Whenever the positive and negative levels of the detected signal change, the above operation is performed to output the zero-crossing detection signal fa. Therefore, even if the zero crossing caused by noise occurs, a zero crossing detection signal that does not cause false detection, that is, chattering, is realized. [Prior Art Literature] [Patent Literature]

[專利文獻1]日本專利特開昭63-75670號公報 [發明所欲解決之課題][Patent Document 1] Japanese Patent Laid-Open No. 63-75670 [Problems to be Solved by the Invention]

然而,於習知的零交越檢測電路中,如上所述般構成為僅在由電阻與電容所定義的時間常數T所決定的時間期間消除雜訊所引起的零交越的影響,從而存在以下課題:於在較時間常數T所決定的時間短的時間內被檢測訊號S重複進行零交越的情況下,無法檢測被檢測訊號S的零交越點。因此,例如於無刷馬達中的使用中,無法應對對高速旋轉的要求,存在因零交越檢測電路而無刷馬達的旋轉速度被限速的課題。另外,若以時間常數T變短的方式選擇電阻與電容的值,則存在無法消除雜訊的課題。因此,例如於無刷馬達中,存在因雜訊而零交越檢測電路進行誤輸出,無法達成準確的旋轉控制的課題。However, in the conventional zero-crossing detection circuit, as described above, it is configured to eliminate the influence of the zero-crossing caused by noise only during the time determined by the time constant T defined by the resistance and the capacitance, and thus there is The following problem: The zero crossing point of the detected signal S cannot be detected in the case where the detected signal S repeatedly performs zero crossing in a time shorter than the time determined by the time constant T. Therefore, for example, in the use in a brushless motor, a request for high-speed rotation cannot be met, and there is a problem that the rotation speed of the brushless motor is limited by a zero-crossing detection circuit. In addition, if the values of the resistance and the capacitance are selected so that the time constant T becomes shorter, there is a problem that noise cannot be eliminated. Therefore, for example, in a brushless motor, there is a problem that a zero-crossing detection circuit performs an erroneous output due to noise, and an accurate rotation control cannot be achieved.

[解決課題之手段] 為了解決習知的此種問題點,本發明的零交越檢測電路設為以下構成。[Means for Solving the Problems] In order to solve such a conventional problem, the zero-crossing detection circuit of the present invention has the following configuration.

本發明的零交越檢測電路具備輸入有第一輸入訊號與第二輸入訊號的第一比較電路、輸入有第一輸入訊號與第二輸入訊號且具有磁滯功能的第二比較電路以及邏輯電路,且為具備以下單元的構成:所述單元中,第一比較電路輸出第一輸入訊號與第二輸入訊號的零交越檢測結果,第二比較電路輸出第一輸入訊號與第二輸入訊號的比較結果,邏輯電路基於零交越檢測結果與比較結果而決定輸出。 [發明的效果]The zero-crossing detection circuit of the present invention includes a first comparison circuit to which a first input signal and a second input signal are input, a second comparison circuit to which a first input signal and a second input signal are input, and a hysteresis function, and a logic circuit. And has a structure in which the first comparison circuit outputs a zero-crossing detection result of the first input signal and the second input signal, and the second comparison circuit outputs the first input signal and the second input signal. Comparing the results, the logic circuit determines the output based on the zero-crossing detection result and the comparison result. [Effect of the invention]

根據本發明的零交越檢測電路,可高精度地檢測所輸入的訊號由正切換為負、以及由負切換為正的零交越點,且可消除由雜訊引起的零交越的影響,並且能夠以相對較小的電路規模以及簡便的構成來實現零交越檢測電路。不僅可應用於所列舉的無刷馬達,亦可廣泛地應用於感測輸出等通常的訊號的零交越點檢測。According to the zero-crossing detection circuit of the present invention, a zero-crossing point at which an input signal is switched from positive to negative and from negative to positive can be detected with high accuracy, and the influence of the zero-crossing caused by noise can be eliminated. In addition, the zero-crossing detection circuit can be realized with a relatively small circuit scale and a simple structure. Not only can be applied to the listed brushless motors, but also can be widely used to detect the zero-crossing point of common signals such as sensor output.

本發明的零交越檢測電路可作為半導體電路中的零交越檢測電路而被廣泛利用。以下,參照圖式對本發明的零交越檢測電路進行說明。The zero-crossing detection circuit of the present invention can be widely used as a zero-crossing detection circuit in a semiconductor circuit. Hereinafter, the zero-crossing detection circuit of the present invention will be described with reference to the drawings.

<第1實施形態> 圖1為第1實施形態的零交越檢測電路的電路圖。第1實施形態的零交越檢測電路包括比較電路10、比較電路11以及邏輯電路20。<First Embodiment> FIG. 1 is a circuit diagram of a zero-crossing detection circuit according to a first embodiment. The zero-crossing detection circuit of the first embodiment includes a comparison circuit 10, a comparison circuit 11, and a logic circuit 20.

比較電路10具有兩個輸入端子與一個輸出端子,詳細而言,具有反相輸入端子、非反相輸入端子以及輸出端子out0。另外,比較電路11具有兩個輸入端子與一個輸出端子,詳細而言,具有反相輸入端子、非反相輸入端子以及輸出端子out1。比較電路10的反相輸入端子與比較電路11的反相輸入端子由輸入端子N1共同連接。比較電路10的非反相輸入端子與比較電路11的非反相輸入端子由輸入端子N2共同連接。對輸入端子N1與輸入端子N2分別供給第一輸入訊號與第二輸入訊號。比較電路10的輸出端子out0與比較電路11的輸出端子out1連接於邏輯電路20。邏輯電路20將輸出端子out0的訊號與輸出端子out1的訊號作為輸入,並自輸出端子out輸出邏輯演算結果。在以下的說明中,將輸入端子N1、輸入端子N2、輸出端子out0、輸出端子out1、輸出端子out的各電壓分別設為輸入電壓Vn1、輸入電壓Vn2、輸出電壓Vout0、輸出電壓Vout1、輸出電壓Vout。The comparison circuit 10 includes two input terminals and one output terminal. Specifically, the comparison circuit 10 includes an inverting input terminal, a non-inverting input terminal, and an output terminal out0. In addition, the comparison circuit 11 includes two input terminals and one output terminal. Specifically, the comparison circuit 11 includes 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 commonly connected by 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 commonly connected by an input terminal N2. The input terminal N1 and the input terminal N2 are respectively supplied with a first input signal and a second input signal. An output terminal out0 of the comparison circuit 10 and an output terminal out1 of the comparison circuit 11 are connected to the logic circuit 20. The logic circuit 20 takes the signal of the output terminal out0 and the signal of the output terminal out1 as inputs, and outputs a logic calculation result from the output terminal out. In the following description, the voltages of the input terminal N1, the input terminal N2, the output terminal out0, the output terminal out1, and the output terminal out are respectively set to the input voltage Vn1, the input voltage Vn2, the output voltage Vout0, the output voltage Vout1, and the output voltage. Vout.

繼而,使用圖2及圖3對第1實施形態的零交越檢測電路的動作進行說明。 首先,對比較電路10的動作進行說明。比較電路10以如下方式動作:當供給至非反相輸入端子的電壓高於供給至反相輸入端子的電壓時,自輸出端子out0輸出高位準,與此相反地,當供給至非反相輸入端子的電壓低於供給至反相輸入端子的電壓時,自輸出端子out0輸出低位準。將該動作的詳情示於圖2的(a)。此處,橫軸表示輸入電壓Vn1與輸入電壓Vn2的輸入電壓差,縱軸表示各輸出電壓。如圖2的(a)所示,輸出電壓Vout0在輸入電壓Vn2高於輸入電壓Vn1時、即Vn2-Vn1>0時輸出高位準。與此相反地,在輸入電壓Vn2低於輸入電壓Vn1時、即Vn2-Vn1<0時,輸出低位準。輸出電壓Vout0自高位準向低位準的遷移於Vn2-Vn1=0處進行。另外,輸出電壓Vout0自低位準向高位準的遷移同樣地於Vn2-Vn1=0處進行。Next, the operation of the zero-crossing detection circuit according to the first embodiment will be described with reference to Figs. 2 and 3. First, the operation of the comparison circuit 10 will be described. The comparison circuit 10 operates as follows: when the voltage supplied to the non-inverting input terminal is higher than the voltage supplied to the inverting input terminal, a high level is output from the output terminal out0, and when it is supplied to the non-inverting input When the voltage of the terminal is lower than the voltage supplied to the inverting input terminal, a low level is output from the output terminal out0. The details of this operation are shown in (a) of FIG. 2. Here, the horizontal axis represents an input voltage difference between the input voltage Vn1 and the input voltage Vn2, and the vertical axis represents each output voltage. As shown in (a) of FIG. 2, the output voltage Vout0 outputs a high level when the input voltage Vn2 is higher than the input voltage Vn1, that is, when Vn2-Vn1> 0. In contrast, when the input voltage Vn2 is lower than the input voltage Vn1, that is, when Vn2-Vn1 <0, the low level is output. The transition of the output voltage Vout0 from the high level to the low level is performed at Vn2-Vn1 = 0. In addition, the transition of the output voltage Vout0 from a low level to a high level is also performed at Vn2-Vn1 = 0.

另外,將輸入電壓差Vn2-Vn1發生時間變化的情況下的比較電路10的動作示於圖3的(a)及圖3的(b)。此處,橫軸表示時間經過,縱軸表示輸入電壓差或輸出電壓。圖3的(a)表示輸入電壓差Vn2-Vn1根據時間而變化的情況。輸入電壓差Vn2-Vn1隨時間變化而可取各種值。尤其將成為Vn2-Vn1=0時表現為零交越。圖3的(b)表示輸出電壓Vout0隨輸入電壓差Vn2-Vn1的時間變化而變化的情況。如圖3的(b)所示,輸出電壓Vout0在Vn2-Vn1>0時輸出高位準,在Vn2-Vn1<0時輸出低位準。在Vn2-Vn1=0時、即Vn1=Vn2時,輸出電壓Vout0進行零交越檢測。The operation of the comparison circuit 10 when the input voltage difference Vn2-Vn1 changes with time is shown in FIGS. 3 (a) and 3 (b). Here, the horizontal axis represents the passage of time, and the vertical axis represents the input voltage difference or the output voltage. (A) of FIG. 3 shows a case where the input voltage difference Vn2-Vn1 changes with time. The input voltage difference Vn2-Vn1 can take various values over time. In particular, when Vn2-Vn1 = 0, there will be zero crossing. (B) of FIG. 3 shows a case where the output voltage Vout0 changes with the time change of the input voltage difference Vn2-Vn1. As shown in FIG. 3 (b), the output voltage Vout0 outputs a high level when Vn2-Vn1> 0, and outputs a low level when Vn2-Vn1 <0. When Vn2-Vn1 = 0, that is, when Vn1 = Vn2, the output voltage Vout0 performs zero-crossing detection.

繼而,對比較電路11的動作進行說明。比較電路11以如下方式動作:當供給至非反相輸入端子的電壓高於供給至反相輸入端子的電壓與電壓Vth1的和時,自輸出端子out1輸出高位準,與此相反地,當供給至非反相輸入端子的電壓低於供給至反相輸入端子的電壓與電壓Vth2的和時,自輸出端子out1輸出低位準。將該動作的詳情示於圖2的(b)。如圖2的(b)所示,輸出電壓Vout1在輸入電壓Vn2高於輸入電壓Vn1與電壓Vth1的和時、即Vn2-Vn1>Vth1時輸出高位準,在輸入電壓Vn2低於輸入電壓Vn1與電壓Vth2的和時、即Vn2-Vn1<Vth2時輸出低位準。此處,電壓Vth1為正值且表示正數側的磁滯值,電壓Vth2為負值且表示負數側的磁滯值。輸出電壓Vout1自高位準向低位準的遷移於Vn2-Vn1=Vth2處進行。另外,輸出電壓Vout1自低位準向高位準的遷移於Vn2-Vn1=Vth1處進行。當Vn2-Vn1為Vth1與Vth2之間時,根據緊跟在前的狀態而輸出高位準或低位準。即,比較電路11作為具有磁滯寬度|Vth1|+|Vth2|的比較電路而動作。Next, an operation of the comparison circuit 11 will be described. The comparison circuit 11 operates as follows: When the voltage supplied to the non-inverting input terminal is higher than the sum of the voltage supplied to the inverting input terminal and the voltage Vth1, a high level is output from the output terminal out1, and in contrast, when the supply When the voltage to the non-inverting input terminal is lower than the sum of the voltage supplied to the inverting input terminal and the voltage Vth2, a low level is output from the output terminal out1. The details of this operation are shown in (b) of FIG. 2. As shown in FIG. 2 (b), the output voltage Vout1 outputs a high level when the input voltage Vn2 is higher than the sum of the input voltage Vn1 and the voltage Vth1, that is, Vn2-Vn1> Vth1, and the input voltage Vn2 is lower than the input voltage Vn1 and When the voltage Vth2 is summed, that is, when Vn2-Vn1 <Vth2, a low level is output. Here, the voltage Vth1 is a positive value and indicates a hysteresis value on the positive side, and the voltage Vth2 is a negative value and indicates a hysteresis value on the negative side. The transition of the output voltage Vout1 from a high level to a low level is performed at Vn2-Vn1 = Vth2. In addition, the transition of the output voltage Vout1 from a low level to a high level is performed at Vn2-Vn1 = Vth1. When Vn2-Vn1 is between Vth1 and Vth2, a high level or a low level is output according to the immediately preceding state. That is, the comparison circuit 11 operates as a comparison circuit having a hysteresis width | Vth1 | + | Vth2 |.

另外,將輸入電壓差Vn2-Vn1發生時間變化的情況下的比較電路11的動作示於圖3的(a)及圖3的(c)。圖3的(c)表示輸出電壓Vout1隨圖3的(a)所示的輸入電壓差Vn2-Vn1的時間變化而變化的情況。當為時刻t1時、即Vn2-Vn1>Vth1時,輸出電壓Vout1輸出高位準,於其後的時間經過後亦維持高位準,隨著Vn2-Vn1的減小,當成為Vn2-Vn1<Vth2時,自高位準遷移為低位準的輸出,於其後的時間經過後亦維持低位準,隨著Vn2-Vn1的增大,當成為Vn2-Vn1>Vth1時,自低位準遷移為高位準。The operation of the comparison circuit 11 when the input voltage difference Vn2-Vn1 changes over time is shown in FIGS. 3 (a) and 3 (c). (C) of FIG. 3 shows a case where the output voltage Vout1 changes with time change of the input voltage difference Vn2-Vn1 shown in (a) of FIG. 3. When it is time t1, that is, Vn2-Vn1> Vth1, the output voltage Vout1 outputs a high level, and the high level is maintained after the elapse of the following time. As Vn2-Vn1 decreases, when Vn2-Vn1 <Vth2 decreases The output shifted from the high level to the low level will also maintain the low level after the elapse of the following time. With the increase of Vn2-Vn1, when Vn2-Vn1> Vth1 becomes, the transition from the low level to the high level.

繼而,對邏輯電路20的動作進行說明。邏輯電路20以如下方式動作:根據輸出電壓Vout0與輸出電壓Vout1的邏輯狀態來決定輸出電壓Vout的邏輯。更詳細而言,邏輯電路20在Vout1為高位準時,藉由Vout0自高位準向低位準的遷移而使Vout自高位準遷移為低位準。若Vout原本為低位準,則Vout不發生變化。Vout不會因Vout0自低位準向高位準的遷移而發生變化。另外,在Vout1為低位準時,藉由Vout0自低位準向高位準的遷移而使Vout自低位準遷移為高位準。若Vout原本為高位準,則Vout不發生變化。Vout不會因Vout0自高位準向低位準的遷移而發生變化。使用圖3對以上動作進行說明。Next, an operation of the logic circuit 20 will be described. The logic circuit 20 operates as follows: The logic of the output voltage Vout is determined based on the logic states of the output voltage Vout0 and the output voltage Vout1. In more detail, when Vout1 is at a high level, Vout0 transitions from a high level to a low level by shifting Vout0 from a high level to a low level. If Vout was originally low, Vout would not change. Vout does not change due to the transition of Vout0 from a low level to a high level. In addition, when Vout1 is at the low level, Vout0 is migrated from the low level to the high level by the transition of Vout0 from the low level to the high level. If Vout was originally high, Vout would not change. Vout does not change due to the transition of Vout0 from a high level to a low level. The above operation will be described using FIG. 3.

如上文所述,圖3的(a)、圖3的(b)、圖3的(c)分別表示輸入電壓差Vn2-Vn1、輸出電壓Vout0、輸出電壓Vout1的時間變化。圖3的(d)表示輸出電壓Vout的時間變化。As described above, FIG. 3 (a), FIG. 3 (b), and FIG. 3 (c) respectively show the time variation of the input voltage difference Vn2-Vn1, the output voltage Vout0, and the output voltage Vout1. (D) of FIG. 3 shows a time change of the output voltage Vout.

於圖3的(a)~圖3的(d)中,當為時刻t1時,輸出電壓Vout0與輸出電壓Vout1為高位準。其後,時間經過而Vn2-Vn1減小,且在進行了零交越時Vout0自高位準遷移為低位準。此時,Vout1為高位準,因此邏輯電路20將Vout0的自高位準向低位準的零交越的檢測輸出至Vout。其後,若時間經過而成為Vn2-Vn1<Vth2,則Vout1自高位準遷移為低位準。其後,時間經過而Vn2-Vn1增大,且在進行了零交越時Vout0自低位準遷移為高位準。此時,Vout1為低位準,因此邏輯電路20將Vout0的自低位準向高位準的零交越的檢測輸出至Vout。其後,若時間經過而成為Vn2-Vn1>Vth1,則Vout1自低位準遷移為高位準。進而,其後,當時間經過而為時刻t2時,成為與時刻t1相同的狀態。In FIGS. 3 (a) to 3 (d), when it is time t1, the output voltage Vout0 and the output voltage Vout1 are at a high level. Thereafter, time elapses and Vn2-Vn1 decreases, and Vout0 shifts from a high level to a low level when a zero crossing is performed. At this time, Vout1 is a high level, so the logic circuit 20 outputs the detection of zero crossing of Vout0 from the high level to the low level to Vout. Thereafter, if time passes and Vn2-Vn1 <Vth2 is reached, Vout1 shifts from a high level to a low level. Thereafter, time elapses and Vn2-Vn1 increases, and Vout0 shifts from a low level to a high level when a zero crossing is performed. At this time, Vout1 is at the low level, so the logic circuit 20 outputs the detection of zero crossing of Vout0 from the low level to the high level to Vout. Thereafter, if time passes and Vn2-Vn1> Vth1 is reached, Vout1 shifts from a low level to a high level. Furthermore, when time elapses thereafter and it is time t2, it will be in the same state as time t1.

當為時刻t2時,輸出電壓Vout0與輸出電壓Vout1為高位準。其後,時間經過而Vn2-Vn1減小,且在進行了零交越時Vout0自高位準遷移為低位準。此時,Vout1為高位準,因此邏輯電路20將Vout0的自高位準向低位準的零交越的檢測輸出至Vout。其後,時間經過,Vn2-Vn1因雜訊ns而進行兩次零交越,輸出電壓Vout0在自低位準遷移為高位準後進而遷移為低位準。此時,Vout1為高位準,因此邏輯電路20以不將Vout0的自低位準向高位準的遷移輸出至Vout的方式動作。因此,由雜訊引起的零交越檢測不會出現於輸出端子out。進而,若時間經過而成為Vn2-Vn1<Vth2,則Vout1自高位準遷移為低位準。其後,時間經過而Vn2-Vn1增大,且在進行了零交越時Vout0自低位準遷移為高位準。此時,Vout1為低位準,因此邏輯電路20將Vout0的自低位準向高位準的零交越的檢測輸出至Vout。其後,時間經過,Vn2-Vn1因雜訊ns而進行兩次零交越,輸出電壓Vout0在自高位準遷移為低位準後進而遷移為高位準。此時,Vout1為低位準,因此以不將Vout0的自高位準向低位準的遷移輸出至Vout的方式動作。因此,由雜訊引起的零交越檢測不會出現於輸出端子out。其後,若時間經過而成為Vn2-Vn1>Vth1,則Vout1自低位準遷移為高位準。進而,其後,當時間經過而為時刻t3時,成為與時刻t1及時刻2相同的狀態。When it is time t2, the output voltage Vout0 and the output voltage Vout1 are at a high level. Thereafter, time elapses and Vn2-Vn1 decreases, and Vout0 shifts from a high level to a low level when a zero crossing is performed. At this time, Vout1 is a high level, so the logic circuit 20 outputs the detection of zero crossing of Vout0 from the high level to the low level to Vout. After that, Vn2-Vn1 performs zero crossing twice due to noise ns, and the output voltage Vout0 shifts from the low level to the high level and then to the low level. At this time, Vout1 is at a high level, so the logic circuit 20 operates so as not to output the transition from the low level to the high level of Vout0 to Vout. Therefore, zero-crossing detection due to noise does not occur at the output terminal out. Furthermore, if time passes and Vn2-Vn1 <Vth2 is reached, Vout1 shifts from a high level to a low level. Thereafter, time elapses and Vn2-Vn1 increases, and Vout0 shifts from a low level to a high level when a zero crossing is performed. At this time, Vout1 is at the low level, so the logic circuit 20 outputs the detection of zero crossing of Vout0 from the low level to the high level to Vout. After that, Vn2-Vn1 performs zero crossing twice due to noise ns, and the output voltage Vout0 shifts from the high level to the low level and then to the high level. At this time, Vout1 is at a low level, and therefore operates in a manner that does not output the transition from the high level to the low level of Vout0 to Vout. Therefore, zero-crossing detection due to noise does not occur at the output terminal out. Thereafter, if time passes and Vn2-Vn1> Vth1 is reached, Vout1 shifts from a low level to a high level. Furthermore, when time elapses thereafter and it is time t3, it will be in the same state as time t1 and time 2.

藉由以上內容對第1實施形態的零交越檢測電路的動作進行了說明,且示出了以下情況:可進行零交越檢測並且可消除由雜訊引起的零交越的影響,能夠以簡便的電路構成獲得高精度的零交越檢測結果。若在無刷馬達中使用本實施形態的零交越檢測電路,則可應對對高速旋轉的要求。亦不會發生習知的於應對高速化時成為課題的由雜訊引起的誤輸出,而可實現準確的旋轉控制。The operation of the zero-crossing detection circuit according to the first embodiment has been described based on the above. The following shows the case where zero-crossing detection can be performed and the influence of zero-crossing caused by noise can be eliminated. Simple circuit configuration to obtain high-precision zero-crossing detection results. By using the zero-crossing detection circuit of this embodiment in a brushless motor, it is possible to meet the requirements for high-speed rotation. The conventional erroneous output due to noise, which is a problem that has been a problem in response to high speed, does not occur, and accurate rotation control can be realized.

於本說明中,將電壓Vth1與電壓Vth2作為比較電路11的磁滯電壓進行了說明,但亦可如圖4的電路圖及圖5的動作圖所示,將比較電路11分為比較電路12與比較電路13,藉由比較電路12來判別Vn2-Vn1是大於抑或小於電壓Vth1,藉由比較電路13來判別Vn2-Vn1是大於抑或小於電壓Vth2。此處,圖5的(a)表示比較電路10的動作,圖5的(b)表示比較電路12的動作,圖5的(c)表示比較電路13的動作,圖5的(d)表示邏輯電路20的動作。In this description, the voltage Vth1 and the voltage Vth2 are described as the hysteresis voltage of the comparison circuit 11, but as shown in the circuit diagram of FIG. 4 and the operation diagram of FIG. 5, the comparison circuit 11 can be divided into a comparison circuit 12 and The comparison circuit 13 determines whether Vn2-Vn1 is greater than or less than the voltage Vth1 by the comparison circuit 12, and determines whether Vn2-Vn1 is greater than or less than the voltage Vth2 by the comparison circuit 13. Here, FIG. 5A shows the operation of the comparison circuit 10, FIG. 5B shows the operation of the comparison circuit 12, FIG. 5C shows the operation of the comparison circuit 13, and FIG. 5D shows the logic The operation of the circuit 20.

<第2實施形態> 圖6為第2實施形態的零交越檢測電路的電路圖。與圖1所示的第1實施形態的不同在於:去除了比較電路10與比較電路11,追加了比較電路14,且在比較電路14與邏輯電路20之間追加了鎖存電路30。所追加的要素如下所述般構成、連接。另外,由於所去除的要素,以下連接與第1實施形態不同。<Second Embodiment> Fig. 6 is a circuit diagram of a zero-crossing detection circuit according to a second embodiment. The difference from the first embodiment shown in FIG. 1 is that the comparison circuit 10 and the comparison circuit 11 are removed, the comparison circuit 14 is added, and the latch circuit 30 is added between the comparison circuit 14 and the logic circuit 20. The added elements are structured and connected as described below. In addition, due to the removed elements, the following connection is different from the first embodiment.

比較電路14具有兩個輸入端子、一個輸出端子以及一個控制端子HC。詳細而言,具有反相輸入端子、非反相輸入端子、輸出端子out4以及磁滯控制端子HC。比較電路14的反相輸入端子連接於輸入端子N1,比較電路14的非反相輸入端子連接於輸入端子N2。比較電路14的磁滯控制端子HC根據輸入至磁滯控制端子的控制訊號來調整比較電路14的磁滯電壓。磁滯控制端子HC的控制電路未圖示。比較電路14的輸出端子out4連接於鎖存電路30。鎖存電路30包括鎖存器LT1、鎖存器LT2、鎖存器LT3,輸出端子out4連接於鎖存器LT1、鎖存器LT2、鎖存器LT3的資料輸入端子D。鎖存器LT1、鎖存器LT2、鎖存器LT3的資料輸出端子Q分別為輸出端子out0、輸出端子out2、輸出端子out3,且與圖4所示的第1實施形態相同地連接於邏輯電路20。鎖存器LT1、鎖存器LT2、鎖存器LT3具備時脈端子C,分別根據時脈訊號CK1、時脈訊號CK2、時脈訊號CK3將輸入至資料輸入端子D的資料鎖存並輸出至資料輸出端子Q。時脈訊號CK1、時脈訊號CK2、時脈訊號CK3的控制電路未圖示。關於其他的連接及構成與第1實施形態相同。在以下的說明中,將輸出端子out4的電壓設為輸出電壓Vout4。The comparison circuit 14 has two input terminals, one output terminal, and one control terminal HC. Specifically, it 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 adjusts the hysteresis voltage of the comparison circuit 14 according to a control signal input to the hysteresis control terminal. The control circuit of the hysteresis control terminal HC is not shown. An output terminal out4 of the comparison circuit 14 is connected to the latch circuit 30. The latch circuit 30 includes a latch LT1, a latch LT2, and a latch LT3, and an output terminal out4 is connected to the data input terminal D of the latch LT1, the latch LT2, and the latch LT3. The data output terminals Q of the latches LT1, LT2, and LT3 are output terminals out0, output terminals out2, and output terminals out3, respectively, and are connected to the logic circuit in the same manner as the first embodiment shown in FIG. 20. The latches LT1, LT2, and LT3 are provided with a clock terminal C, and latch the data input to the data input terminal D according to the clock signal CK1, the clock signal CK2, and the clock signal CK3 and output to Data output terminal Q. The control circuits of the clock signal CK1, the clock signal CK2, and the clock signal CK3 are not shown. The 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.

繼而,對第2實施形態的零交越檢測電路的動作進行說明。 比較電路14以如下方式動作:根據輸入至磁滯控制端子HC的控制訊號,分時地進行第1實施形態的比較電路10與比較電路11的動作。即,若以電壓Vth1與電壓Vth2成為零的方式控制比較電路14,則比較電路14以與比較電路10相同的方式動作,若以電壓Vth1與電壓Vth2不成為零的方式進行控制,則比較電路14以與比較電路12或比較電路13相同的方式動作。關於進行此種動作的比較電路,因是公知技術,故省略說明。若在比較電路14以與比較電路10相同的方式受到控制的狀態下,根據時脈訊號CK1藉由鎖存器LT1來鎖存比較電路14的輸出電壓Vout4,則輸出電壓Vout0成為與圖5的(a)及圖3的(b)所示的Vout0相同的輸出電壓。若在比較電路14以與比較電路12、比較電路13相同的方式受到控制的狀態下,根據時脈訊號CK2、時脈訊號CK3藉由鎖存器LT2、鎖存器LT3來鎖存比較電路14的輸出電壓Vout4,則輸出電壓Vout1成為與圖5的(b)、圖5的(c)及圖3的(c)所示的Vout1相同的輸出電壓。邏輯電路20的動作與第1實施形態相同,輸出電壓Vout可進行零交越檢測,並且可消除由雜訊引起的零交越的影響。Next, an operation of the zero-crossing detection circuit according to the second embodiment will be described. The comparison circuit 14 operates in such a manner that the operations of the comparison circuit 10 and the comparison circuit 11 of the first embodiment are performed in a time-sharing manner in accordance with a control signal input to the hysteresis control terminal HC. That is, if the comparison circuit 14 is controlled so that the voltage Vth1 and the voltage Vth2 become zero, the comparison circuit 14 operates in the same manner as the comparison circuit 10, and if the control is performed so that the voltage Vth1 and the voltage Vth2 do not become zero, the comparison circuit 14 operates in the same manner as the comparison circuit 12 or the comparison circuit 13. The comparison circuit that performs such an operation is known in the art, and therefore description thereof is omitted. If the comparison circuit 14 is controlled in the same manner as the comparison circuit 10, the output voltage Vout0 of the comparison circuit 14 is latched by the latch LT1 according to the clock signal CK1, and the output voltage Vout0 becomes the same as that of FIG. (A) The same output voltage as Vout0 shown in FIG. 3 (b). When the comparison circuit 14 is controlled in the same manner as the comparison circuit 12 and the comparison circuit 13, the comparison circuit 14 is latched by the latch LT2 and the latch LT3 based on the clock signal CK2 and the clock signal CK3. The output voltage Vout4 is the same as the output voltage Vout1 shown in FIG. 5 (b), FIG. 5 (c), and FIG. 3 (c). The operation of the logic circuit 20 is the same as that of the first embodiment, and the output voltage Vout can perform zero-crossing detection, and the influence of the zero-crossing due to noise can be eliminated.

第2實施形態中,使比較電路14分時動作,因此相對於第1實施形態而動作速度變慢,但具有藉由減少比較電路的數量而電路規模變小的優點。In the second embodiment, since the comparison circuit 14 is operated in a time-division manner, the operation speed is slower than that in the first embodiment, but there is an advantage that the circuit scale is reduced by reducing the number of comparison circuits.

藉由以上內容對第2實施形態的零交越檢測電路的動作進行了說明,且與第1實施形態同樣地示出了以下情況:可進行零交越檢測並且可消除由雜訊引起的零交越的影響,能夠以簡便的電路構成獲得高精度的零交越檢測結果。The operation of the zero-crossing detection circuit according to the second embodiment has been described above, and similarly to the first embodiment, the following cases are shown: zero-crossing detection can be performed and zeros caused by noise can be eliminated. The influence of the crossover can obtain a high-accuracy zero-crossover detection result with a simple circuit configuration.

<第3實施形態> 圖7為第3實施形態的零交越檢測電路的電路圖。與圖6所示的第2實施形態的不同在於:去除了比較電路14而追加了比較電路15,且在輸入端子N2與比較電路15的非反相輸入端子之間追加了磁滯產生電路40。所追加的要素以如下方式構成、連接。另外,由於所去除的要素,以下連接與第2實施形態不同。<Third Embodiment> Fig. 7 is a circuit diagram of a zero-crossing detection circuit according to a third embodiment. The difference from the second embodiment shown in FIG. 6 is that the comparison circuit 14 is removed and the comparison circuit 15 is added, and a hysteresis generating circuit 40 is added between the input terminal N2 and the non-inverting input terminal of the comparison circuit 15. . The added elements are configured and connected as follows. In addition, due to the removed elements, the following connection is different from the second embodiment.

比較電路15具有兩個輸入端子與一個輸出端子,詳細而言,具有反相輸入端子、非反相輸入端子以及輸出端子out5。比較電路15的反相輸入端子連接於輸入端子N1,比較電路15的非反相輸入端子連接於磁滯產生電路40的輸出端子。在磁滯產生電路40的輸入端子連接有輸入端子N2。比較電路15的輸出端子out5連接於鎖存電路30。磁滯產生電路40具備磁滯控制端子HC,根據控制訊號來調整磁滯電壓。磁滯控制端子HC的控制電路未圖示。關於其他的連接及構成與第2實施形態相同。在以下的說明中,將比較電路15的非反相輸入端子與磁滯產生電路40的輸出端子的連接點設為N2’,將連接點N2’的電壓設為Vn2’,將輸出端子out5的電壓設為輸出電壓Vout5。The comparison circuit 15 includes two input terminals and one output terminal. Specifically, the comparison circuit 15 includes an inverting input terminal, a 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 the output terminal of the hysteresis generating circuit 40. An input terminal N2 is connected to an input terminal of the hysteresis generating circuit 40. An output terminal out5 of the comparison circuit 15 is connected to the latch circuit 30. The hysteresis generating circuit 40 includes a hysteresis control terminal HC, and adjusts a hysteresis voltage based on a control signal. The control circuit of the hysteresis control terminal HC is not shown. The other connections and configurations are the same as those of the second embodiment. In the following description, the connection point between the non-inverting input terminal of the comparison circuit 15 and the output terminal of the hysteresis generation circuit 40 is set to N2 ', the voltage at the connection point N2' is set to Vn2 ', and the output terminal out5 The voltage is set to the output voltage Vout5.

繼而,對第3實施形態的零交越檢測電路的動作進行說明。 比較電路15以與第1實施形態的比較電路10相同的方式動作。即,比較電路15以如下方式動作:當供給至非反相輸入端子的電壓高於供給至反相輸入端子的電壓時,自輸出端子out5輸出高位準,與此相反地,當供給至非反相輸入端子的電壓低於供給至反相輸入端子的電壓時,自輸出端子out5輸出低位準。磁滯產生電路40以如下方式動作:根據磁滯控制端子HC的控制狀態,在直接輸出輸入電壓、或者與為正值的電壓Vth1相加後輸出、或者與為負值的電壓Vth2相加後輸出之間進行切換。即,以磁滯產生電路40的輸出電壓成為Vn2’=Vn2、或Vn2’=Vn2+Vth1、或Vn2’=Vn2+Vth2中的任一者的方式受到控制。關於進行此種動作的磁滯產生電路,為公知技術,例如可藉由電阻及定電流源以及開關元件來實現。Next, an operation of the zero-crossing detection circuit according to the third embodiment will be described. The comparison circuit 15 operates in the same manner as the comparison circuit 10 of the first embodiment. That is, the comparison circuit 15 operates as follows: When the voltage supplied to the non-inverting input terminal is higher than the voltage supplied to the inverting input terminal, a high level is output from the output terminal out5, and in contrast, when it is supplied to the non-inverting input terminal, When the voltage of the phase input terminal is lower than the voltage supplied to the inverting input terminal, a low level is output from the output terminal out5. The hysteresis generating circuit 40 operates as follows: depending on the control state of the hysteresis control terminal HC, it outputs an input voltage directly, or adds it to a voltage Vth1 that is a positive value, and outputs it, or adds a voltage Vth2 that is a negative value Switch between outputs. That is, the output voltage of the hysteresis generation circuit 40 is controlled so that any of Vn2 '= Vn2, or Vn2' = Vn2 + Vth1, or Vn2 '= Vn2 + Vth2. The hysteresis generating circuit which performs such an operation is a well-known technique, for example, it can be implemented by a resistor, a constant current source, and a switching element.

在以磁滯產生電路40的輸出電壓成為Vn2’=Vn2的方式受到控制的狀態下,比較電路15對輸入至非反相輸入端子的電壓Vn2’=Vn2與輸入至反相輸入端子的電壓Vn1進行比較。因此,進行與第1實施形態的比較電路10相同的動作。若在該控制狀態下,根據時脈訊號CK1藉由鎖存器LT1來鎖存比較電路15的輸出電壓Vout5,則輸出電壓Vout0成為與圖5的(a)及圖3的(b)所示的Vout0相同的輸出電壓。In a state where the output voltage of the hysteresis generation circuit 40 is controlled such that Vn2 '= Vn2, the comparison circuit 15 applies a voltage Vn2' = Vn2 to the non-inverting input terminal and a voltage Vn1 to the inverting input terminal. Compare. Therefore, the same operation as that of the comparison circuit 10 of the first embodiment is performed. If the output voltage Vout5 of the comparison circuit 15 is latched by the latch LT1 according to the clock signal CK1 in this control state, the output voltage Vout0 becomes as shown in FIG. 5 (a) and FIG. 3 (b). Vout0 has the same output voltage.

另外,在以磁滯產生電路40的輸出電壓成為Vn2’=Vn2+Vth1的方式受到控制的狀態下,比較電路15對輸入至非反相輸入端子的電壓Vn2’=Vn2+Vth1與輸入至反相輸入端子的電壓Vn1進行比較,在以磁滯產生電路40的輸出電壓成為Vn2’=Vn2+Vth2的方式受到控制的狀態下,比較電路15對輸入至非反相輸入端子的電壓Vn2’=Vn2+Vth2與輸入至反相輸入端子的電壓Vn1進行比較。因此,進行與第1實施形態的比較電路12及比較電路13相同的動作。若在該控制狀態下,根據時脈訊號CK2、時脈訊號CK3藉由鎖存器LT2、鎖存器LT3來鎖存比較電路15的輸出電壓Vout5,則輸出電壓Vout1成為與圖5的(b)、圖5的(c)及圖3的(c)所示的Vout1相同的輸出電壓。邏輯電路20的動作與第1實施形態及第2實施形態相同,輸出電壓Vout可進行零交越檢測,並且可消除由雜訊引起的零交越的影響。In addition, in a state where the output voltage of the hysteresis generation circuit 40 is controlled such that Vn2 '= Vn2 + Vth1, the comparison circuit 15 responds to the voltage Vn2' = Vn2 + Vth1 input to the non-inverting input terminal and the input to inverse The voltage Vn1 of the phase input terminal is compared, and in a state where the output voltage of the hysteresis generating circuit 40 is controlled to Vn2 '= Vn2 + Vth2, the comparison circuit 15 pairs the voltage Vn2' = input to the non-inverting input terminal. Vn2 + Vth2 is compared with the voltage Vn1 input to the inverting input terminal. Therefore, operations similar to those of the comparison circuit 12 and the comparison circuit 13 of the first embodiment are performed. In this control state, if the output voltage Vout5 of the comparison circuit 15 is latched by the latch LT2 and the latch LT3 according to the clock signal CK2 and the clock signal CK3, the output voltage Vout1 becomes the same as that shown in FIG. 5 (b ), Vout1 shown in FIG. 5 (c) and FIG. 3 (c) have the same output voltage. The operation of the logic circuit 20 is the same as that of the first embodiment and the second embodiment. The output voltage Vout can perform zero-crossing detection, and the influence of the zero-crossing due to noise can be eliminated.

第3實施形態中,使遲滯產生電路40進行切換來動作,因此與第2實施形態同樣地,相對於第1實施形態而動作速度變慢,但具有藉由減少比較電路的數量而電路規模變小的優點。In the third embodiment, the hysteresis generating circuit 40 is switched to operate. Therefore, as in the second embodiment, the operation speed is slower than that in the first embodiment, but the circuit scale is reduced by reducing the number of comparison circuits. Small advantages.

藉由以上內容對第3實施形態的零交越檢測電路的動作進行了說明,且與第1實施形態及第2實施形態同樣地示出了以下情況:可進行零交越檢測並且可消除由雜訊引起的零交越的影響,能夠以簡便的電路構成獲得高精度的零交越檢測結果。The operation of the zero-crossing detection circuit according to the third embodiment has been described based on the above, and similarly to the first and second embodiments, the following cases are shown: zero-crossing detection can be performed and the cause can be eliminated. The effect of the zero-crossing caused by noise can obtain a high-accuracy zero-crossing detection result with a simple circuit configuration.

本說明中,為便於說明而設為在輸入端子N2側與電壓相加,但亦可在輸入端子N1側與電壓相加,另外,亦可在輸入端子N1與輸入端子N2兩者側與電壓相加。In this description, the voltage is added to the input terminal N2 side for the sake of explanation. However, the voltage may be added to the input terminal N1 side, and the voltage may be added to both the input terminal N1 and the input terminal N2 side. Add up.

另外,在第2實施形態及第3實施形態的說明中,作為保持比較電路的輸出電壓的電路而示出了鎖存電路,但只要為進行讀取資料的動作的構成,則未必限制為該構成。In the description of the second embodiment and the third embodiment, the latch circuit is shown as a circuit that holds the output voltage of the comparison circuit. However, as long as it is configured to perform an operation of reading data, it is not necessarily limited to this. Make up.

另外,第1實施形態、第2實施形態及第3實施形態的說明中,對根據輸出電壓Vout1的高位準或低位準的邏輯狀態來選擇是否將輸出電壓Vout0輸出至電壓Vout的動作進行了說明,但未必限定於此,亦可設為如根據輸出電壓Vout1的邏輯狀態以輸出Vout0的變化時序來控制輸出電壓Vout的動作。另外,亦可設為如下般的動作:在輸出電壓Vout1為高位準的情況下,向Vout僅輸出一次Vout0的自高位準向低位準的遷移,在輸出電壓Vout1為低位準的情況下,向Vout僅輸出一次Vout0的自低位準向高位準的遷移。另外,為便於說明,根據動作狀態而明確記載了各輸出電壓的高位準與低位準,但高位準與低位準可反轉,另外高位準與低位準的組合亦可不同。另外,在本說明中,將電壓Vth1與電壓Vth2作為比較電路的磁滯電壓進行了說明,但只要為進行本說明內所記載的比較電路的動作的構成,則未必限制為該構成。作為一例,亦可為並非在比較電路的內部具有磁滯電壓,而是將基準電壓供給至比較電路以調整輸出電壓Vout1的反相位準的構成。另外,關於電壓Vth1與電壓Vth2,作為如圖3的(a)所示般時間上不發生變化的一定的電壓進行了說明,但例如在雜訊的大小因電源電壓或溫度等周圍環境而改變的情況下,電壓Vth1或電壓Vth2亦可不為一定的電壓而可變地進行控制。另外,關於比較電路10的磁滯寬度,在未特別提及的情況下是以零為前提進行了說明,但在實際的電路中,因存在非理想成分,磁滯寬度未必為零,有時具有微小的值。在該情況下亦不會有損本發明的效果。另外,在真實電路中,為了消除由電源電壓的變動等引起的雜訊,可使比較電路10具有極小振幅的磁滯功能,或者亦可設置暫時性磁滯功能,或者亦可藉由對比較電路10的輸出進行多次採樣而設置數位形式的濾波器。另外,本說明中,為便於說明,作為輸入訊號而尤其著眼於電壓進行了說明,但顯而易見的是輸入訊號亦可為電流。In the description of the first embodiment, the second embodiment, and the third embodiment, the operation of selecting whether to output the output voltage Vout0 to the voltage Vout is described based on the logic state of the high level or the low level of the output voltage Vout1. However, it is not necessarily limited to this, and it may be set to control the operation of the output voltage Vout according to the change timing of the output Vout0 according to the logic state of the output voltage Vout1. In addition, it can also be set as follows: when the output voltage Vout1 is at a high level, the transition from Vout0 to the low level is output to Vout only once, and when the output voltage Vout1 is at a low level, Vout only outputs the transition from low level to high level of Vout0 only once. In addition, for convenience of explanation, the high level and the low level of each output voltage are clearly recorded according to the operating 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 different. In this description, the voltage Vth1 and the voltage Vth2 are described as the hysteresis voltage of the comparison circuit. However, the configuration is not necessarily limited to this configuration as long as it is a configuration that performs the operation of the comparison circuit described in this description. For example, a configuration in which the reference voltage is supplied to the comparison circuit instead of having a hysteresis voltage in the comparison circuit may be used to adjust the inverse phase of the output voltage Vout1. In addition, the voltage Vth1 and the voltage Vth2 have been described as constant voltages that do not change over time as shown in FIG. 3 (a). However, the magnitude of noise varies depending on the surrounding environment such as the power supply voltage and temperature. In the case of voltage, the voltage Vth1 or the voltage Vth2 may be variably controlled without being a constant voltage. In addition, the hysteresis width of the comparison circuit 10 has been described on the premise of zero unless specifically mentioned. However, in an actual circuit, the hysteresis width may not be zero due to the presence of non-ideal components. Has a tiny value. Even in this case, the effect of the present invention is not impaired. In addition, in a real circuit, in order to eliminate noise caused by fluctuations in the power supply voltage, the comparison circuit 10 may be provided with a hysteresis function with a very small amplitude, or a temporary hysteresis function may be provided, or the comparison may be performed by comparison. The output of the circuit 10 is sampled multiple times to provide a digital filter. In addition, in this description, for convenience of explanation, the input signal is described with particular attention to voltage, but it is obvious that the input signal may also be a current.

<本發明的零交越檢測電路的應用例> 圖8為將本發明的第1實施形態的零交越檢測電路應用於磁力感測裝置的第1應用例的電路圖。作為磁電轉換元件的霍耳(Hall)元件1a的訊號自端子Ba與端子Da輸入至差動放大器2a,差動放大器2a對其進行放大,且差動放大器2a的輸出連接至本發明的零交越檢測電路的輸入端子N1、輸入端子N2。此處,將端子Ba與端子Da的電壓分別設為VBa、VDa,將霍耳元件1a的訊號電壓設為VDa-VBa,將差動放大器2a的放大率設為G。<Application Example of Zero Crossing Detection Circuit of the Present Invention> FIG. 8 is a circuit diagram of 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 force sensing device. The signal of the Hall element 1a as a magnetoelectric conversion element is input from the terminal Ba and the terminal Da to the differential amplifier 2a, which is amplified by the differential amplifier 2a, and the output of the differential amplifier 2a is connected to the zero crossing of the present invention. Input terminal N1 and input terminal N2 of the detection circuit. Here, the voltages of the terminal Ba and the terminal Da are VBa and VDa, the signal voltage of the Hall element 1a is VDa-VBa, and the amplification factor of the differential amplifier 2a is G.

霍耳元件1a的訊號電壓VDa-VBa的大小與符號根據流至霍耳元件1a的電流的方向與所施加的磁場的方向且依據弗萊明左手定則(Fleming's left-hand rule)而變化。假設將在沿紙面的自近前向縱深的方向施加磁場的情況下的訊號電壓VDa-VBa的符號設為正,則在沿紙面的自縱深向近前的方向施加磁場的情況下,訊號電壓VDa-VBa的符號為負。另外,所施加的磁場越大,則訊號電壓VDa-VBa的大小越大。另外,在霍耳元件1a的偏置(offset)電壓為零的理想情況下,施加至霍耳元件1a的磁場為零的情況下的訊號電壓VDa-VBa為零。霍耳元件1a的訊號電壓藉由差動放大器2a而放大,成為 Vn2-Vn1=G×(VDa-VBa)・・・(1)。 因此,Vn2-Vn1根據施加至霍耳元件1a的磁場而取正值或負值或零。即,藉由本發明的第1實施形態的零交越檢測電路的動作,可不因雜訊而進行誤動作地以高精度檢測施加至霍耳元件1a的磁場的零交越點。換言之,在檢測搭載有本發明的第1實施形態的零交越檢測電路的感測裝置與磁鐵的相對的位置關係的用途中,可高精度地檢測因相對位置的變換而施加至感測裝置的磁場自S極切換為N極的點、或自N極切換為S極的點。因此,本發明的應用例適宜用於需要高精度地檢測轉子的旋轉位置的無刷馬達中或編碼器中。可應對對高速旋轉的要求,亦不會發生習知的於應對高速化時成為課題的由雜訊引起的誤輸出,而可實現準確的旋轉控制。The magnitude and sign of the signal voltage VDa-VBa of the Hall element 1a varies according to the direction of the current flowing to the Hall element 1a and the direction of the applied magnetic field, and according to Fleming's left-hand rule. Assuming that the sign of the signal voltage VDa-VBa when a magnetic field is applied in the direction from the front to the depth in the paper is positive, the signal voltage VDa- is applied when a magnetic field is applied in the direction from the depth to the front of the paper. VBa has a negative sign. In addition, the larger the applied magnetic field, the larger the magnitude of the signal voltage VDa-VBa. In addition, in the ideal case where the offset voltage of the Hall element 1a is zero, the signal voltage VDa-VBa when the magnetic field applied to the Hall element 1a is zero is zero. The signal voltage of the Hall element 1a is amplified by the differential amplifier 2a, and becomes Vn2-Vn1 = G × (VDa-VBa) (1). Therefore, Vn2-Vn1 takes a positive value or a negative value or zero depending on the magnetic field applied to the Hall element 1a. That is, with 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 1a can be detected with high accuracy without malfunction due to noise. In other words, in an application for detecting a relative positional relationship between a sensing device and a magnet equipped with a zero-crossing detection circuit according to the first embodiment of the present invention, it is possible to accurately detect a change in the relative position and apply it to the sensing device. The point at which the magnetic field is switched from the S pole to the N pole, or from the N pole to the S pole. Therefore, the application example of the present invention is suitably used in a brushless motor or an encoder that needs to detect the rotation position of the rotor with high accuracy. It can respond to the requirements for high-speed rotation, and it does not occur the erroneous output caused by noise, which is a problem that is conventionally encountered in response to high-speed operation, and accurate rotation control can be realized.

圖9為將本發明的第1實施形態的零交越檢測電路應用於磁力感測裝置的第2應用例的電路圖。霍耳元件1b與差動放大電路2b的連接的構成與第1應用例的霍耳元件1a與差動放大電路2a的連接的構成相同。另外,霍耳元件1c與差動放大電路2c的連接的構成亦與第1應用例的霍耳元件1a與差動放大電路2a的連接的構成相同。相對於差動放大電路2a為差動輸出,差動放大電路2b及差動放大電路2c是單端輸出。作為磁電轉換元件的霍耳元件1b的訊號自端子Bb與端子Db輸入至差動放大器2b,差動放大器2b對其進行放大,且差動放大器2b的輸出連接至本發明的零交越檢測電路的輸入端子N1。另外,作為磁電轉換元件的霍耳元件1c的訊號自端子Bc與端子Dc輸入至差動放大器2c,差動放大器2c對其進行放大,且差動放大器2c的輸出連接至本發明的零交越檢測電路的輸入端子N2。此處,將端子Bb、端子Db、端子Bc、端子Dc的各電壓分別設為VBb、VDb、VBc、VDc,將霍耳元件1b及霍耳元件1c的訊號電壓分別設為VDb-VBb、VDc-VBc,將差動放大器2b及差動放大器2c的放大率均設為G。如此,供給至輸入端子N1的輸入電壓Vn1與供給至輸入端子N2的輸入電壓Vn2如下。9 is a circuit diagram of a second application example in which the zero-crossing detection circuit according to the first embodiment of the present invention is applied to a magnetic force sensing device. The configuration of the connection of the Hall element 1b and the differential amplifier circuit 2b is the same as the configuration of the connection of the Hall element 1a and the differential amplifier circuit 2a of the first application example. The configuration of the connection of the Hall element 1c and the differential amplifier circuit 2c is also the same as the configuration of the connection of the Hall element 1a and the differential amplifier circuit 2a of the first application example. In contrast to the differential amplifier circuit 2a, which is a differential output, the differential amplifier circuit 2b and the differential amplifier circuit 2c are single-ended outputs. The signal of the Hall element 1b as a magnetoelectric conversion element is input from the terminal Bb and the terminal Db to the differential amplifier 2b, which is amplified by the differential amplifier 2b, and the output of the differential amplifier 2b is connected to the zero-crossing detection circuit of the present invention. Input terminal N1. In addition, the signal of the Hall element 1c as a magnetoelectric conversion element is input from the terminal Bc and the terminal Dc to the differential amplifier 2c, the differential amplifier 2c amplifies it, and the output of the differential amplifier 2c is connected to the zero-crossing of the present invention. Input terminal N2 of the detection circuit. Here, the voltages of the terminals Bb, Db, Bc, and Dc are VBb, VDb, VBc, and VDc, and the signal voltages of the Hall element 1b and Hall element 1c are VDb-VBb and VDc, respectively. -VBc, where the amplification factor of both the differential amplifier 2b and the differential amplifier 2c is G. In this way, the input voltage Vn1 supplied to the input terminal N1 and the input voltage Vn2 supplied to the input terminal N2 are as follows.

Vn1=G×(VDb-VBb)・・・(2) Vn2=G×(VDc-VBc)・・・(3) 根據式(2)與式(3)而獲得下式。Vn1 = G × (VDb-VBb) (2) Vn2 = G × (VDc-VBc) ... (3) The following formula is obtained from the formulas (2) and (3).

Vn2-Vn1=G×{(VDc-VBc)-(VDb-VBb)}・・・(4) 因此,Vn2-Vn1根據施加至霍耳元件1b與霍耳元件1c的磁場而取正值或負值或零。即,藉由本發明的第1實施形態的零交越檢測電路的動作,可不因雜訊而進行誤動作地以高精度檢測施加至霍耳元件1b與霍耳元件1c的磁場的差的零交越點。即,可在兩個感測元件的訊號相等的情況下輸出零交越檢測,且可辨別出兩個感測元件中的哪一者的訊號大並加以輸出。本應用例適宜用於例如在產生偏磁場的磁鐵與包含鐵等金屬或磁體的齒輪之間配置磁力感測裝置、並藉由磁力感測裝置檢測齒輪的旋轉的用途中。Vn2-Vn1 = G × {(VDc-VBc)-(VDb-VBb)} ... (4) Therefore, Vn2-Vn1 takes a positive or negative value depending on the magnetic field applied to Hall element 1b and Hall element 1c. Value or zero. That is, by operating the zero-crossing detection circuit according to the first embodiment of the present invention, it is possible to detect the zero-crossing of the difference between the magnetic fields applied to the Hall elements 1b and 1c with high accuracy without malfunction due to noise. point. That is, the zero-crossing detection can be output when the signals of the two sensing elements are equal, and it can be discerned which signal of the two sensing elements is large and output. This application example is suitably used in applications where a magnetic force sensing device is arranged between a magnet generating a bias magnetic field and a gear including a metal such as iron or a magnet, and the rotation of the gear is detected by the magnetic force sensing device.

本說明中,為便於說明,將差動放大電路2b及差動放大電路2c設為單端輸出,但亦可為了實現耐雜訊性的提高而設為差動輸出。另外,對霍耳元件為兩個的情況進行了說明,但亦可多於兩個。例如,亦可設為生成兩個霍耳元件的差分訊號1以及與該差分訊號1不同的兩個霍耳元件的差分訊號2,並對差分訊號1與差分訊號2的零交越進行檢測。In this description, for convenience of explanation, the differential amplifier circuit 2b and the differential amplifier circuit 2c are set as single-ended outputs, but may be set as differential outputs in order to improve noise resistance. In addition, the case where there are two Hall elements has been described, but more than two may be used. For example, it may be set to generate a differential signal 1 of two Hall elements and a differential signal 2 of two Hall elements different from the differential signal 1 and detect the zero crossing of the differential signal 1 and the differential signal 2.

圖10為將本發明的第2實施形態的零交越檢測電路應用於磁力感測裝置的第3應用例的電路圖。霍耳元件1a與差動放大電路2a的連接的構成與第1應用例的霍耳元件1a與差動放大電路2a的連接的構成相同。作為磁電轉換元件的霍耳元件1a的訊號自端子Ba與端子Da輸入至差動放大器2a,差動放大器2a對其進行放大,且差動放大器2a的輸出連接至本發明的零交越檢測電路的輸入端子N1、輸入端子N2。與第1應用例的情況同樣地,Vn2-Vn1根據施加至霍耳元件1a的磁場而取正值或負值或零。即,藉由本發明的第2實施形態的零交越檢測電路的動作,可不因雜訊而進行誤動作地以高精度檢測施加至霍耳元件1a的磁場的零交越點。10 is a circuit diagram of a third application example in which a zero-crossing detection circuit according to a second embodiment of the present invention is applied to a magnetic force sensing device. The configuration of the connection of the Hall element 1a and the differential amplifier circuit 2a is the same as the configuration of the connection of the Hall element 1a and the differential amplifier circuit 2a of the first application example. The signal of the Hall element 1a as a magnetoelectric conversion element is input from the terminal Ba and the terminal Da to the differential amplifier 2a, which is amplified by the differential amplifier 2a, and the output of the differential amplifier 2a is connected to the zero-crossing detection circuit of the invention Input terminal N1, input terminal N2. As in 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 1a. That is, by operating 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 1a can be detected with high accuracy without malfunction due to noise.

圖11為將本發明的第3實施形態的零交越檢測電路應用於磁力感測裝置的第4應用例的電路圖。與圖10的第3應用例的不同在於代替第2實施形態而應用第3實施形態,具體而言為:去除了比較電路14而追加了比較電路15,且在輸入端子N2與比較電路15的非反相輸入端子之間追加了磁滯產生電路40。省略了磁滯產生電路40的磁滯控制端子HC。關於其他的連接及構成,與第3應用例相同。11 is a circuit diagram of a fourth application example in which a zero-crossing detection circuit according to a third embodiment of the present invention is applied to a magnetic force sensing device. The difference from the third application example in FIG. 10 is that the third embodiment is applied instead of the second embodiment. Specifically, the comparison circuit 14 is removed and the comparison circuit 15 is added, and the input terminal N2 and the comparison circuit 15 are A hysteresis generating circuit 40 is added between the non-inverting input terminals. The hysteresis control terminal HC of the hysteresis generation circuit 40 is omitted. Other connections and configurations are the same as those in the third application example.

作為磁電轉換元件的霍耳元件1a的訊號自端子Ba與端子Da輸入至差動放大器2a,差動放大器2a對其進行放大,且差動放大器2a的輸出連接至本發明的零交越檢測電路的輸入端子N1、輸入端子N2。與第1應用例及第2應用例的情況同樣地,Vn2-Vn1根據施加至霍耳元件1a的磁場而取正值或負值或零。即,藉由本發明的第3實施形態的零交越檢測電路的動作,可不因雜訊而進行誤動作地以高精度檢測施加至霍耳元件1a的磁場的零交越點。The signal of the Hall element 1a as a magnetoelectric conversion element is input from the terminal Ba and the terminal Da to the differential amplifier 2a, which is amplified by the differential amplifier 2a, and the output of the differential amplifier 2a is connected to the zero-crossing detection circuit of the present invention. Input terminal N1, input terminal N2. As in the case of the first application example and the second application example, Vn2-Vn1 takes a positive value, a negative value, or zero depending on the magnetic field applied to the Hall element 1a. That is, with 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 1a can be detected with high accuracy without malfunction due to noise.

本說明中,為便於說明而將磁滯產生電路40連接於差動放大器2a與比較電路15之間,但亦可將磁滯產生電路40連接於更靠近訊號源之側。具體而言,可將磁滯產生電路40連接於霍耳元件1a與差動放大器2a之間。通常霍耳元件具有電阻成分,因此磁滯產生電路40中不需要電阻。因此,作為一例,磁滯產生電路40可僅包括定電流源與開關元件,從而具有有助於小型化、且藉由使定電流的值與霍耳元件的電阻值連動而可減小溫度所引起的特性偏移等優點。In this description, the hysteresis generating circuit 40 is connected between the differential amplifier 2a and the comparison circuit 15 for convenience of explanation, but the hysteresis generating circuit 40 may be connected to a side closer to the signal source. Specifically, the hysteresis generating circuit 40 may be connected between the Hall element 1a and the differential amplifier 2a. Since the Hall element generally has a resistance component, no resistance is required in the hysteresis generating circuit 40. Therefore, as an example, the hysteresis generating circuit 40 may include only a constant current source and a switching element, thereby contributing to miniaturization and reducing the temperature by linking the value of the constant current to the resistance value of the Hall element. Induced characteristic shift and other advantages.

圖8~圖11中示出了將本發明的零交越檢測電路應用於磁力感測裝置的例子。於本說明中,為了進行說明而示出了具體的例子,但未必限制為該構成或感測元件,可應用於廣泛的半導體電路及感測電路中。關於第1實施形態、第2實施形態、第3實施形態的零交越檢測電路的情況,亦同樣如此。作為一例,可與消去作為磁電轉換元件的霍耳元件的非理想成分即偏置電壓的旋轉電流(spinning current)電路組合,另外,亦可與消去差動放大器或比較電路的非理想成分即偏置電壓的截波(chopping)動作或自動歸零(auto zero)動作的電路等組合。此處,在與旋轉電流電路或者截波動作或自動歸零動作的電路等組合的情況下,成為離散時間的訊號處理而非連續時間的訊號處理,因此,將比較電路10~比較電路15的各自的輸出藉由組合電路進行演算而自輸出端子out輸出的情況欠佳。如第2實施形態或第3實施形態所示,適宜與鎖存電路等順序電路組合。另外,除磁電轉換元件以外,亦可作為溫度感測元件、加速度感測元件、壓力感測元件等感測元件的零交越檢測電路。An example in which the zero-crossing detection circuit of the present invention is applied to a magnetic force sensing device is shown in FIGS. 8 to 11. In this description, specific examples are shown for the sake of explanation, but the configuration or the sensing element is not necessarily limited, and can be applied to a wide range of semiconductor circuits and sensing circuits. The same applies to the case of the zero-crossing detection circuit of the first embodiment, the second embodiment, and the third embodiment. As an example, it can be combined with a spinning current circuit that eliminates the non-ideal component of the Hall element as a magnetoelectric conversion element, that is, a bias current, and can also be combined with a non-ideal component that eliminates the non-ideal component of the differential amplifier or the comparison circuit. A circuit such as a chopping operation for setting a voltage or a circuit for an auto zero operation. Here, when it is combined with a rotating current circuit or a circuit of a chopping operation or an auto-zero operation, the signal processing is discrete time rather than continuous time. Therefore, the comparison circuits 10 to 15 The respective outputs are output from the output terminal out by calculation of the combination circuit. As shown in the second embodiment or the third embodiment, it is suitable to be combined with a sequential circuit such as a latch circuit. In addition, in addition to a magnetoelectric conversion element, it can also be used as a zero-crossing detection circuit of a sensing element such as a temperature sensing element, an acceleration sensing element, and a pressure sensing element.

1a、1b、1c‧‧‧霍耳元件
2a、2b、2c‧‧‧差動放大電路/差動放大器
10、11、12、13、14、15‧‧‧比較電路
20‧‧‧邏輯電路
30‧‧‧鎖存電路
40‧‧‧磁滯產生電路
50‧‧‧運算放大器
51‧‧‧比較訊號形成電路
Ba、Da、Bb、Db、Bc、Dc‧‧‧端子
C‧‧‧電壓
C‧‧‧時脈端子
Ca‧‧‧電容/電容器
CK1、CK2、CK3‧‧‧時脈訊號
D‧‧‧資料輸入端子
fa‧‧‧零交越檢測訊號
h‧‧‧比較訊號
HC‧‧‧控制端子/磁滯控制端子
Hi‧‧‧高位準
Lo‧‧‧低位準
LT1、LT2、LT3‧‧‧鎖存器
ns‧‧‧雜訊
N1、N2‧‧‧輸入端子
N2’‧‧‧連接點
out、out0、out1、out2、out3、out4、out5‧‧‧輸出端子
Q‧‧‧資料輸出端子
R10、R11‧‧‧電阻
S‧‧‧被檢測訊號
t‧‧‧時間經過
t1、t2、t3‧‧‧時刻
Vn1、Vn2‧‧‧輸入電壓
Vn2-Vn1‧‧‧輸入電壓差
Vout‧‧‧輸出電壓/電壓
Vout0、Vout1、Vout4、Vout5‧‧‧輸出電壓
Vth1、Vth2、Vn2’‧‧‧電壓
1a, 1b, 1c‧‧‧Hall element
2a, 2b, 2c‧‧‧ Differential amplifier circuit / differential amplifier
10, 11, 12, 13, 14, 15‧‧‧ comparison circuits
20‧‧‧Logic Circuit
30‧‧‧ latch circuit
40‧‧‧hysteresis generating circuit
50‧‧‧ Operational Amplifier
51‧‧‧Comparative signal forming circuit
Ba, Da, Bb, Db, Bc, Dc‧‧‧ terminals
C‧‧‧Voltage
C‧‧‧Clock terminal
Ca‧‧‧Capacitor / Capacitor
CK1, CK2, CK3‧‧‧ clock signal
D‧‧‧Data input terminal
fa‧‧‧zero crossing detection signal
h‧‧‧ comparative signal
HC‧‧‧Control terminal / hysteresis control terminal
Hi‧‧‧High level
Lo‧‧‧ Low level
LT1, LT2, LT3 ‧‧‧ latches
ns‧‧‧noise
N1, N2‧‧‧ input terminals
N2'‧‧‧ connection point
out, out0, out1, out2, out3, out4, out5‧‧‧ output terminals
Q‧‧‧Data output terminal
R10, R11‧‧‧ resistance
S‧‧‧detected signal
t‧‧‧ time passed
t1, t2, t3‧‧‧time
Vn1, Vn2‧‧‧ input voltage
Vn2-Vn1‧‧‧Input voltage difference
Vout‧‧‧Output voltage / voltage
Vout0, Vout1, Vout4, Vout5‧‧‧ output voltage
Vth1, Vth2, Vn2'‧‧‧ voltage

圖1為第1實施形態的零交越檢測電路的電路圖。 圖2為表示第1實施形態的零交越檢測電路的各要素的動作的圖。 圖3為表示第1實施形態的零交越檢測電路的動作的圖。 圖4為第1實施形態的零交越檢測電路的另一例的圖。 圖5為表示第1實施形態的零交越檢測電路的另一例的各要素的動作的圖。 圖6為第2實施形態的零交越檢測電路的電路圖。 圖7為第3實施形態的零交越檢測電路的電路圖。 圖8為將第1實施形態的零交越檢測電路應用於磁力感測裝置的第1應用例的電路圖。 圖9為將第1實施形態的零交越檢測電路應用於磁力感測裝置的第2應用例的電路圖。 圖10為將第2實施形態的零交越檢測電路應用於磁力感測裝置的第3應用例的電路圖。 圖11為將第3實施形態的零交越檢測電路應用於磁力感測裝置的第4應用例的電路圖。 圖12為習知的零交越檢測電路的電路圖。 圖13為表示習知的零交越檢測電路的動作的圖。FIG. 1 is a circuit diagram of a zero-crossing detection circuit according to the first embodiment. FIG. 2 is a diagram showing operations of each element of the zero-crossing detection circuit according to the first embodiment. FIG. 3 is a diagram showing the operation of the zero-crossing detection circuit according to the first embodiment. Fig. 4 is a diagram showing another example of a zero-crossing detection circuit according to the first embodiment. FIG. 5 is a diagram showing the operation of each element in another example of the zero-crossing detection circuit according to the first embodiment. Fig. 6 is a circuit diagram of a zero-crossing detection circuit according to a second embodiment. Fig. 7 is a circuit diagram of a zero-crossing detection circuit according to a third embodiment. 8 is a circuit diagram of a first application example in which the zero-crossing detection circuit of the first embodiment is applied to a magnetic force sensing device. 9 is a circuit diagram of a second application example in which the zero-crossing detection circuit of the first embodiment is applied to a magnetic force sensing device. 10 is a circuit diagram of a third application example in which the zero-crossing detection circuit of the second embodiment is applied to a magnetic force sensing device. 11 is a circuit diagram of a fourth application example in which the zero-crossing detection circuit of the third embodiment is applied to a magnetic force sensing device. FIG. 12 is a circuit diagram of a conventional zero-crossing detection circuit. FIG. 13 is a diagram showing the operation of a conventional zero-crossing detection circuit.

10、11‧‧‧比較電路 10, 11‧‧‧ comparison circuit

20‧‧‧邏輯電路 20‧‧‧Logic Circuit

N1、N2‧‧‧輸入端子 N1, N2‧‧‧ input terminals

out、out0、out1‧‧‧輸出端子 out, out0, out1‧‧‧ output terminals

Claims (10)

一種零交越檢測電路,其特徵在於包括: 第一比較電路,輸入有第一輸入訊號與第二輸入訊號; 第二比較電路,輸入有所述第一輸入訊號與所述第二輸入訊號,且具有磁滯功能;以及 邏輯電路, 所述第一比較電路輸出所述第一輸入訊號與所述第二輸入訊號的第一比較結果, 所述第二比較電路輸出所述第一輸入訊號與所述第二輸入訊號的第二比較結果, 所述邏輯電路基於所述第二比較結果而決定是否將所述第一比較結果反映至輸出中。A zero-crossing detection circuit, comprising: a first comparison circuit that receives a first input signal and a second input signal; a second comparison circuit that receives the first input signal and the second input signal, And has a hysteresis function; and a logic circuit, the first comparison circuit outputs a first comparison result of the first input signal and the second input signal, and the second comparison circuit outputs the first input signal and Based on the second comparison result of the second input signal, the logic circuit determines whether to reflect the first comparison result to the output based on the second comparison result. 如申請專利範圍第1項所述的零交越檢測電路,其中 於所述第二比較結果為第一位準且所述邏輯電路的輸出為第一輸出位準即第一條件時,藉由所述第一比較結果自所述第一位準向第二位準的遷移,所述邏輯電路的輸出向第二輸出位準遷移, 於所述第二比較結果為所述第二位準且所述邏輯電路的輸出為所述第二輸出位準即第二條件時,藉由所述第一比較結果自所述第二位準向所述第一位準的遷移,所述邏輯電路的輸出向所述第一輸出位準遷移, 於所述第一條件及所述第二條件以外,所述邏輯電路的輸出不發生變化。The zero-crossing detection circuit according to item 1 of the scope of patent application, wherein when the second comparison result is the first level and the output of the logic circuit is the first output level, that is, the first condition, The first comparison result shifts from the first level to the second level, and the output of the logic circuit shifts to the second output level, and the second comparison result is the second level and When the output of the logic circuit is the second output level, that is, the second condition, the transition of the first comparison result from the second level to the first level is performed by the first comparison result. The output transitions to the first output level, and the output of the logic circuit does not change except for the first condition and the second condition. 如申請專利範圍第1項所述的零交越檢測電路,其中所述第一比較電路所具有的磁滯寬度小於所述第二比較電路所具備的所述磁滯功能所具有的磁滯寬度。The zero-crossing detection circuit according to item 1 of the scope of patent application, wherein the hysteresis width of the first comparison circuit is smaller than that of the hysteresis function of the second comparison circuit. . 如申請專利範圍第1項至第3項中任一項所述的零交越檢測電路,其中所述第一比較電路與所述第二比較電路包括相同的比較電路, 所述零交越檢測電路具備對所述第一比較電路與所述第二比較電路的動作狀態進行切換的單元。The zero-crossing detection circuit according to any one of claims 1 to 3, wherein the first comparison circuit and the second comparison circuit include the same comparison circuit, and the zero-crossing detection The circuit includes means for switching the operating states of the first comparison circuit and the second comparison circuit. 如申請專利範圍第1項至第3項中任一項所述的零交越檢測電路,其中所述第一比較電路與所述第二比較電路包括相同的比較電路, 所述零交越檢測電路具備對所述第一輸入訊號與所述第二輸入訊號的其中一者或兩者的訊號所相加的電壓進行切換的電壓相加單元。The zero-crossing detection circuit according to any one of claims 1 to 3, wherein the first comparison circuit and the second comparison circuit include the same comparison circuit, and the zero-crossing detection The circuit includes a voltage adding unit that switches a voltage added to one or both of the first input signal and the second input signal. 一種零交越檢測電路,其特徵在於包括: 第一比較結果訊號,示出第一輸入訊號與第二輸入訊號的大小; 第二比較結果訊號,示出所述第一輸入訊號與所述第二輸入訊號的差是大於抑或小於規定值, 所述零交越檢測電路基於所述第二比較結果訊號而將基於所述第一比較結果訊號的訊號輸出至輸出訊號。A zero-crossing detection circuit includes: a first comparison result signal showing the magnitude of a first input signal and a second input signal; a second comparison result signal showing the first input signal and the first input signal The difference between the two input signals is greater than or less than a prescribed value, and the zero-crossing detection circuit outputs a signal based on the first comparison result signal to an output signal based on the second comparison result signal. 如申請專利範圍第1項至第3項以及第6項中任一項所述的零交越檢測電路,其中所述第一輸入訊號及所述第二輸入訊號為電壓。According to the zero-crossing detection circuit according to any one of claims 1 to 3 and 6, the first input signal and the second input signal are voltages. 如申請專利範圍第1項至第3項以及第6項中任一項所述的零交越檢測電路,其中所述第一輸入訊號及所述第二輸入訊號為電流。The zero-crossing detection circuit according to any one of claims 1 to 3 and 6, wherein the first input signal and the second input signal are currents. 一種感測裝置,其特徵在於包括: 感測元件,根據所施加的物理量的強度來輸出訊號,以及 如申請專利範圍第1項至第6項所述的零交越檢測電路,進行所述感測元件所輸出的訊號的零交越檢測。A sensing device, comprising: a sensing element that outputs a signal according to an intensity of an applied physical quantity; and a zero-crossing detection circuit as described in items 1 to 6 of the scope of patent application for performing the sensing Zero-crossing detection of the signal output from the test element. 如申請專利範圍第9項所述的感測裝置,其中 所述第一輸入訊號為第一感測元件的輸出訊號,所述第二輸入訊號為第二感測元件的輸出訊號。The sensing device according to item 9 of the scope of patent application, wherein the first input signal is an output signal of a first sensing element, and the second input signal is an output signal of a second sensing element.
TW106116060A 2016-05-20 2017-05-16 Zero-crossing detection circuit and sensing device TWI670472B (en)

Applications Claiming Priority (4)

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

Publications (2)

Publication Number Publication Date
TW201805600A true TW201805600A (en) 2018-02-16
TWI670472B TWI670472B (en) 2019-09-01

Family

ID=60476735

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106116060A TWI670472B (en) 2016-05-20 2017-05-16 Zero-crossing detection circuit and sensing device

Country Status (3)

Country Link
JP (2) JP6581615B2 (en)
KR (1) KR102104776B1 (en)
TW (1) TWI670472B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110398622A (en) * 2018-04-24 2019-11-01 艾普凌科有限公司 Zero cross detection circuit and sensor device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11733275B2 (en) 2017-07-31 2023-08-22 Rohm Co., Ltd. Zero-crossing detection circuit
CN114660351A (en) 2017-07-31 2022-06-24 罗姆股份有限公司 Zero-crossing detection circuit
JP7080098B2 (en) 2018-04-24 2022-06-03 エイブリック株式会社 Zero cross detection circuit and sensor device
CN116973816B (en) * 2023-09-21 2023-12-08 昂赛微电子(上海)有限公司 Magnetic field zero-crossing detection control circuit and method and Hall magneto-dependent trigger chip

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0692987B2 (en) * 1986-01-04 1994-11-16 富士通テン株式会社 Period measuring instrument
JP2585231B2 (en) 1986-09-19 1997-02-26 株式会社東芝 Zero cross detection circuit
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
JP3134846B2 (en) * 1998-07-07 2001-02-13 日本電気株式会社 Hysteresis comparator circuit
US6326816B1 (en) * 1999-12-09 2001-12-04 Via Technologies, Inc. Method and apparatus for minimal phase delay and zero-crossing filtering
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
US7535265B2 (en) * 2004-10-20 2009-05-19 Semiconductor Components Industries, L.L.C. High accuracy zero crossing detector and method therefor
TWI323077B (en) * 2006-09-26 2010-04-01 Holtek Semiconductor Inc Driving apparatus for single phase motors and driving method thereof
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
US9264028B2 (en) * 2012-12-20 2016-02-16 Marvell World Trade Ltd. Zero crossing detector using current mode approach

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110398622A (en) * 2018-04-24 2019-11-01 艾普凌科有限公司 Zero cross detection circuit and sensor device
CN110398622B (en) * 2018-04-24 2023-06-30 艾普凌科有限公司 Zero-crossing detection circuit and sensor device

Also Published As

Publication number Publication date
JP2019200217A (en) 2019-11-21
KR102104776B1 (en) 2020-04-27
JP2017211365A (en) 2017-11-30
KR20170131254A (en) 2017-11-29
JP6899877B2 (en) 2021-07-07
JP6581615B2 (en) 2019-09-25
TWI670472B (en) 2019-09-01

Similar Documents

Publication Publication Date Title
JP6899877B2 (en) Zero cross detection circuit and sensor device
CN107402322B (en) Zero-crossing detection circuit and sensor device
US20100308815A1 (en) Magnetic sensor device
US8866474B2 (en) Magnetic sensor device
US9261569B2 (en) Sensor device
US9128127B2 (en) Sensor device
EP2093583B1 (en) Magnetic sensor circuit
WO2011021521A1 (en) Magnetic sensor device and electronic equipment using same
JP5116751B2 (en) Magnetic detector
US20150276891A1 (en) Sensor device
CN114279470A (en) Latching Hall sensor and electronic device
JP2005156368A (en) Rotation detection device
JP5729254B2 (en) Hysteresis device
TWI802680B (en) Zero-cross detection circuit and sensing device
US7157904B1 (en) Magnetic detection apparatus
US10006970B2 (en) Electronic comparison circuit to identify at least three conditions of an input signal
JP2005257642A (en) Magnetic detection circuit and encoder
JP4290739B2 (en) Magnetic detector
CN114551715A (en) Signal processing circuit, signal processing method thereof and Hall sensing circuit
JP2024514390A (en) Electrical offset correction in magnetoresistive bridges.