Phase-locked loop phase difference adjusting device
Technical field
The present invention relates to the signal processing technology in communication, relate in particular to the device that phase-locked loop phase difference regulates.
Background technology
Phase-locked loop is widely used in broadcast communication, frequency synthesis, automatically controls and the technical field such as clock synchronous.By phase discriminator, loop filter and voltage controlled oscillator, formed.Phase discriminator is used for differentiating the phase difference between input signal Ui and output signal U o, and output error voltage Ud.Noise and Interference composition in Ud, by the loop filter filtering of low pass character, forms the control voltage U c of voltage controlled oscillator (VCO).The result that Uc acts on voltage controlled oscillator is output clock and the input clock constant phase difference that makes phase-locked loop, thereby loop is locked, is called into lock.In common phase-locked loop, while entering to lock, the phase difference of input clock and output clock is uncontrollable at every turn, enters the rear phase difference of lock and remains unchanged.
Phase difference size between phase-locked loop input clock and output clock is an important technology index of phase-locked loop.Under current technology, the phase difference between common phase-locked loop input, output is larger, far can not meet the phase difference requirement in practical application.In addition, at present common phase-locked loop only just can start phase place adjustment in the situation that of losing lock, in losing lock situation, can not dynamically not adjust, and for the product of a lot of use phase-locked loops, losing lock can affect the normal operation of product, is unacceptable.This has directly affected the application in the field that phase-locked loop has relatively high expectations in numerous synchronisms.
Summary of the invention
The object of this invention is to provide a kind of phase-locked loop phase difference adjusting device, be used in conjunction with existing phase-locked loop, can not adjust the phase difference between input, output clock losing lock in the situation that at phase-locked loop, can, by adjusting offset in 80ps, improve synchronism.
In order to solve the problems of the technologies described above, the present invention has adopted following technological means: a kind of phase-locked loop phase difference adjusting device, comprise phase difference detection module, phase-locked loop input clock and output clock are connected to the input of phase difference detection module, for detection of the phase difference of described input clock and output clock;
Data processing module, connects described phase difference detection module, and detected described phase data is converted in proportion and exports data DAC_data;
D/A converter module, connects described data processing module, and using described DAC_data as input data, is converted to output current, as the input of described cycle of phase-locked loop filter.
Further, described phase difference detection module forms a carry chain by n parallel data output channel, and n is natural number.
Further, described each circuit-switched data output channel comprises a carry multiplexer MUXCY and a d type flip flop.
Further, the span of described n is: n>=1/f
1* Δ t, wherein f
1for the frequency of the output clock of phase-locked loop, the time delay between the input and output that Δ t is MUXCY.
The present invention is owing to adopting the above technical scheme, and the phase-locked loop that described phase-locked loop phase difference adjusting device can be different with form is used in conjunction with, and does not need to change the framework of original phase-locked loop; And this device can not losing lock in the situation that, dynamically adjust the phase place between phase-locked loop input clock and output clock at phase-locked loop, effectively prevent the appearance of phase-locked loop losing lock situation, and effectively improve the synchronism between phase-locked loop input clock and output clock.
Accompanying drawing explanation
Phase-locked loop phase difference adjusting device of the present invention is provided in detail by following embodiment and accompanying drawing.
Fig. 1 is the system construction drawing of embodiment of the present invention phase-locked loop phase difference adjusting device and phase-locked loop;
Fig. 2 is embodiment of the present invention phase-locked loop phase difference adjusting device structural representation;
Phase detecting module structural representation in Fig. 3 embodiment of the present invention.
Embodiment
Below will be described in further detail phase-locked loop phase difference adjusting device of the present invention.
As shown in Figure 1, phase-locked loop 10 and phase-locked loop phase difference adjusting device 20 have been comprised.
Phase-locked loop 10 has also comprised phase discriminator 11, loop filter 12, voltage controlled oscillator 13, and frequency divider 14.Phase discriminator 11 is used for differentiating the phase difference between input signal and output signal, and output error voltage.Noise and Interference composition in error voltage, by loop filter 12 filterings, forms the control voltage of voltage controlled oscillator 13.Controlling the result that voltage acts on voltage controlled oscillator 13 is that its output clock is pulled to loop filter 12 input clocks by frequency divider 14, and when the two phase difference is fixedly time, loop is locked, is called into lock.
As shown in Figure 2 a, described phase difference adjusting device 20 also comprises phase difference detection module 21, phase-locked loop 10 input clock Tin and output clock Tout are connected to the input of phase difference detection module 21, for detection of the phase difference of described input clock Tin and output clock Tout.
As shown in Figure 3, in described phase difference detection module 21, the Tin of the Tout using the frequency of the output clock of described phase-locked loop 10 as described phase difference detection module 21 using the frequency of the input clock of described phase-locked loop 10 as described phase difference detection module 21; Described phase difference detection module 21 is comprised of n data output channel Dn arranged side by side, and described data output channel Dn comprises that carry multiplexer MUXCY and a d type flip flop form.Described phase difference detection module 21 removes to gather n the signal C[1 of Tin after 1 to n multiplexer time delay at the rising edge of Tout]~C[n], obtain n position phase data D[1] and~D[n].Wherein n is natural number, and its span is: n>=1/f
1* Δ t, f
1for the frequency of the output clock of phase-locked loop, the time delay between the input and output that Δ t is MUXCY.Tout is very little to the cabling time delay of each d type flip flop, is approximately 0ps, and Tin is Δ t*n to the time delay of n MUXCY.As D[m-1]=1 and D[m]=0 time, can judge the rising edge that has collected Tin with the rising edge of Tout, the rising edge that can calculate thus Tout lags behind the rising edge m* Δ t of Tin, m* Δ t is exactly phase difference.The Δ t of MUXCY in main flow FPGA (Field-Programmable Gate Array, i.e. field programmable gate array) is less than 40ps at present, and last Tout and Tin phase difference detection precision are 2* Δ t, and phase difference can be adjusted in 80ps.
Data processing module 22, connects described phase difference detection module 21, and detected described phase difference m* Δ t is converted in proportion and exports data DAC_data; Described ratio is determined by the parameter of DAC (digital to analog converter) and described voltage controlled oscillator 13.
D/A converter module 23, connects described data processing module 22, and using described DAC_data as input signal, is converted to output current Iout, as the input of described cycle of phase-locked loop filter.
As shown in Figure 2 b, in different embodiment, D/A converter module 23 can be converted to input signal output voltage U out according to actual needs, in described D/A converter module 23, connect again a voltage/current conversion circuit 24, output current Iout, as the input of described cycle of phase-locked loop filter.
In the present invention, phase-locked loop phase difference adjusting device 20 can, by being connected to upper type on described phase-locked loop 10, therefore, not need to change or destroy the framework of original phase-locked loop; On the other hand, by phase-locked loop phase difference adjusting device 20, dynamically adjust phase difference, realized better synchronous.
Owing to these are only preferred embodiment of the present invention; protection scope of the present invention should not be so limited; be that every simple equivalence of doing according to claims of the present invention and description of the present invention changes and modifies, all should still remain within the scope of the patent.