CN117233445A - Sine wave phase detection circuit and working method - Google Patents

Sine wave phase detection circuit and working method Download PDF

Info

Publication number
CN117233445A
CN117233445A CN202311059016.5A CN202311059016A CN117233445A CN 117233445 A CN117233445 A CN 117233445A CN 202311059016 A CN202311059016 A CN 202311059016A CN 117233445 A CN117233445 A CN 117233445A
Authority
CN
China
Prior art keywords
phase
sine wave
input
counting module
circuit
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.)
Pending
Application number
CN202311059016.5A
Other languages
Chinese (zh)
Inventor
屈盼让
赵君
闫稳
呼明亮
朱耀国
张倩倩
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.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
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 Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN202311059016.5A priority Critical patent/CN117233445A/en
Publication of CN117233445A publication Critical patent/CN117233445A/en
Pending legal-status Critical Current

Links

Abstract

The sine wave phase detection circuit provided by the invention consists of a blocking filter, zero-crossing hysteresis comparison, level conversion and phase counting module, wherein the phase counting module is realized based on a programmable logic device. The sine wave input signal is input to the zero-crossing hysteresis comparison circuit after passing through the DC blocking filter capacitor, a square wave signal with the same phase as the input sine wave is generated, the square wave signal is input to the phase counting module after passing through the level conversion module, the phase counting module determines a 0-degree phase point of the input sine wave signal by detecting the rising edge of the square wave signal, and specific phase indication is output by taking the 0-degree phase point as a reference. The circuit has simple structure and higher universalization level, and can be widely applied to the industrial field.

Description

Sine wave phase detection circuit and working method
Technical Field
The invention belongs to the technical field of electronic circuits, and particularly relates to a sine wave phase detection circuit and a working method thereof.
Background
The sine wave signal is used as typical measurement excitation in the industrial field, the accurate measurement of the sine wave signal has important significance for improving the measurement precision and the system reliability, the phase is used as an important parameter of the sine wave, the effective detection of the sine wave signal can simplify hardware topology and software design, and the cost is reduced, for example, in the existing sine wave crest value sampling circuit, the phase is unknown and is often in the form of a full-wave rectifying circuit, the circuit structure is complex, and the effective detection efficiency of the sine wave phase is lower.
In view of this, the present invention has been made.
Disclosure of Invention
The invention aims to provide a sine wave phase detection circuit and a working method thereof, which realize effective detection of sine wave phase, improve detection instantaneity, simplify hardware topology and software design of a sine wave peak value sampling circuit and reduce cost. The technical scheme of the scheme has a plurality of technical advantages, and the following description is provided:
the utility model provides a sine wave phase detection circuit, including blocking filter capacitance, level conversion circuit and phase counting circuit and constitute, still include zero passage hysteresis comparator circuit, wherein:
the output of the blocking filter capacitor is connected with the input of the zero-crossing hysteresis comparator, the output of the zero-crossing hysteresis comparator is connected with the input of the level conversion circuit, and the output of the level conversion circuit is connected with the input of the phase counting circuit;
the sine wave input signal is input to the zero-crossing hysteresis comparator through the DC blocking filter capacitor, the sine wave input signal generates a square wave signal with the same phase as the sine wave input signal, and the square wave signal with the same phase is input to the phase counting module after passing through the level conversion circuit.
Compared with the prior art, the technical scheme provided by the invention has the following beneficial effects:
the sine wave input signal is input to the zero-crossing hysteresis comparison circuit after passing through the DC blocking filter capacitor, a square wave signal with the same phase as the input sine wave is generated, the square wave signal is input to the phase counting module after passing through the level conversion module, the phase counting module determines a 0-degree phase point of the input sine wave signal by detecting the rising edge of the square wave signal, and specific phase indication is output by taking the 0-degree phase point as a reference. The circuit has simple structure and higher universalization level, and can be widely applied to the industrial field.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a sine wave phase detection circuit;
fig. 2 is a schematic diagram of a sine wave phase detection method.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should also be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided in order to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that aspects may be practiced without these specific details. In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
Under the condition that the 90-degree phase point of the sine wave is known, the AD is used for directly collecting the voltage value at the 90-degree phase point, so that the positive peak value of the sine wave can be obtained, and the effective value of the sine wave can be obtained through calculation without full-wave rectification or capacitor charging and discharging. The sine wave phase detection circuit shown in fig. 1 comprises a blocking filter capacitor, a level conversion circuit and a phase counting circuit, and further comprises a zero-crossing hysteresis comparator circuit, wherein:
the output of the blocking filter capacitor is connected with the input of the zero-crossing hysteresis comparator, the output of the zero-crossing hysteresis comparator is connected with the input of the level conversion circuit, and the output of the level conversion circuit is connected with the input of the phase counting circuit;
the sine wave input signal is input to the zero-crossing hysteresis comparator through the DC blocking filter capacitor, the sine wave input signal generates a square wave signal with the same phase as the sine wave input signal, and the square wave signal with the same phase is input to the phase counting module after passing through the level conversion circuit.
In the above, the dc blocking filter capacitor is used to filter out the dc component of the input signal, and the threshold of the zero-crossing hysteresis comparator output signal from low to high is 0V, where:
when the input voltage is higher than 0V, outputting a high level;
the zero-crossing hysteresis comparator circuit is used for generating square wave signals with the same phase as that of the input sine wave signals, when the input sine wave input is changed from-0V to +0V, the output signals are changed from low level to high level, and meanwhile, the hysteresis loop can filter high-frequency burrs, so that the anti-interference capability is improved.
As a specific embodiment provided herein, the zero-crossing hysteresis comparator circuit includes a resistor R1, a resistor R2, a resistor R3, and an op-amp integration, where:
one end of the resistor R1 is grounded, the other end of the resistor R1 is respectively connected with a forward input end of the operational amplifier integration and one end of the resistor R2, the other end of the resistor R2 is respectively connected with an output end of the operational amplifier integration and one end of the resistor R3, and the other end of the resistor R3 is a direct current power supply;
the inverting input end of the operational amplifier is connected with the input end of the DC blocking filter capacitor, and the output end is connected with the level conversion circuit. The phase counting module is realized based on the FPGA and comprises 1 timer, and the timing duration of the timer can be configured according to the target phase.
The sine wave after the blocking and filtering is input into a zero-crossing hysteresis comparator to generate a square wave signal with the same phase as the input sine wave, a 0-degree phase point of the sine wave is obtained by detecting the rising edge of the square wave signal with the same phase, a timer is configured to count time when the time of the timer reaches the 0-degree phase point, and a pulse signal is generated to indicate a target phase point. The invention realizes the effective detection of the sine wave phase, improves the detection instantaneity, simplifies the hardware topology and the software design of the sine wave peak value sampling circuit, and reduces the cost.
Secondly, a working method of the sine wave phase detection circuit is provided, and the working method is applied to the sine wave phase detection circuit and comprises the following steps:
step 1: configuring a timer duration cnt of the phase counting module according to the target phase theta;
step 2: after the phase counting module detects the rising edge of the same-phase square wave signal, starting a timer for timing;
step 3: the output pulse signal of the phase counting module is used for indicating the target phase after the timer expires (the time from zero up count to the time of the timer length cnt is referred to as the timer expiration).
Further, the step 1 of configuring the timer duration of the phase counting module according to the target phase includes:
if the period count value T is known, the relationship between the timer period cnt and the target phase θ is cnt= (θ·t)/360;
if the period count value T is unknown, the phase counting module carries out period counting of the same-phase square wave signal, and after the period count value T is obtained, the timer duration cnt is calculated according to a formula cnt= (theta-T)/360;
the period of the sine wave is T, and when the target phase theta is 90 degrees, the timer duration cnt of the phase counting module is equal to T/4.
Example one
As shown in fig. 1, the circuit comprises a sine wave phase detection circuit, a level conversion circuit and a phase counting circuit, wherein the sine wave phase detection circuit comprises a blocking filter capacitor, a zero-crossing hysteresis comparator circuit, and the level conversion circuit comprises:
the output of the blocking filter capacitor is connected with the input of the zero-crossing hysteresis comparator;
the output of the zero-crossing hysteresis comparator is connected with the input of the level conversion circuit;
the output of the level conversion circuit is connected with the input of the phase counting circuit;
the sine wave input signal is input to the zero-crossing hysteresis comparator through the DC blocking filter capacitor, the sine wave input signal generates a square wave signal with the same phase as the sine wave input signal, and the square wave signal with the same phase is input to the phase counting module after passing through the level conversion circuit.
Preferably, the blocking filter capacitor comprises a capacitor, which is used for filtering out the direct current component of the input signal;
preferably, the threshold of the zero-crossing hysteresis comparator output signal from low to high is 0V, and when the input voltage is higher than 0V, the zero-crossing hysteresis comparator output signal is high;
preferably, the phase counting module is realized based on an FPGA, the phase counting module comprises 1 timer, and the timing duration of the timer can be configured according to the target phase.
The working method of the circuit comprises the following steps:
step 1: configuring a timer duration cnt of the phase counting module according to the target phase theta;
step 2: the phase counting module starts a timer to count after detecting the rising edge of the same-phase square wave signal;
step 3: the timer of the phase counting module outputs a pulse signal after expiration of time to indicate the target phase.
Preferably, the configuring the timer duration of the phase counting module according to the target phase in the step 1 includes:
in the case where the cycle count T is known, the relationship between the timer period cnt and the target phase θ is cnt= (θ·t)/360;
under the condition that the period counting value T is unknown, the phase counting module firstly carries out period counting of the same-phase square wave signal to obtain the period counting value T, and then calculates the timer duration cnt according to a formula cnt= (theta.T)/360.
Example two
As shown in fig. 2, the present invention is applicable to a sinusoidal wave phase detection scenario with generalized requirements, assuming that the phase to be detected is θ, and outputting a single pulse signal indicating the phase θ after detecting the phase θ.
The sine wave phase detection circuit comprises a blocking filter capacitor, a zero-crossing hysteresis comparator circuit, a level conversion circuit and a phase counting circuit. The DC blocking filter capacitor comprises 1 capacitor connected in series and is used for filtering DC components coupled to an input sine wave signal; the zero-crossing hysteresis comparator circuit is used for generating square wave signals with the same phase as that of the input sine wave signals, when the input sine wave input is changed from-0V to +0V, the output signals are changed from low level to high level, and meanwhile, the hysteresis loop can filter high-frequency burrs, so that the anti-interference capability is improved; the level conversion circuit is used for realizing the matching of the output level of the zero-crossing hysteresis comparator circuit and the input level of the phase counting circuit, and if the output level and the input level are consistent, the level conversion circuit is not required to be configured; the phase counting circuit is realized based on the FPGA and is used for realizing phase counting of the same-phase square wave signals. Under the condition that the sine wave signal period count value T is known, calculating a timer duration cnt according to a formula cnt= (theta-T)/360, and configuring the cnt to a phase counting module realized based on the FPGA; after the input sine wave signal is input to the blocking filter capacitor and the zero-crossing hysteresis comparator, generating a square wave signal with the same phase as the input sine wave signal, detecting the rising edge of the square wave signal with the same phase by the phase counting module, and starting a timer of the phase counting module to start timing; when the timer of the phase counting module expires, the phase counting module outputs a single pulse signal indicating the target phase θ.
Under the condition that the period count value T of the sine wave signal is unknown, the phase counting module firstly carries out period counting of the same-phase square wave signal to obtain the period count value T, then calculates the time length cnt of the timer according to a formula cnt= (theta.T)/360, configures the cnt to the phase counting module realized based on the FPGA, and then carries out phase detection.
The sine wave after being subjected to direct-isolation and filtration is input into the zero-crossing hysteresis comparator, a square wave signal with the same phase as the input sine wave is generated, a 0-degree phase point of the sine wave is obtained by detecting the rising edge of the square wave signal with the same phase, a timer is configured to count time when the time is up, and a pulse signal is generated when the timer is up and used for indicating a target phase point. The invention realizes the effective detection of the sine wave phase, improves the detection instantaneity, simplifies the hardware topology and the software design of the sine wave peak value sampling circuit, and reduces the cost.
The product provided by the invention is described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the core concepts of the invention. It should be noted that it will be apparent to those skilled in the art that several improvements and modifications can be made to the invention without departing from the inventive concept, and these improvements and modifications fall within the scope of the appended claims.

Claims (7)

1. The sine wave phase detection circuit comprises a blocking filter capacitor, a level conversion circuit and a phase counting circuit, and is characterized by further comprising a zero-crossing hysteresis comparator circuit, wherein:
the output of the blocking filter capacitor is connected with the input of the zero-crossing hysteresis comparator, the output of the zero-crossing hysteresis comparator is connected with the input of the level conversion circuit, and the output of the level conversion circuit is connected with the input of the phase counting circuit;
the sine wave input signal is input to the zero-crossing hysteresis comparator through the DC blocking filter capacitor, a square wave signal with the same phase as the input sine wave signal is generated, and the same phase square wave signal is input to the phase counting module after passing through the level conversion circuit.
2. The sine wave phase detection circuit of claim 1 wherein the dc blocking filter capacitor is capable of filtering out a dc component of the input signal.
3. The sine wave phase detection circuit of claim 1 wherein the zero crossing hysteresis comparator circuit is further configured to change the output signal from low to high when the input sine wave input changes from-0V to +0v, and the hysteresis loop is configured to filter out high frequency glitches to improve immunity to interference.
4. The sine wave phase detection circuit of claim 3 wherein the zero crossing hysteresis comparator circuit comprises a resistor R1, a resistor R2, a resistor R3, and an op-amp integration, wherein:
one end of the resistor R1 is grounded, the other end of the resistor R1 is connected with a forward input end of the operational amplifier integration and one end of the resistor R2 respectively, the other end of the resistor R2 is connected with an output end of the operational amplifier integration and one end of the resistor R3 respectively, and the other end of the resistor R3 is a direct current power supply;
the inverting input end of the operational amplifier is connected with the input end of the DC blocking filter capacitor, and the output end is connected with the level conversion circuit.
5. The sine wave phase detection circuit of claim 1 wherein the phase counting module is implemented based on an FPGA and comprises 1 timer, the timing duration of which is configured according to a target phase.
6. The working method of the sine wave phase detection circuit is applied to the sine wave phase detection circuit and is characterized by comprising the following steps of:
step 1: configuring a timer duration cnt of the phase counting module according to the target phase theta;
step 2: after the phase counting module detects the rising edge of the same-phase square wave signal, starting a timer for timing;
step 3: and after the timer of the phase counting module expires, a pulse signal is output for indicating the target phase.
7. The method according to claim 6, wherein the step 1 of configuring the timer duration of the phase counting module according to the target phase includes:
if the period count value T is known, the relationship between the timer period cnt and the target phase θ is cnt= (θ·t)/360;
if the period count value T is unknown, the phase counting module carries out period counting of the same-phase square wave signal, and after the period count value T is obtained, the timer duration cnt is calculated according to a formula cnt= (theta-T)/360;
the period of the sine wave is T, and when the target phase theta is 90 degrees, the timer duration cnt of the phase counting module is equal to T/4.
CN202311059016.5A 2023-08-22 2023-08-22 Sine wave phase detection circuit and working method Pending CN117233445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311059016.5A CN117233445A (en) 2023-08-22 2023-08-22 Sine wave phase detection circuit and working method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311059016.5A CN117233445A (en) 2023-08-22 2023-08-22 Sine wave phase detection circuit and working method

Publications (1)

Publication Number Publication Date
CN117233445A true CN117233445A (en) 2023-12-15

Family

ID=89083463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311059016.5A Pending CN117233445A (en) 2023-08-22 2023-08-22 Sine wave phase detection circuit and working method

Country Status (1)

Country Link
CN (1) CN117233445A (en)

Similar Documents

Publication Publication Date Title
CN201004079Y (en) A frequency measurement and frequency accompanying circuit
CN103252314A (en) Dynamic matching device of ultrasonic power supply and method thereof
CN105530585A (en) Direct current impedance detection method of loudspeaker and circuit
CN204964613U (en) Zero -cross detection circuit
CN110286246A (en) Secondary speed detection method and device
CN110838828A (en) Method for demodulating inductive proximity sensor
CN109116111A (en) A kind of high-precision phase position difference measurements method and circuit
JP3808602B2 (en) Method and apparatus for tuning high Q filter
CN111308232B (en) System and method for measuring stray parameters of current loop of high-power current conversion module
CN117233445A (en) Sine wave phase detection circuit and working method
CN105375779A (en) Zero-current detection system for series resonance power supply
JP5280244B2 (en) Resistance measuring device
CN109342827B (en) Circuit and method for measuring capacitance value through capacitance alternating current charge and discharge
CN205139221U (en) Motor stator looks voltage detection device
CN102130682A (en) Phase discriminator
CN211296688U (en) Single-path signal echo processing circuit
CN204559529U (en) A kind of signal conditioning circuit for SAW (Surface Acoustic Wave) oscillator output signal
CN108241129A (en) Switching power supply output filter capacitor monitoring device and method
CN103869155A (en) Method and device for electric generator frequency measurement based on PLC high-speed input
CN115389811A (en) Zero crossing point detection circuit
TWI672004B (en) Frequency detector
CN114062758A (en) Electric signal detection method, circuit and switching power supply
CN104932325A (en) Synchronous voltage signal phase frequency check instrument based on cable partial discharge test
CN109116107A (en) A kind of digital frequency meter
CN203365544U (en) Detection circuit for resonant frequency and integrated circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination