CN106911329A - A kind of single-phase phase-locked loop based on FPGA - Google Patents

A kind of single-phase phase-locked loop based on FPGA Download PDF

Info

Publication number
CN106911329A
CN106911329A CN201710098056.9A CN201710098056A CN106911329A CN 106911329 A CN106911329 A CN 106911329A CN 201710098056 A CN201710098056 A CN 201710098056A CN 106911329 A CN106911329 A CN 106911329A
Authority
CN
China
Prior art keywords
phase
signal
real
control system
sin
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
CN201710098056.9A
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.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd
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 State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201710098056.9A priority Critical patent/CN106911329A/en
Publication of CN106911329A publication Critical patent/CN106911329A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

A kind of single-phase phase-locked loop based on FPGA, the phase voltage of net side one in collection transmission system, it is v to makei(t), by vi(t) and control system inner synchronousing signal voT () is multiplied and is compared, and this signal is filtered, and filters the second harmonic component and noise of the output of multiplication phase discriminator, tries to achieve error voltage signal vdo(t);Then by error voltage signal vdoT () obtains v by PI regulationse(t), by veT () obtains Δ after a recursion is averaging filteringe(t), then use this ΔeT () calculates real-time frequency f, the frequency conversion for obtaining into the cycle, this periodic quantity is to be considered control system inner synchronousing signal periodic quantity, then this periodic quantity is carried out decile, moment per decile is all once exported to control system synchronizing signal, as real-time phase information sin θ.The present invention utilizes analog hardware principle of phase lock loop, realizes that program is simple, and stability is high, can also stablize under the operating mode for having harmonic wave to disturb and effectively run.

Description

A kind of single-phase phase-locked loop based on FPGA
Technical field
The present invention relates to a kind of single-phase phase-locked loop based on FPGA, belong to electric and electronic technical field.
Background technology
With the deep development of Power Electronic Technique, various power electronic equipments such as PWM rectifier, static reacance occur Device, uninterrupted power source, new energy power generation grid-connection device etc. are more widely applied.The performance of these devices is relied heavily on In the service behaviour of phaselocked loop.
The implementation of single-phase phase-locked loop is numerous, and regulation lock is equal to have zero passage to lock mutually and instantaneously.Zero passage phase-lock technique is simple, Detect input signal phase by capturing the zero crossing of input signal, because its governing speed is slower, when input signal interference compared with Greatly, lock is may result in when there is multiple zero crossings mutually to fail.The scheme that instantaneous regulation lock is mutually implemented is complicated, consumes multiprocessing Device resource.
The content of the invention
The purpose of the present invention is, in order to solve the problems, such as existing single-phase phase-locked loop, while considering harmonic wave in power network Problem, the present invention proposes a kind of single-phase phase-locked loop based on FPGA.
Realize the technical scheme is that, a kind of single-phase phase-locked loop based on FPGA, lock phase step it is as follows:
(1) the single-phase voltage signal v that will be collectedi(t) and control system inner synchronousing signal voT () is multiplied and is compared, And export an error voltage signal v for corresponding to two signal phase differencesd(t);
(2) according to the error voltage signal asked, error voltage signal is filtered, filters two in multiplication phase discriminator Order harmonic components and noise;
(3) the treated error voltage signal for obtaining is obtained into v by PI regulationse(t),
By veT () obtains Δ after a recursion is averaging filteringe(t), then use this ΔeT () calculates real-time frequency f, from And realize the locking at phase angle and draw real-time phase signal sin θ;
(4) Δ is usedeT () calculates real-time frequency f, so as to realize the locking at phase angle and draw real-time phase signal sin θ.
Collection voltages in the step (1) are as follows with the expression formula that control system inner synchronousing signal is multiplied:
Wherein:ViIt is the amplitude of input signal;ωiIt is input signal angular frequency;θiT () is input signal with its ωiIt is ginseng The instantaneous phase angle examined;VoIt is the amplitude of control system inner synchronousing signal;ωoIt is control system inner synchronousing signal angular frequency;It is the inherent frequency error of voltage controlled oscillator;K is the proportionality coefficient of multiplier.
It is described that error voltage signal is filtered, using recursion method is averaging to filter second harmonic, obtain vdo(t) =Vdsin[θ1(t)];Wherein,
The locking for realizing phase angle and the step of draw real-time phase signal sin θ it is as follows:
According to the Δ tried to achieveeT (), obtains real-time system electric voltage frequency;The frequency conversion that will be tried to achieve into the cycle, this periodic quantity It is considered control system inner synchronousing signal periodic quantity, then this periodic quantity is carried out 2nDecile, the moment per decile is all to control System synchronization signal processed is once exported, as real-time phase information sin θ;
F=Fclk/{2n*[Dpd+Δe(t)]};
F in formulaclkIt is the input clock frequency of FPGA system, Dpd is system constant.
The single-phase phase-locked loop includes sampling module, multiplication phase discriminator module, voltage differential signal filtration module, PI regulation moulds Block, error signal filtration module and computing module;Sampling module collection single-phase voltage signal vi(t), it is same with control system inside Step signal voT () is multiplied, after multiplication phase discriminator module is compared, output error voltage signal vd(t);Through voltage differential signal Filtration module is filtered to error voltage signal;Error voltage signal v after filtered treatmentdoT () is by PI adjustment modules Obtain ve(t);By veT () after the filtering of error signal filtration module by obtaining Δe(t);This Δ is used againeT () passes through computing module Real-time frequency f is calculated, so as to realize the locking at phase angle and draw real-time phase signal sin θ.
The beneficial effects of the invention are as follows the present invention is using analog hardware principle of phase lock loop single-phase lock phase of the design based on FPGA Ring, realizes that program is simple, and stability is high, can also stablize under the operating mode for having harmonic wave to disturb and effectively run.
Brief description of the drawings
Fig. 1 is the module frame chart of embodiment of the present invention phaselocked loop;
Fig. 2 is the visual programming logic diagram of embodiment of the present invention filtering;
Fig. 3 is the visual programming logic diagram of embodiment of the present invention PI regulations;
Fig. 4 is the visual logic block diagram that the embodiment of the present invention obtains real-time phase information.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.
As shown in figure 1, being a kind of single-phase phase-locked loop module frame chart based on FPGA of the present embodiment.This is realized in the present embodiment The main flow of inventive method is followed successively by:Acquisition system net survey any phase voltage, carry out signal comparing, voltage differential signal filtering, PI regulations, error signal filter, calculate real-time frequency and try to achieve real-time phase information;Comprise the following steps that:
Step 1, acquisition system net survey any phase voltage:
Setting program performs counter, often count down to Dpd+ ΔseT (), is just once sampled.
Step 2, signal compare:
(t)=Kvi(t)vo(t)=KVicos[ωot+θ1(t)]Vosin(ωot)
=KViVosin[2ωot+θ1(t)]+KViVosin[θ1(t)]
Step 3, voltage differential signal filtering:
As shown in Fig. 2 by vdT () is averaging method and is filtered treatment by recursion, filter second harmonic, obtains signal vdo(t)。
Step 4, PI regulations:
As shown in figure 3, proportion of utilization amplifier and integral element are to vdoT () signal carries out proportional integral regulation, missed Difference signal ve(t)。
Step 5, error signal filtering
Logical AND Fig. 2 block diagrams are the same, by signal veT () is filtered treatment, obtain Δe(t)。
Step 6, seek real-time frequency:
According to the Δ obtained after filteringeT (), calculates real-time frequency value f.
Step 7, try to achieve real-time phase information
As shown in figure 4, the frequency signal tried to achieve using step 6, the frequency conversion tried to achieve into the cycle, this periodic quantity is to recognize To be control system inner synchronousing signal periodic quantity, then this periodic quantity is carried out decile, the moment per decile is all to control system Synchronizing signal is once exported, as real-time phase information sin θ.

Claims (5)

1. a kind of single-phase phase-locked loop based on FPGA, it is characterised in that the lock phase step of the single-phase phase-locked loop is as follows:
(1) the single-phase voltage signal v that will be collectedi(t) and control system inner synchronousing signal voT () is multiplied and is compared, and defeated Go out an error voltage signal v for corresponding to two signal phase differencesd(t);
(2) according to the error voltage signal asked, error voltage signal is filtered, is filtered secondary humorous in multiplication phase discriminator Wave component and noise;
(3) the treated error voltage signal for obtaining is obtained into v by PI regulationse(t),
v e ( t ) = K p v d o ( t ) + K i ∫ 0 t v d o ( t ) d t ;
By veT () obtains Δ after a recursion is averaging filteringe(t), then use this ΔeT () calculates real-time frequency f, so that real Show the locking at phase angle and draw real-time phase signal sin θ;
(4) Δ is usedeT () calculates real-time frequency f, so as to realize the locking at phase angle and draw real-time phase signal sin θ.
2. a kind of single-phase phase-locked loop based on FPGA according to claim 1, it is characterised in that in the step (1) Collection voltages are as follows with the expression formula that control system inner synchronousing signal is multiplied:
v d ( t ) = Kv i ( t ) v o ( t ) = KV i cos [ ω o t + θ 1 ( t ) ] V o sin ( ω o t ) = 1 2 KV i V o sin [ 2 ω o t + θ 1 ( t ) ] + 1 2 KV i V o sin [ θ 1 ( t ) ]
θ 1 ( t ) = ( ω i - ω o ) t + θ 1 ( t ) = Δ ω o t + θ 1 ( t )
Wherein:ViIt is the amplitude of input signal;ωiIt is input signal angular frequency;θiT () is input signal with its ωiIt is reference Instantaneous phase angle;VoIt is the amplitude of control system inner synchronousing signal;ωoIt is control system inner synchronousing signal angular frequency; It is the inherent frequency error of voltage controlled oscillator;K is the proportionality coefficient of multiplier.
3. a kind of single-phase phase-locked loop based on FPGA according to claim 1, it is characterised in that described to believe error voltage Number it is filtered, is averaging method using recursion to filter second harmonic, obtains vdo(t)=Vdsin[θ1(t)];Wherein,
4. a kind of single-phase phase-locked loop based on FPGA according to claim 1, it is characterised in that the phase angle of realizing The step of locking and draw real-time phase signal sin θ is as follows:
According to the Δ tried to achieveeT (), obtains real-time system electric voltage frequency;Into the cycle, this periodic quantity is to recognize to the frequency conversion that will be tried to achieve To be control system inner synchronousing signal periodic quantity, then this periodic quantity is carried out 2nDecile, the moment per decile is all to control system System synchronizing signal is once exported, as real-time phase information sin θ;
F=Fclk/{2n*[Dpd+Δe(t)]};
F in formulaclkIt is the input clock frequency of FPGA system, Dpd is system constant.
5. a kind of single-phase phase-locked loop based on FPGA according to claim 1, it is characterised in that the single-phase phase-locked loop bag Include sampling module, multiplication phase discriminator module, voltage differential signal filtration module, PI adjustment modules, error signal filtration module and meter Calculate module;Sampling module collection single-phase voltage signal vi(t), with control system inner synchronousing signal voT () is multiplied, in multiplication mirror After phase device module is compared, output error voltage signal vd(t);Error voltage signal is entered through voltage differential signal filtration module Row filtering;Error voltage signal after filtered treatment obtains v by PI adjustment modulese(t);By veT () filters by error signal Δ is obtained after ripple module filterede(t);This Δ is used againeT () calculates real-time frequency f by computing module, so as to realize phase angle Lock and draw real-time phase signal sin θ.
CN201710098056.9A 2017-02-23 2017-02-23 A kind of single-phase phase-locked loop based on FPGA Pending CN106911329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710098056.9A CN106911329A (en) 2017-02-23 2017-02-23 A kind of single-phase phase-locked loop based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710098056.9A CN106911329A (en) 2017-02-23 2017-02-23 A kind of single-phase phase-locked loop based on FPGA

Publications (1)

Publication Number Publication Date
CN106911329A true CN106911329A (en) 2017-06-30

Family

ID=59208668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710098056.9A Pending CN106911329A (en) 2017-02-23 2017-02-23 A kind of single-phase phase-locked loop based on FPGA

Country Status (1)

Country Link
CN (1) CN106911329A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095296A (en) * 2013-02-05 2013-05-08 国电南瑞科技股份有限公司 Implementation method of novel software phase-locked loop used for signaling virtual channel (SVC) control system
CN103944403A (en) * 2014-05-09 2014-07-23 北京四方继保自动化股份有限公司 Dynamic voltage-sharing control method for power module of chained multi-level converter
CN103986458A (en) * 2014-04-16 2014-08-13 国家电网公司 Micro-grid single-phase grid-connection phase-locked loop control method based on repetition control
CN104410407A (en) * 2014-10-30 2015-03-11 苏州汇川技术有限公司 Adaptive digital phase-locked loop and phase locking method
CN106055000A (en) * 2016-06-08 2016-10-26 江苏现代电力科技股份有限公司 Intelligent integrated low-voltage powerless module high-precision phase locking method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095296A (en) * 2013-02-05 2013-05-08 国电南瑞科技股份有限公司 Implementation method of novel software phase-locked loop used for signaling virtual channel (SVC) control system
CN103986458A (en) * 2014-04-16 2014-08-13 国家电网公司 Micro-grid single-phase grid-connection phase-locked loop control method based on repetition control
CN103944403A (en) * 2014-05-09 2014-07-23 北京四方继保自动化股份有限公司 Dynamic voltage-sharing control method for power module of chained multi-level converter
CN104410407A (en) * 2014-10-30 2015-03-11 苏州汇川技术有限公司 Adaptive digital phase-locked loop and phase locking method
CN106055000A (en) * 2016-06-08 2016-10-26 江苏现代电力科技股份有限公司 Intelligent integrated low-voltage powerless module high-precision phase locking method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴波等: ""单相电力锁相环的改进和FPGA实现"", 《电力电子技术》 *
裴玉杰等: ""单相锁相环的FPGA实现及在SVC中的应用"", 《电气应用》 *

Similar Documents

Publication Publication Date Title
CN102045062B (en) Digital phase-locked loop based on Cordic algorithm
CN110557118B (en) Phase locking device and phase locking method
CN102904568B (en) Self-adaptive grid-tied converter single phase soft phase-locked loop
CN106953634A (en) A kind of FLL method based on double self-tuning Second Order Generalized Integrators
CN103399202B (en) The phase-lock technique of variable-ratio pump-storage generator control system
CN102401858A (en) Method for detecting fundamental component and harmonic component of voltage of power grid
CN107786201A (en) A kind of Second Order Generalized Integrator structure and Phase Locked Loop Synchronization method based on FLL
CN206259920U (en) One kind is based on double Second Order Generalized Integrator phaselocked loops
CN206149242U (en) Second order improper integral ware circuit and phase -locked loop
CN102628894B (en) Selective harmonic wave extracting method
CN107706929A (en) Adaptive phase locked loop method and system based on minimum variance filtering
CN104181374B (en) Method for detecting and separating positive and negative sequence components of grid voltage of three-phase neutral-line-free system
CN104811188A (en) Method of modifying dynamic performance of phase-locked loop on basis of sliding filter
CN105680851A (en) Clock data recovery system
CN103472302A (en) Method for using one-phase photovoltaic grid-connected inverter to detect network voltage phase
CN106872808A (en) A kind of three-phase voltage phase-lock-loop algorithm of phase sequence self-adaption
CN109510619A (en) Enhanced phaselocked loop for the detection of single-phase mains voltage synchronizing information
Liu et al. A new single-phase PLL based on discrete Fourier transform
CN108390394A (en) Eliminate the control method of gird-connected inverter-light current net oscillation
CN109560811A (en) A kind of enhanced phaselocked loop of three-phase
CN108809301A (en) A kind of three-phase software phlase locking system and its phase-lock technique based on sliding DFT filtering principle
CN105932671B (en) A kind of line voltage phase-lock technique and system
CN106911329A (en) A kind of single-phase phase-locked loop based on FPGA
CN103593573A (en) Fundamental wave positive sequence voltage extracting and phase locking method
Sun et al. An Improved $\alpha\beta $-EPLL Based on Active Disturbance Rejection Control for Complicated Power Grid Conditions

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170630