Summary of the invention
The present invention proposes the method for a kind of fractional frequency-division phase-locked loop circuit and direct current frequency modulation, to solve the problem that phase locked state can not carry out the modulation of low modulation rate signal frequency.
Technical scheme of the present invention is achieved in that
A kind of fractional frequency-division phase-locked loop circuit comprises: reference clock, phase discriminator, integrator, voltage controlled oscillator, prescalar and sigma-delta decimal frequency divider; The output signal of voltage controlled oscillator, one the tunnel directly exports, another route prescalar and sigma-delta decimal frequency divider are realized frequency division, phase discriminator after to frequency division signal and the reference signal of reference clock output carry out phase demodulation, integrator carries out integral filtering to the phase demodulation error signal of phase discriminator output, generate the voltage controlled oscillator tuning error controling signal, the output signal of control voltage controlled oscillator also is locked on the reference clock frequency it.
Alternatively, described sigma-delta decimal frequency divider is the FPGA circuit.
Alternatively, also comprise analog to digital converter and gain, biasing control module, gained by gain, biasing control module control modulation signal, and realize analog-to-digital conversion through analog to digital converter, export 16 position digital signals to described sigma-delta decimal frequency divider.
Alternatively, described gain, biasing control module are 12 figure place weighted-voltage D/A converters.
Alternatively, described sigma-delta decimal frequency divider also comprises register, stores 118 fractional frequency division ratios.
The present invention also provides a kind of and has carried out the method for direct current frequency modulation by above-mentioned fractional frequency-division phase-locked loop circuit, may further comprise the steps:
Step 1, be that benchmark carries out parameter and regulates with the maximum modulation frequency deviation, the modulation signal amplitude of input is the 2V peak-to-peak value, and this input signal amplitude immobilizes in the whole modulated process, modulation signal gain control digital to analog converter is put number, output signal is loaded on the relevant position of register by 16 position datawires through 16 analog to digital converter conversion backs, observe frequency modulation deviation with receiver, and regulate the number of putting that described 16 position datawires are loaded into the position of described register or gain control digital to analog converter according to frequency modulation deviation;
Step 2, gain control digital to analog converter during according to described maximum modulation frequency deviation put the relevant position that number and described 16 position datawires are carried in described register, other frequency modulation deviation parameters are regulated, calculate the position that number and described 16 position datawires are carried in described register of putting of the gain corresponding with this frequency modulation deviation control digital to analog converter.
The invention has the beneficial effects as follows: realized the direct current frequency modulation of phase locked state, the modulation accuracy height, modulation distortion is little, debugging is convenient, and frequency modulation can superfine stepping change, control accurately continuously.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 3, fractional frequency-division phase-locked loop circuit according to the present invention comprises: reference clock 60, phase discriminator 40, integrator 30, voltage controlled oscillator 20, prescalar 80 and sigma-delta decimal frequency divider 90.
According to an embodiment of fractional frequency-division phase-locked loop circuit of the present invention, the frequency of voltage controlled oscillator 20 is 500MHz ~ 1000MHz, and the reference signal of reference clock 60 is 5MHz.During work, voltage controlled oscillator 20 produces 500MHz ~ 1000MHz signal, one the tunnel directly exports, another routing variable mould prescalar 80 and sigma-delta decimal frequency divider 90 are realized the N.F frequency division, signal and 5MHz reference signal behind 40 pairs of frequency divisions of phase discriminator are carried out phase demodulation, the phase demodulation error signal of 30 pairs of phase discriminators of integrator, 40 outputs is carried out integral filtering, generates the voltage controlled oscillator tuning error controling signal, and the output of control voltage controlled oscillator 20 also is locked on the 5MHz reference clock frequency it.For example the fractional frequency division ratio is 120, and then voltage controlled oscillator 20 output frequencies multiply by reference clock, i.e. 120*5MHz=600MHz for the fractional frequency division ratio.
The N.F frequency division adopts the pure digi-tal design, and all circuit of sigma-delta decimal frequency divider all are integrated in a slice FPGA the inside.Datain is that fractional frequency division send the number end than N.F, and the fractional frequency division among reception Fig. 3 is than N.F signal 120; CLK0 is the decimal frequency divider work clock, receives the reference signal of reference clock 60; Fin is input signal, receives the output signal of prescalar 80; Fout is the output signal behind the frequency division, carries out phase demodulation with the 5MHz reference signal; Not shown among MC1, MC2, SC1(Fig. 3) be the pattern control line of multimode prescalar 80, FMOD[15..0] be through 16 position digital signals after the analog to digital converter ADC 110 modulation signal A/D conversion.
Before sending the fractional frequency division ratio, earlier fractional frequency division select lines strobe is dragged down, when point is worked frequently, by Datain port serial input fractional frequency division ratio, the fractional frequency division ratio has 118, first is-symbol position, next 10 is integer-bit, be 48 decimal place then, this 59 bit data is placed on register qh[58..0] in, other purposes made in addition for last 59, be placed on register ql[58..0] in, the fractional frequency division ratio send and counts up to when finishing, and strobe is drawn high, and fractional frequency division is started working.
When carrying out direct current frequency modulation, direct current frequency modulation Enable Pin is drawn high, modulation signal through the data after the A/D conversion through 16 position datawire FMOD[15..0] with register qh[58..0] certain 16 bit data (for example qh[15..0]) addition, because modulation signal is periodic, so FMOD[15..0] also be periodic variation, causing the fractional frequency division ratio that same periodic the variation also taken place, is frequency modulation(FM) thereby make voltage controlled oscillator 20 output signals that same cycle variation also take place.Because modulation signal is to enter loop from phase discriminator 40, loop is low-pass characteristic under the phase locked state, so this modulation signal can be modulated on voltage controlled oscillator 20 output signals by loop and forms FM signal.
Through the data FMOD[15..0 after the ADC 110 modulation signal A/D conversion] directly be added in fractional frequency division than register qh[58..0] go up and produce frequency modulation, so frequency modulation deviation (i.e. the scope of modulation back FM signal offset carrier) mainly with FMOD[15..0] size variation and be added in register qh[58..0] the position relevant.Frequency modulation deviation as shown in Figure 4 and fractional frequency division are than register qh[58..0] the figure place relation, qh[48] be the integer frequency ratio lowest order, a reference frequency frequency modulation deviation; Qh[48] be 1/2 reference frequency frequency modulation deviation; Qh[0] be 1/2
48Individual reference frequency frequency modulation deviation.
Fractional frequency division is than register qh[58..0] in the 1st qh[58] be sign bit, ensuing 10 qh[57..48] be integer-bit, so qh[48] be the minimum integer-bit of fractional frequency division ratio, if reference frequency is 5MHz, qh[48 so] change to 1 from 0 and will cause voltage controlled oscillator 20 frequency change 5MHz, qh[47] change to 1 from 0 and will cause voltage controlled oscillator 20 frequency change 2.5MHz, rule successively, qh[0] change to 1 from 0 and will cause that voltage controlled oscillator 20 frequency change are 1/2
48* therefore 5MHz passes through FMOD[15..0] be added in qh[58..0] the position can accurately regulate frequency modulation.Owing to be added in qh[58..0] on FMOD[15..0] move forward and backward one, frequency modulation deviation changes 2 times or 1/2, frequency modulation deviation can not change continuously, be head it off, special gain, the biasing control module 100 of before ADC 110, having increased, for example by the gain of one 12 DAC control modulation signal, then modulation signal can 1/4096 ~ 4095/4096 change in gain, so modulation signal gain control and FMOD[15..0] be added in register qh[58..0] change in location combines and just realized the accurate continuous control of frequency modulation deviation.
The direct current frequency modulation method embodiment according to the present invention, fractional frequency-division phase-locked loop reference clock 5MHz, signal output 500MHz ~ 1000MHz, frequency modulation deviation DC ~ 8MHz, as shown in Figure 5, the specific implementation step is as follows:
Step 1 is benchmark with maximum 8MHz frequency modulation, carries out each parameter and regulates.The modulation signal amplitude of input is the 2V peak-to-peak value, and this input signal amplitude immobilizes in the whole modulated process, modulation signal gain control digital to analog converter DAC is 12 DAC, put several 1500, therefore this moment, gain was 1500/4095, this signal through 16 A/D conversion after through FMOD[15..0] be added in register qh[48..33] on, observe the frequency modulation deviation of this moment with receiver, if less than 4MHz, but greater than 2MHz, then with FMOD[15..0] move forward one, be added in qh[49..34] on, at this moment frequency modulation deviation can enlarge 1 times, greater than 4MHz but less than 8MHz; If frequency modulation deviation is less than 2MHz, but greater than 1MHz, then with FMOD[15..0] two of reaches, be added in qh[50..35] on, and the like.If greater than 8MHz, but less than 16MHz, then with FMOD[15..0] after move one, be added in register qh[48..33] on, frequency modulation deviation will be dwindled 1 times.According to said method, frequency modulation deviation is transferred between 4MHz ~ 8MHz, for example this moment, frequency deviation was 6MHz, at this moment just can regulate the value of gain control DAC, because this moment, the value of DAC was 1500, up and down regulating has 1 times surplus, therefore can guarantee the frequency deviation of this moment is adjusted to 8MHz.For example, gain DAC is transferred at 2000 o'clock, and frequency modulation deviation is 8MHz, this moment FMOD[15..0] be added in register qh[48..33] on.
Step 2, other frequency modulation deviation parameters gain DAC and the FMOD[15..0 during with the 8MHz frequency deviation] be added in register qh[48..33] the position regulate.For example, frequency modulation deviation 5MHz is set, this moment FMOD[15..0] be added in register qh[48..33] and on remain unchanged, gain DAC is set to 5MHz/8MHz*2000=1250, the frequency modulation deviation that modulate out this moment is 5MHz.When frequency modulation deviation arranges and to change from 8MHz toward 4MHz, FMOD[15..0] be added in register qh[48..33] on remain unchanged, the numerical value that only needs gain DAC changes toward 1000 from 2000 and gets final product.When frequency modulation deviation is set to 4MHz, this moment FMOD[15..0] after move one, be added in register qh[47..32] on, the value of DAC of gaining this moment reverts to 2000.Therefore when the frequency modulation deviation setting changes from 4MHz toward 2MHz, FMOD[15..0] be added in register qh[47..32] on remain unchanged, only need the numerical value of gain DAC to get final product from 2000 toward 1000 variations.When frequency modulation deviation is set to 2MHz, this moment FMOD[15..0] move one after again, be added in register qh[46..31] on, the value of the DAC that gains this moment reverts to 2000.And the like, as long as value and the FMOD[15..0 of the gain DAC when determining maximum frequency deviation 8MHz] be added in fractional frequency division than register qh[58..0] the position, just can regulate value and the FMOD[15..0 of gain DAC according to the frequency modulation deviation that arranges] be added in fractional frequency division than register qh[58..0] the position, accurately realize the frequency modulation of DC ~ 8MHz.
The present invention has realized the direct current frequency modulation of phase locked state, and the modulation accuracy height, modulation distortion is little, debugging is convenient, and frequency modulation can superfine stepping change, control accurately continuously.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.