CN109765427A - High-precision phase position difference measurements method and circuit based on phase detection discriminator and RMS conversion device - Google Patents
High-precision phase position difference measurements method and circuit based on phase detection discriminator and RMS conversion device Download PDFInfo
- Publication number
- CN109765427A CN109765427A CN201910153726.1A CN201910153726A CN109765427A CN 109765427 A CN109765427 A CN 109765427A CN 201910153726 A CN201910153726 A CN 201910153726A CN 109765427 A CN109765427 A CN 109765427A
- Authority
- CN
- China
- Prior art keywords
- relay
- input
- pecl
- contact
- converter
- 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.)
- Granted
Links
Landscapes
- Measuring Phase Differences (AREA)
Abstract
The invention belongs to electronic measuring technology fields, and in particular to a kind of high-precision phase position difference measurements method and circuit based on integrated phase detection discriminator and RMS conversion device.The adjusting that the present invention passes through coupling and DC bias circuit, shaping is carried out respectively to two-way measured signal using high-speed comparator, two paths of signals after shaping compares phase by integrated phase detection discriminator again, then under the control of the micro-controller, by means of the switching of relay, using the conversion of RMS conversion device and A/D converter, calculated to obtain accurate phase difference parameter by microcontroller, measurement result precision is high.
Description
Technical field
The present invention relates to the phase difference measurement technologies of electronic measuring technology field, and in particular to one kind is based on phase detection discriminator
With the high-precision phase position difference measurements method and circuit of RMS conversion device.
Background technique
In fields such as communication, instrument and meters, in order to realize specific purpose, it is often necessary to the phase of two same frequency signals
Potential difference measures.There are many existing method for measuring phase difference, and most basic measurement means are measured using oscillograph,
Voltage measurement method or pulse counting method based on XOR gate can be used.
The shortcomings that existing method for measuring phase difference is had nothing in common with each other, oscilloscope measurement method are limited by artificial reading factor,
Low measurement accuracy;Voltage measurement method based on XOR gate is limited by XOR gate working frequency of chip, is unable to measure high frequency letter
Number, and measurement accuracy is also not high enough;Pulse counting method measurement accuracy based on XOR gate increases, but to front-end circuit
Performance requirement is excessively high, and is limited by the working frequency of XOR gate chip and counter, MCU, can measured frequency it is lower.
Summary of the invention
In order to overcome the shortcomings of the above technical problems, the present invention provides a kind of accurate high-precision phase position difference measurements of measurement
Method and circuit.
High-precision phase position difference measurements method based on phase detection discriminator and RMS conversion device of the invention, especially it
It is in and chooses a PECL in, comprising the following steps: a. and integrate phase detection discriminator, if two pulse input end is respectively R, V;
Four are chosen with model conversion hysteria DC relay J1 (1), J2 (2), J3 (3), J4 (4);It b. will be in two-way input signal to be measured
All the way from input 1 terminal introduce, by first coupling and DC bias circuit, one for being input to the first PECL comparator it is defeated
Enter end, another input termination fixed level of the first PECL comparator, the output of the first PECL comparator is connected to PECL collection
At the input terminal R of phase detection discriminator;Another way in input signal to be measured is introduced from 2 terminals of input, by the second coupling and directly
Biasing circuit is flowed, an input terminal of the 2nd PECL comparator is input to, another input termination of the 2nd PECL comparator is solid
Determine level, the output of the 2nd PECL comparator is connected to the input terminal V that PECL integrates phase detection discriminator;C. the integrated mirror of the PECL
The output end U of phase frequency discriminator is connected to the intermediate contact Z1 of relay J1 (1), the normally-closed contact B1 of relay J1 (1) be connected to after
The normally opened contact A1 of the normally-closed contact B2 of electric appliance J2 (2), relay J1 (1) are connected to first very effectively by partiting dc capacitor C2
It is worth the input terminal of converter, the output end of the first RMS conversion device is connected to the normally opened contact A2 of relay J2 (2), relay
The intermediate contact Z2 of device J2 (2) is connected to the analog voltage input of the first A/D converter;D. the PECL integrates phase demodulation frequency discrimination
The another output of deviceBe connected to the intermediate contact Z3 of relay J3 (3), the normally-closed contact B3 of relay J3 (3) be connected to after
The normally opened contact A3 of the normally-closed contact B4 of electric appliance J4 (4), relay J3 (3) are connected to second very effectively by partiting dc capacitor C3
It is worth the input terminal of converter, the output end of the second RMS conversion device is connected to the normally opened contact A4 of relay J4 (4), relay
The intermediate contact Z4 of device J4 (4) is connected to the analog voltage input of the second A/D converter;E. a microcontroller is chosen,
It is converted by control relay circuit control relay J1 (1), the contact change-over of J2 (2), J3 (3), J4 (4), and to the first A/D
The output digital quantity of device and the second A/D converter is calculated;F. the known standard sine wave signal for being 1kHz by a frequency
It is added to 2 terminals of 1 terminal of the input and input simultaneously, the intermediate contact Z1 and normally-closed contact B1 that MCU controls relay J1 (1) connect
Lead to, the intermediate contact Z2 of relay J2 (2) is connected to normally-closed contact B2, the intermediate contact Z3 and normally-closed contact of relay J3 (3)
B3 is connected to, the intermediate contact Z4 of relay J4 (4) is connected to normally-closed contact B4, so that the end integrated phase detection discriminator U exports
Low level voltage be sent to the analog voltage input of the first A/D converter, the integrated phase detection discriminatorHold the height of output
Level voltage is sent to the analog voltage input of the second A/D converter;The digital quantity that MCU exports the first A/D converter converts
At voltage value, and record this low level voltage UL;The digital quantity that second A/D converter exports is converted into voltage value by MCU, and is remembered
Record this high level voltage UH;MCU is according to formula Um=UH-ULThe integrated phase detection discriminator output phase discriminating pulse is calculated
Amplitude Um;G. two-way measured signal is introduced from 1 terminal of the input and 2 terminals of input respectively, MCU controls relay J1 (1)
Intermediate contact Z1 be connected to normally-closed contact B1, the intermediate contact Z2 of relay J2 (2) is connected to normally-closed contact B2, relay J3
(3) intermediate contact Z3 is connected to normally-closed contact B3, the intermediate contact Z4 of relay J4 (4) is connected to normally-closed contact B4, and MCU is read
The digital quantity for taking the first A/D converter to export, is converted into voltage value, by the reading and conversion of 3 or 3 or more numbers, if often
Secondary obtained voltage value it is all identical and with the low level voltage ULIt is identical;MCU reads the number of the second A/D converter output again
Amount, is converted into voltage value, by the reading and conversion of 3 or 3 or more numbers, if the voltage value obtained every time it is all identical and with institute
State high level voltage UHIdentical, then MCU judges that two-way measured signal phase difference θ is zero;H. in step g, if MCU more times readings
Take and the first A/D converter output voltage values for conversing it is all identical and with the high level voltage UHIt is identical, and MCU more times readings
Take and the second A/D converter output voltage values for conversing it is all identical and with the low level voltage ULIdentical, then MCU judges two
Road measured signal phase difference θ is π;I. in step g, if the first A/D converter output electricity for reading and conversing for MCU more times
Pressure value is variation, then the intermediate contact Z1 and normally opened contact A1 that MCU controls relay J1 (1) are attracted, in relay J2 (2)
Between contact Z2 and normally opened contact A2 are attracted, the intermediate contact Z3 of relay J3 (3) is connected to normally-closed contact B3, relay J4 (4)
Intermediate contact Z4 be connected to normally-closed contact B4;MCU reads the digital quantity of the first A/D converter output again, and is converted into voltage
Value, this voltage value are the phase difference pulse voltage virtual value U of the end the integrated phase detection discriminator U output1, it is electric that MCU records this
It is pressed with valid value U1, and judge the signal phase that signal phase 2 terminals of the advanced input that 1 terminal of the input introduces introduce;
The phase difference θ of two-way measured signal is calculated according to following formula by MCU:J. in step g, if
MCU more times the second A/D converter output voltage values for reading and conversing are variations, then MCU is controlled in relay J1 (1)
Between contact Z1 is connected to normally-closed contact B1, the intermediate contact Z2 of relay J2 (2) is connected to normally-closed contact B2, relay J3 (3)
Intermediate contact Z3 and normally opened contact A3 be attracted, the intermediate contact Z4 of relay J4 (4) and normally opened contact A4 actuation;MCU is read again
The digital quantity for taking the second A/D converter to export, and it is converted into voltage value, this voltage value is the integrated phase detection discriminatorEnd
The phase difference pulse voltage virtual value U of output2, MCU records this voltage effective value U2, and judge the letter that 1 terminal of the input introduces
The signal phase of 2 terminals introducing is inputted described in number delayed phase;The phase of two-way measured signal is calculated according to following formula by MCU
Potential difference θ:Negative sign in formula indicates to input 2 described in the phase lag signal of the input 1 terminal introducing
The signal phase that terminal introduces;The phase difference result of calculating is output to display and shown by k.MCU.
High-precision phase position difference measurements method based on phase detection discriminator and RMS conversion device of the invention, feature exist
In: the first coupling and DC bias circuit and the second coupling are identical with DC bias circuit;First PECL comparator connects solid
The input terminal polarity that the input terminal and the 2nd PECL comparator for determining level connect fixed level is answered identical, is all the same of respective comparator
Phase input terminal, or be all the inverting input terminal of respective comparator;First RMS conversion device and the second RMS conversion device
It is identical;First A/D converter and the second A/D converter are identical, and use the same reference voltage source.
The effect of two PECL comparators is shaping, input signal to be measured can be sine wave, sawtooth wave, triangular wave or
The waveform signals such as rectangular wave.The identical input signal of two-way waveform, by the shaping of 2 identical PECL comparators, all
The square-wave signal that will become PECL level sends to PECL and integrates phase detection discriminator, guarantees that phase discriminator can accurately carry out phase
Compare.Moreover, the amplitude of two-way input signal can differ greatly.
The output state that PECL integrates phase detection discriminator depends on the phase relation of two pulse input ends R and V, if R
Hold the advanced end the V input pulse of input pulse, then PECL integrate phase detection discriminator the end U output PECL logic positive pulse,It holds defeated
PECL logic high out;, whereas if the advanced end the R input pulse of the end V input pulse, then PECL integrates phase detection discriminator
End output PECL logic positive pulse, the end U export PECL logic low.The end U orEnd output PECL logic positive pulse be
Phase discriminating pulse, pulse width and the phase difference of two-way input signal are directly directly proportional.
The effect of two RMS conversion devices is that the phase discriminating pulse for exporting PECL phase detection discriminator is converted into virtual value
Voltage, the effect of partiting dc capacitor C2, C3 are to eliminate the influence of PECL phase detection discriminator output DC potential, it is ensured that real available value
What converter exported is the voltage effective value of phase discriminating pulse.The effect of two A/D converters is to export PECL phase detection discriminator
High level voltage, low level voltage and phase discriminating pulse voltage effective value be converted into digital quantity, facilitate MCU direct measuring.
Correspondingly, in order to overcome the shortcomings of the above technical problems, the present invention provides a kind of measurements to be accurately based on phase demodulation
The high-precision phase position difference measurements circuit of frequency discriminator and RMS conversion device.
High-precision phase position difference measurements circuit based on phase detection discriminator and RMS conversion device of the invention, comprising: defeated
Enter 1 terminal, input 2 terminals, first coupling with DC bias circuit, second couple compared with DC bias circuit, the first PECL
Device, the 2nd PECL comparator, PECL integrate phase detection discriminator, the first RMS conversion device, the second RMS conversion device, the
One A/D converter, the second A/D converter, reference voltage source, microcontroller, display, control relay circuit and four
A same model conversion hysteria DC relay J1 (1), J2 (2), J3 (3), J4 (4);It is characterized by: in two-way input signal to be measured
Introduced all the way from 1 terminal of input, after the first coupling is with DC bias circuit, be input to one of the first PECL comparator
Input terminal, another input termination fixed level of the first PECL comparator, the output of the first PECL comparator are connected to PECL
The input terminal R of integrated phase detection discriminator;Another way in input signal to be measured is introduced from 2 terminals of input, by the second coupling with
After DC bias circuit, it is input to an input terminal of the 2nd PECL comparator, another input terminal of the 2nd PECL comparator
Fixed level is connect, the output of the 2nd PECL comparator is connected to the input terminal V that PECL integrates phase detection discriminator;The integrated phase demodulation
The output end U of frequency discriminator is connected to the intermediate contact Z1 of relay J1 (1), and the normally-closed contact B1 of relay J1 (1) is connected to relay
The normally opened contact A1 of the normally-closed contact B2 of device J2 (2), relay J1 (1) are connected to the first real available value by partiting dc capacitor C2
The input terminal of converter, the output end of the first RMS conversion device are connected to the normally opened contact A2 of relay J2 (2), relay
The intermediate contact Z2 of J2 (2) is connected to the analog voltage input of the first A/D converter;The integrated phase detection discriminator it is another
A output endIt is connected to the intermediate contact Z3 of relay J3 (3), the normally-closed contact B3 of relay J3 (3) is connected to relay J4
(4) the normally opened contact A3 of normally-closed contact B4, relay J3 (3) are connected to the second RMS conversion by partiting dc capacitor C3
The input terminal of device, the output end of the second RMS conversion device are connected to the normally opened contact A4 of relay J4 (4), relay J4
(4) intermediate contact Z4 is connected to the analog voltage input of the second A/D converter;Microcontroller is controlled by relay
The contact change-over of circuit control relay J1 (1), J2 (2), J3 (3), J4 (4), and the first A/D converter and the 2nd A/D are turned
The output digital quantity of parallel operation is calculated, and the phase difference result of measuring and calculating is sent to display and is shown.
High-precision phase position difference measurements circuit of the invention, it is characterised in that: the first coupling and DC bias circuit and second
It couples identical with DC bias circuit;First PECL comparator connects the input terminal of fixed level and the 2nd PECL comparator connects
The input terminal polarity of fixed level is answered identical, is all the non-inverting input terminal of respective comparator, or be all the reverse phase of respective comparator
Input terminal;First RMS conversion device and the second RMS conversion device are identical;First A/D converter and the 2nd A/D
Converter is identical, and uses the same reference voltage source.
The effect that DC bias circuit is arranged is that the maximum input voltage value that PECL comparator allows is Vmax, by two
The non-inverting input terminal of a PECL comparator, the dc point of inverting input terminal are both configured toCan make that signal can be surveyed
Dynamic range is maximum.Two couplings are identical with parameter with the structure of DC bias circuit, and two PECL comparators connect fixation
The input terminal level numerical value of level is also identical, guarantees that the pulse signal of two PECL comparator output terminals can accurately reflect two in this way
The phase relation of road input signal to be measured.The output of PECL comparator is PECL logic level signal, can directly be reflected with PECL
Phase frequency discriminator input terminal is connected.
The beneficial effects of the present invention are: proposing a kind of new method for measuring phase difference, by PECL comparator shaping, utilize
The phase demodulation that PECL integrates phase detection discriminator acts on obtaining the phase difference pulse of two-way input signal, in RMS conversion device and A/
It under the conversion of D converter, is controlled by MCU, by the measuring and calculating of pulse voltage amplitude and virtual value, is completed to sine wave, sawtooth
Phase difference measurement between the two-way such as wave, triangular wave, rectangular wave same frequency, same waveform signal, and measurement accuracy is high, can survey letter
Number frequency is higher, dynamic range is very big.
Detailed description of the invention
Fig. 1 is the principle of the present invention block diagram;Fig. 2 is partial circuit diagram of the invention, containing the first coupling and direct current biasing electricity
Road (5), the second coupling and DC bias circuit (6), the first PECL comparator (7), the 2nd PECL comparator (8) and PECL are integrated
Phase detection discriminator MC12040;Fig. 3 is RMS conversion device circuit of the invention;Fig. 4 is A/D converter and base of the invention
Reference voltage source circuit;Phase detection discriminator working waveform figure Fig. 5 of the invention.
In Fig. 1: 1 relay J1,2 relay J2,3 relay J3,4 relay J4.
In Fig. 2: 5 first couplings and DC bias circuit, 6 second couplings and DC bias circuit, 7 the oneth PECL compare
Device, 8 the 2nd PECL comparators.
In Fig. 3: 9 first RMS conversion devices, 10 second RMS conversion devices.
In Fig. 4: 11 first A/D converters, 12 second A/D converters.
Specific embodiment
In conjunction with attached drawing, high-precision phase position difference measurements method of the invention is followed the steps below:
A. it chooses a PECL and integrates phase detection discriminator MC12040, two pulse input end is respectively R, V;Choose four
A SRD-05VDC-SL-C type DC relay J1 (1), J2 (2), J3 (3), J4 (4).
B. by being introduced all the way from 1 terminal of input in two-way input signal to be measured, by the first coupling and direct current biasing electricity
Behind road (5), it is input to the non-inverting input terminal of the first PECL comparator (7) ADCMP553, the reverse phase of the first PECL comparator (7) is defeated
Enter and terminate fixed level, the output end of first comparator is connected to the input terminal R of phase detection discriminator MC12040.Input letter to be measured
Another way in number is introduced from 2 terminals of input, by the second coupling with after DC bias circuit (6), is input to the 2nd PECL ratio
Compared with the non-inverting input terminal of device (8) ADCMP553, the anti-phase input of the comparator terminates fixed level, and the output end of the comparator connects
It is connected to the input terminal V of MC12040.
The output end U that c.PECL integrates phase detection discriminator MC12040 is connected to the intermediate contact Z1 of relay J1 (1), relay
The normally-closed contact B1 of device J1 (1) is connected to the normally-closed contact B2 of relay J2 (2), and the normally opened contact A1 of relay J1 (1) passes through
Partiting dc capacitor C2 is connected to 2 foot of input terminal of the first RMS conversion device (9), the first RMS conversion device (9) it is defeated
5 foot of outlet is connected to the normally opened contact A2 of relay J2 (2), and the intermediate contact Z2 of relay J2 (2) is connected to the first A/D conversion
1 foot of analog voltage input of device (11).
D. the another output of phase detection discriminator MC12040 is integratedIt is connected to the intermediate contact Z3 of relay J3 (3), after
The normally-closed contact B3 of electric appliance J3 (3) is connected to the normally-closed contact B4 of relay J4 (4), the normally opened contact A3 warp of relay J3 (3)
Cross 2 foot of input terminal that partiting dc capacitor C3 is connected to the second RMS conversion device (10), the second RMS conversion device (10)
5 foot of output end be connected to the normally opened contact A4 of relay J4 (4), the intermediate contact Z4 of relay J4 (4) is connected to the 2nd A/D
1 foot of analog voltage input of converter (12).
E. choose a microcontroller, by control relay circuit control relay J1 (1), J2 (2), J3 (3),
The contact change-over of J4 (4), and 8 bit digital quantities that the first A/D converter (11) and the second A/D converter (12) are exported respectively into
Row measuring and calculating.
F. the known standard sine wave signal that a frequency is 1kHz is added to 2 terminals of 1 terminal of input and input simultaneously,
MCU control relay J1 (1) intermediate contact Z1 be connected to normally-closed contact B1, the intermediate contact Z2 of relay J2 (2) with it is normally closed
Contact B2 connection, relay J3 (3) intermediate contact Z3 be connected to normally-closed contact B3, the intermediate contact Z4 of relay J4 (4) and
The end the U output low level voltage of normally-closed contact B4 connection, integrated phase detection discriminator MC12040 is sent to the first A/D converter (11),
MC12040'sEnd output high level voltage is sent to the second A/D converter (12);MCU will at this time the first A/D converter (11) it is defeated
Digital quantity out is converted into voltage value, and records this low level voltage UL.The number that MCU exports the second A/D converter (12)
Amount is converted into voltage value, and records this high level voltage UH.Integrated phase detection discriminator is calculated according to formula (1) in MCU
MC12040 exports the difference between high and low level.
Um=UH-UL(1)
U in formula (1)mValue is the amplitude of integrated phase detection discriminator MC12040 output phase discriminating pulse.
G. two-way measured signal is introduced from 1 terminal of input and 2 terminals of input respectively, MCU is controlled in relay J1 (1)
Between contact Z1 and normally-closed contact B1 are attracted, the intermediate contact Z2 of relay J2 (2) is connected to normally-closed contact B2, relay J3 (3)
Intermediate contact Z3 be connected to normally-closed contact B3, the intermediate contact Z4 of relay J4 (4) is connected to normally-closed contact B4, MCU is first
The digital quantity for reading the first A/D converter (11) output, is converted into voltage value, by the reading and conversion of 3 or 3 or more numbers,
If the voltage value obtained every time it is all identical and with the low level voltage U that is measured in step fLIt is identical;MCU reads the 2nd A/D again
The digital quantity of converter (12) output, is converted into voltage value, by the reading and conversion of 3 or 3 or more numbers, if obtained every time
Voltage value it is all identical and with the high level voltage U that is measured in step fHIdentical, then MCU judges two-way measured signal phase accordingly
Poor θ is zero.
H. in step g, if MCU more times the first A/D converter (11) output voltage values all phases for reading and conversing
With and with the high level voltage U that is measured in step fHIt is identical, and MCU more times the second A/D converters (12) for reading and conversing
Output voltage values it is all identical and with the low level voltage U that is measured in step fLIdentical, then MCU judges two-way measured signal phase difference
θ is π.
I. in step g, if MCU more times the first A/D converter (11) output voltage values for reading and conversing are to become
Change, then MCU controls the intermediate contact Z2 of intermediate contact Z1 and normally opened contact the A1 actuation of relay J1 (1), relay J2 (2)
It is connected to normally opened contact A2 actuation, the intermediate contact Z3 of relay J3 (3) and normally-closed contact B3, the intermediate of relay J4 (4) touches
Point Z4 is connected to normally-closed contact B4.MCU reads the digital quantity of the first A/D converter (11) output, and is converted into voltage value, this electricity
Pressure value is the end the U phase difference output pulse voltage virtual value U of integrated phase detection discriminator MC120401, MCU, which records this voltage, to be had
Valid value U1, and judge the advanced end the V input pulse phase of the end R input pulse phase of MC12040, that is, input the letter of 1 terminal introducing
Number phase inputs the signal phase of 2 terminals introducing in advance.The phase of two-way measured signal at this time is calculated according to formula (2) by MCU
Potential difference θ.
J. in step g, if MCU more times the second A/D converter (12) output voltage values for reading and conversing are to become
Change, then MCU controls the intermediate contact Z2 of intermediate contact Z1 and normally-closed contact the B1 actuation of relay J1 (1), relay J2 (2)
It is attracted with normally-closed contact B2, the intermediate contact Z3 of relay J3 (3) and normally opened contact A3 actuation, the intermediate of relay J4 (4) are touched
Point Z4 and normally opened contact A4 is attracted;MCU reads the digital quantity of the second A/D converter (12) output, and is converted into voltage value, this electricity
Pressure value is integrated phase detection discriminator MC12040Hold phase difference output pulse voltage virtual value U2, MCU, which records this voltage, to be had
Valid value U2, and judge the end the R end the input pulse delayed phase V input pulse phase of MC12040 accordingly, that is, input the introducing of 1 terminal
Phase lag signal input 2 terminals introduce signal phase.The phase of two-way measured signal is calculated according to formula (3) by MCU
Potential difference θ.
In formula (3), negative sign indicates that the phase lag signal that 1 terminal of input introduces inputs the signal phase that 2 terminals introduce.
The phase difference result of calculating is output to display and shown by k.MCU, completes phase difference measurement process.
In the present embodiment, the direct current for being introduced for separating integrated phase detection discriminator MC12040 output of capacitor C2, C3
Position, it is ensured that RMS conversion device accurately exports the voltage effective value of MC12040 phase discriminating pulse.
As shown in the picture, high-precision phase position difference measurements circuit of the invention is given comprising: 1 terminal of input, input 2
Terminal, the first coupling is coupled with DC bias circuit (5), second and DC bias circuit (6), the first PECL comparator (7), the
Two PECL comparators (8), PECL integrate phase detection discriminator, the first RMS conversion device (9), the second RMS conversion device
(10), the first A/D converter (11), the second A/D converter (12), reference voltage source MAX6107, microcontroller, display
And four the same as model conversion hysteria DC relay J1 (1), J2 (2), J3 (3), J4 (4), necessary+5V working power ,+3V work
Make power supply.Universal circuit can be used in control relay circuit, therefore does not provide in example.
As shown in Fig. 2, PECL comparator is constituted using ADCMP553, two comparator circuit structures and the complete phase of parameter
Together.
Input signal 1 to be measured is input to the first PECL comparator (7) by the first coupling and DC bias circuit (5)
The anti-phase input of non-inverting input terminal, the first PECL comparator (7) terminates fixed level.Input signal 2 to be measured is by the second coupling
With DC bias circuit (6), it is input to the non-inverting input terminal of the 2nd PECL comparator (8), the reverse phase of the 2nd PECL comparator (8)
Input terminal also connects fixed level.Two-way input signal to be measured is respectively after PECL comparator shaping, from respective PECL comparator
6 foot of output end formed rectangular pulse signal, be separately input to PECL integrate phase detection discriminator MC12040 two input terminal R,
V。
Integrated phase detection discriminator MC12040 it is practical there are four output terminal U, D,As needed only use U,
Two output ends.MC12040 carries out than phase the forward position of two input pulses of R, V, from the end U of MC12040 andEnd output mirror
Phase pulse or fixed level signal, the phase discriminating pulse can accurately reflect the phase relation between two input signals to be measured, work
It is as shown in Fig. 5 to make waveform.If the impulse phase of the advanced input terminal V of the impulse phase of MC12040 input terminal R, the output of the end U
PECL logic direct impulse,End output PECL logic high;If the impulse phase of MC12040 input terminal R lags input
Hold the impulse phase of V, then the end U exports PECL logic low,End output PECL logic direct impulse;When MC12040 is inputted
When holding the pulse of R identical as the impulse phase of input terminal V, the output end U is PECL logic low,End is that PECL is logically high
Level;When the pulse of MC12040 input terminal R is opposite with the impulse phase of input terminal V, the output end U is the logically high electricity of PECL
It is flat,End is PECL logic low.
As shown in Fig. 3, the first RMS conversion device (9) and the second RMS conversion device (10) are all made of
LTC1968 and its peripheral capacitor are constituted, and two circuit structures and parameter are identical, respectively by integrated phase detection discriminator
The end U of MC12040 andThe phase discriminating pulse signal of end output is converted into RMS voltage output.
As shown in Fig. 4, the first A/D converter (11), the second A/D converter (12) use two identical eight
A/D converter MX7820 is constituted, and two A/D converters use the same reference voltage source MAX6107, the base of MAX6107 output
Quasi- voltage is+4.5V, is closer to the voltage magnitude of PECL level, it is ensured that the precision of A/D conversion is sufficiently high.
MCU by parallel interface read respectively two A/D converters output digital voltage value, and by formula (1),
(2), the phase difference radian value of measured signal is calculated in (3), then comprehensive measured signal phase difference is zero and two kinds of special feelings of π
The phase difference result of measuring and calculating is sent to display and intuitively shown by condition.
Claims (4)
1. the high-precision phase position difference measurements method based on phase detection discriminator and RMS conversion device, which is characterized in that including with
Lower step:
A. it chooses a PECL and integrates phase detection discriminator, if two pulse input end is respectively R, V;Four are chosen to turn with model
Remodel DC relay J1 (1), J2 (2), J3 (3), J4 (4);
B. defeated by the first coupling and DC bias circuit by being introduced all the way from 1 terminal of input in two-way input signal to be measured
Enter an input terminal to the first PECL comparator, another input termination fixed level of the first PECL comparator, first
The output of PECL comparator is connected to the input terminal R that PECL integrates phase detection discriminator;Another way in input signal to be measured is from defeated
Enter the introducing of 2 terminals, by the second coupling and DC bias circuit, is input to an input terminal of the 2nd PECL comparator, second
Another input termination fixed level of PECL comparator, the output of the 2nd PECL comparator are connected to PECL and integrate phase demodulation frequency discrimination
The input terminal V of device;
C. the output end U that the PECL integrates phase detection discriminator is connected to the intermediate contact Z1, relay J1 (1) of relay J1 (1)
Normally-closed contact B1 be connected to the normally-closed contact B2 of relay J2 (2), the normally opened contact A1 of relay J1 (1) passes through blocking galvanic electricity
Hold the input terminal that C2 is connected to the first RMS conversion device, the output end of the first RMS conversion device is connected to relay J2
(2) the intermediate contact Z2 of normally opened contact A2, relay J2 (2) are connected to the analog voltage input of the first A/D converter;
D. the PECL integrates the another output of phase detection discriminatorIt is connected to the intermediate contact Z3 of relay J3 (3), relay
The normally-closed contact B3 of J3 (3) is connected to the normally-closed contact B4 of relay J4 (4), the normally opened contact A3 of relay J3 (3) pass through every
DC capacitor C3 is connected to the input terminal of the second RMS conversion device, the output end of the second RMS conversion device be connected to after
The normally opened contact A4 of electric appliance J4 (4), the analog voltage that the intermediate contact Z4 of relay J4 (4) is connected to the second A/D converter are defeated
Enter end;
E. a microcontroller is chosen, relay J1 (1), J2 (2), J3 (3), J4 (4) are controlled by control relay circuit
Contact change-over, and the output digital quantity of the first A/D converter and the second A/D converter is calculated;
F. the known standard sine wave signal that a frequency is 1kHz is added to 2 terminals of 1 terminal of the input and input simultaneously,
MCU control relay J1 (1) intermediate contact Z1 be connected to normally-closed contact B1, the intermediate contact Z2 of relay J2 (2) with it is normally closed
Contact B2 connection, relay J3 (3) intermediate contact Z3 be connected to normally-closed contact B3, the intermediate contact Z4 of relay J4 (4) and
Normally-closed contact B4 connection, so that the low level voltage of the end integrated phase detection discriminator U output is sent to the mould of the first A/D converter
Quasi- voltage input end, the integrated phase detection discriminatorThe high level voltage of end output is sent to the simulation electricity of the second A/D converter
Press input terminal;The digital quantity that first A/D converter exports is converted into voltage value by MCU, and records this low level voltage UL;MCU
The digital quantity that second A/D converter exports is converted into voltage value, and records this high level voltage UH;MCU is according to formula Um=
UH-ULThe amplitude U of the integrated phase detection discriminator output phase discriminating pulse is calculatedm;
G. two-way measured signal is introduced from 1 terminal of the input and 2 terminals of input respectively, MCU is controlled in relay J1 (1)
Between contact Z1 is connected to normally-closed contact B1, the intermediate contact Z2 of relay J2 (2) is connected to normally-closed contact B2, relay J3 (3)
Intermediate contact Z3 be connected to normally-closed contact B3, the intermediate contact Z4 of relay J4 (4) is connected to normally-closed contact B4, MCU read
The digital quantity of first A/D converter output, is converted into voltage value, by the reading and conversion of 3 or 3 or more numbers, if every time
Obtained voltage value it is all identical and with the low level voltage ULIt is identical;MCU reads the number of the second A/D converter output again
Amount, is converted into voltage value, by the reading and conversion of 3 or 3 or more numbers, if the voltage value obtained every time it is all identical and with institute
State high level voltage UHIdentical, then MCU judges that two-way measured signal phase difference θ is zero;
H. in step g, if read for MCU more times and the first A/D converter output voltage values for conversing it is all identical and with institute
State high level voltage UHIt is identical, and MCU more times are read and the second A/D converter output voltage values for conversing are all identical and with institute
State low level voltage ULIdentical, then MCU judges two-way measured signal phase difference θ for π;
I. in step g, if MCU more times the first A/D converter output voltage values for reading and conversing are variations,
MCU control relay J1 (1) intermediate contact Z1 and normally opened contact A1 actuation, relay J2 (2) intermediate contact Z2 with it is normally opened
Contact A 2 is attracted, the intermediate contact Z3 of relay J3 (3) is connected to normally-closed contact B3, the intermediate contact Z4 of relay J4 (4) and
Normally-closed contact B4 connection;MCU reads the digital quantity of the first A/D converter output again, and is converted into voltage value, this voltage value is
The phase difference pulse voltage virtual value U of the end the integrated phase detection discriminator U output1, MCU records this voltage effective value U1, and judge
The signal phase that signal phase 2 terminals of the advanced input that 1 terminal of the input introduces introduce;MCU is according to following formula meters
Calculation obtains the phase difference θ of two-way measured signal:
J. in step g, if MCU more times the second A/D converter output voltage values for reading and conversing are variations,
MCU control relay J1 (1) intermediate contact Z1 be connected to normally-closed contact B1, the intermediate contact Z2 of relay J2 (2) with it is normally closed
Contact B2 connection, relay J3 (3) intermediate contact Z3 and normally opened contact A3 be attracted, the intermediate contact Z4 of relay J4 (4) and
Normally opened contact A4 is attracted;MCU reads the digital quantity of the second A/D converter output again, and is converted into voltage value, this voltage value is
The integrated phase detection discriminatorHold the phase difference pulse voltage virtual value U of output2, MCU records this voltage effective value U2, and sentence
Break and inputs the signal phase of 2 terminals introducing described in the phase lag signal that 1 terminal of the input introduces;MCU is according to following formula
The phase difference θ of two-way measured signal is calculated:Negative sign in formula indicates that 1 terminal of the input draws
The signal phase of 2 terminals introducing is inputted described in the phase lag signal entered;
The phase difference result of calculating is output to display and shown by k.MCU.
2. high-precision phase position difference measurements method according to claim 1, it is characterised in that: the first coupling and direct current biasing electricity
Road and the second coupling are identical with DC bias circuit;First PECL comparator connects the input terminal and the 2nd PECL of fixed level
The input terminal polarity that comparator connects fixed level is answered identical, is all the non-inverting input terminal of respective comparator, or be all it is respective relatively
The inverting input terminal of device;First RMS conversion device and the second RMS conversion device are identical;First A/D converter and
Second A/D converter is identical, and uses the same reference voltage source.
3. the high-precision phase position difference measurements circuit based on phase detection discriminator and RMS conversion device, comprising: input 1 terminal, defeated
Enter 2 terminals, the first coupling couples and DC bias circuit, the first PECL comparator, the 2nd PECL with DC bias circuit, second
Comparator, PECL integrate phase detection discriminator, the first RMS conversion device, the second RMS conversion device, the first A/D conversion
Device, the second A/D converter, reference voltage source, microcontroller, display, control relay circuit and four turn with model
Remodel DC relay J1 (1), J2 (2), J3 (3), J4 (4);It is characterized by: in two-way input signal to be measured all the way from defeated
Enter the introducing of 1 terminal, by the first coupling and DC bias circuit, is input to an input terminal of the first PECL comparator, first
Another input termination fixed level of PECL comparator, the output of the first PECL comparator are connected to PECL and integrate phase demodulation frequency discrimination
The input terminal R of device;Another way in input signal to be measured is introduced from 2 terminals of input, by the second coupling and DC bias circuit,
It is input to an input terminal of the 2nd PECL comparator, another input termination fixed level of the 2nd PECL comparator, second
The output of PECL comparator is connected to the input terminal V that PECL integrates phase detection discriminator;The PECL integrates the defeated of phase detection discriminator
Outlet U is connected to the intermediate contact Z1 of relay J1 (1), and the normally-closed contact B1 of relay J1 (1) is connected to the normal of relay J2 (2)
The normally opened contact A1 of closed contact B2, relay J1 (1) are connected to the defeated of the first RMS conversion device by partiting dc capacitor C2
Enter end, the output end of the first RMS conversion device is connected to the normally opened contact A2 of relay J2 (2), in relay J2 (2)
Between contact Z2 be connected to the analog voltage input of the first A/D converter;Another of the integrated phase detection discriminator of the PECL is defeated
OutletIt is connected to the intermediate contact Z3 of relay J3 (3), the normally-closed contact B3 of relay J3 (3) is connected to relay J4's (4)
The normally opened contact A3 of normally-closed contact B4, relay J3 (3) are connected to the second RMS conversion device by partiting dc capacitor C3
Input terminal, the output end of the second RMS conversion device are connected to the normally opened contact A4 of relay J4 (4), relay J4's (4)
Intermediate contact Z4 is connected to the analog voltage input of the second A/D converter;Microcontroller passes through control relay circuit control
Relay J1 (1) processed, J2 (2), J3 (3), J4 (4) contact change-over, and to the first A/D converter and the second A/D converter
Output digital quantity is calculated, and the phase difference result of measuring and calculating is sent to display and is shown.
4. high-precision phase position difference measurements circuit according to claim 3, it is characterised in that: the first coupling and direct current biasing electricity
Road and the second coupling are identical with DC bias circuit;First PECL comparator connects the input terminal and the 2nd PECL of fixed level
The input terminal polarity that comparator connects fixed level is answered identical, is all the non-inverting input terminal of respective comparator, or be all it is respective relatively
The inverting input terminal of device;First RMS conversion device and the second RMS conversion device are identical;First A/D converter and
Second A/D converter is identical, and uses the same reference voltage source.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910153726.1A CN109765427B (en) | 2019-03-01 | 2019-03-01 | High-precision phase difference measuring method and circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910153726.1A CN109765427B (en) | 2019-03-01 | 2019-03-01 | High-precision phase difference measuring method and circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109765427A true CN109765427A (en) | 2019-05-17 |
CN109765427B CN109765427B (en) | 2021-01-26 |
Family
ID=66456515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910153726.1A Active CN109765427B (en) | 2019-03-01 | 2019-03-01 | High-precision phase difference measuring method and circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109765427B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007274659A (en) * | 2006-03-31 | 2007-10-18 | Key Stream Kk | Radar interference wave detection circuit |
CN101871971A (en) * | 2010-02-24 | 2010-10-27 | 浙江大学宁波理工学院 | Method for measuring frequency-phase characteristic of electrical network |
CN201637778U (en) * | 2010-04-16 | 2010-11-17 | 浙江容大电力设备制造有限公司 | Power factor sampling and compensating device |
CN201673623U (en) * | 2010-05-05 | 2010-12-15 | 刘刚 | Voltage phasor measuring apparatus |
CN205405090U (en) * | 2016-03-18 | 2016-07-27 | 山东交通学院 | Pulse time interval measuring circuit based on integrated phase detection discriminator |
CN109100928A (en) * | 2018-09-05 | 2018-12-28 | 山东交通学院 | A kind of high-precision pulse time interval measurement method and circuit |
-
2019
- 2019-03-01 CN CN201910153726.1A patent/CN109765427B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007274659A (en) * | 2006-03-31 | 2007-10-18 | Key Stream Kk | Radar interference wave detection circuit |
CN101871971A (en) * | 2010-02-24 | 2010-10-27 | 浙江大学宁波理工学院 | Method for measuring frequency-phase characteristic of electrical network |
CN201637778U (en) * | 2010-04-16 | 2010-11-17 | 浙江容大电力设备制造有限公司 | Power factor sampling and compensating device |
CN201673623U (en) * | 2010-05-05 | 2010-12-15 | 刘刚 | Voltage phasor measuring apparatus |
CN205405090U (en) * | 2016-03-18 | 2016-07-27 | 山东交通学院 | Pulse time interval measuring circuit based on integrated phase detection discriminator |
CN109100928A (en) * | 2018-09-05 | 2018-12-28 | 山东交通学院 | A kind of high-precision pulse time interval measurement method and circuit |
Also Published As
Publication number | Publication date |
---|---|
CN109765427B (en) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202305673U (en) | Alternating current (AC) impedance testing device suitable for fuel cells | |
CN202421479U (en) | Multi-parameter test device | |
CN109116111A (en) | A kind of high-precision phase position difference measurements method and circuit | |
CN105842537B (en) | Method for measuring phase difference based on integrated phase detection discriminator and circuit | |
CN101231310A (en) | Voltage measurement instrument and method having improved automatic mode operation | |
CN101201365A (en) | System and method for measuring and analyzing voltage frequency | |
CN107643445B (en) | Amplitude measurement method and system based on high-speed comparator and RC integral circuit | |
CN109001665A (en) | A kind of calibration equipment suitable for charging equipment direct current energy | |
CN106646334B (en) | Method and system for calculating metering error of electric energy meter | |
CN102243263A (en) | Alternating current value detection and current zero crossing point detection circuit | |
CN201749316U (en) | Intelligent electric energy meter clock multi-function quick tester | |
CN201780305U (en) | High-speed motor speed measuring circuit | |
CN202757999U (en) | Frequency and phase position detector for AC power supply | |
CN108020727A (en) | A kind of capacitance-voltage conversion circuit | |
CN203772944U (en) | True effective value AC/DC voltage measuring device capable of automatically identifying type of signal | |
CN110514912A (en) | A kind of secondary voltage kernel phase system | |
CN109100928A (en) | A kind of high-precision pulse time interval measurement method and circuit | |
CN106124909A (en) | A kind of electric energy detection metering system | |
CN109656122A (en) | High-precision pulse time interval measurement method and circuit based on phase detection discriminator and RMS conversion device | |
CN107831358A (en) | A kind of current measurement device based on MAX4373HEUA | |
CN109765427A (en) | High-precision phase position difference measurements method and circuit based on phase detection discriminator and RMS conversion device | |
CN205384320U (en) | Photoelectric detection means | |
CN101329215A (en) | Output measuring circuit and measuring method of capacitance differential pressure transducer | |
CN210775646U (en) | Load test system | |
CN206725649U (en) | A kind of measurement apparatus of power factor |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |