The content of the invention
(1) technical problem to be solved
In consideration of it, being carried out to integrated adjustable clock using radio frequency reception path it is a primary object of the present invention to provide one kind
The method of calibration, to reduce its frequency departure, makes it possible to carry out the communication of high speed.
(2) technical scheme
To reach above-mentioned purpose, integrated adjustable clock is calibrated using radio frequency reception path the invention provides one kind
Method, the method includes:
Step 1:Simple signal to receiving carries out low noise amplification;
Step 2:The signal that integrated clock is produced by frequency synthesizer, the signal for obtaining with carry out low noise amplification after
Simple signal be mixed, obtain the error signal of middle low frequency;
Step 3:LPF is carried out to the error signal that mixing is produced;
Step 4:The middle low frequency signal that LPF is produced is converted into data signal, carrying out frequency dividing to data signal goes forward side by side
Line frequency estimation error;
Step 5:The frequency of integrated adjustable clock is adjusted the result estimated using frequency error until frequency error
Reach in the scope specified.
In such scheme, before carrying out low noise amplification to the simple signal for receiving described in step 1, also include:Hair
Sending end first sends out the simple signal of a period of time before transmitting data, and receiving terminal enters row clock using the simple signal for receiving
The calibration of frequency.
In such scheme, the integrated clock described in step 2 is the clock of frequency-adjustable, you can its frequency is adjusted
It is whole.
In such scheme, LPF is carried out to the error signal that mixing is produced described in step 3, the low pass filtered for being used
The bandwidth of ripple device is not less than the absolute value of frequency error, to ensure simple signal by being not filtered out after LPF.
Carry out to data signal frequency dividing in such scheme, described in step 4 to go forward side by side line frequency estimation error, wherein entering line frequency
The method of rate estimation error is to be counted the frequency error signal that LPF is produced within a certain period of time as clock, and
And comparing the size of count value, count value is smaller to show that frequency error is smaller.
In such scheme, the frequency described in step 5 to integrated adjustable clock is adjusted, and the method for using is a kind of base
In the two-value search method for comparing.
It is described based on the two-value search method for comparing in such scheme, it is to be compared to by the result to counting twice
Determine the direction of frequency adjustment.
(3) beneficial effect
The method calibrated to integrated adjustable clock using radio frequency reception path that the present invention is provided, using what is received
Simple signal can be calibrated, with advantages below:
(1) due to the method using search iteration, the direction that frequency is adjusted is determined by the result of comparison search window, because
This present invention is to insensitive for noise;
(2) method due to gradually being halved using search window, therefore characteristic of the present invention with Fast Convergent;
(3) present invention can make full use of existing receiving path in receiver, it is only necessary to increase a small amount of control logic, because
The characteristics of this has expense low.
(4) using the present invention, the precision of integrated adjustable clock can be improved, reduces the clock jitter of transmitting-receiving side, overcome collection
Into the shortcoming that clock signal generators frequency error is larger, it is allowed to meet the demand of high speed communication.
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with specific embodiment, and reference
Accompanying drawing, the present invention is described in more detail.
As shown in figure 1, Fig. 1 is the side calibrated to integrated adjustable clock using radio frequency reception path that the present invention is provided
Method flow chart, the method includes the steps of:
Step 1:Simple signal to receiving carries out low noise amplification;
Step 2:The signal that integrated clock is produced by frequency synthesizer, the signal for obtaining with carry out low noise amplification after
Simple signal be mixed, obtain the error signal of middle low frequency;
Step 3:LPF is carried out to the error signal that mixing is produced;
Step 4:The middle low frequency signal that LPF is produced is converted into data signal, carrying out frequency dividing to data signal goes forward side by side
Line frequency estimation error;
Step 5:The frequency of integrated adjustable clock is adjusted the result estimated using frequency error until frequency error
Reach in the scope specified.
Wherein, before carrying out low noise amplification to the simple signal for receiving described in step 1, also include:Transmitting terminal exists
The simple signal of a period of time is first sent out before sending data, receiving terminal carries out clock frequency using the simple signal for receiving
Calibration.In addition, the simple signal to receiving carries out low noise amplification, make when the low-noise amplifier for being used is with normal work
Low-noise amplifier is identical, without any particular/special requirement.
Integrated clock described in step 2 is the clock of frequency-adjustable, you can its frequency is adjusted.The clock passes through
The signal produced after frequency synthesizer is used for being mixed with the simple signal for receiving, and the result of mixing is error signal, should
Error signal is the signal of middle low frequency.
LPF is carried out to the error signal that mixing is produced described in step 3, the bandwidth of the low pass filter for being used
Not less than the absolute value of frequency error, to ensure simple signal by being not filtered out after LPF.
The middle low frequency signal that LPF is produced is converted into data signal described in step 4, it is possible to use Schmitt is touched
Signal after LPF is converted to data signal by hair device, and the method for carrying out frequency error estimation is to produce LPF
Frequency error signal is counted within a certain period of time as clock, and compares the size of count value, final count value it is big
The small size for indicating frequency departure, count value is smaller to show that frequency error is smaller.
Frequency described in step 5 to integrated adjustable clock is adjusted, and the method for using is for a kind of based on compare two
Value search method.The method does not rely on the absolute size of step 4 count value, but compares by the result for counting twice
Relatively come determine frequency adjustment direction, which reduce the influence that noise is estimated frequency error, it is ensured that searching algorithm it is steady
It is qualitative.Additionally, described, based on the two-value search method for comparing, the search window of initial frequency error is possible maximum, it
The search window of each frequency error all halves afterwards, so both ensure that the scope of frequency search, causes that searching algorithm can be with again
Fast Convergent.
Integrated adjustable clock is calibrated using radio frequency reception path to what the present invention was provided below in conjunction with Fig. 2 to Fig. 4
Method be described in detail.In order to describe conveniently, the frequency of the simple signal received in note Fig. 2 is fREF, the signal be by
Frequency is f0Clock signal obtain by frequency synthesis, and meet:
fREF=f0·NSYN (1)
Wherein, NSYNIt is the multiplier parameter of frequency synthesizer.
The frequency of the clock signal that note receiving terminal is produced by integrated adjustable clock is fDCO, and meet:
fDCO=f0·(1+ε) (2)
Wherein, ε is fDCORelative to f0Deviation factor.
The frequency of the signal that note receiving terminal frequency mixer is produced is fSYN, and meet:
fSYN=fDCO·NSYN (3)
Overall work process can be expressed as follows:
After the signal for receiving is by low-noise amplifier (101), frequency mixer (201) and low pass filter (301), institute
The frequency of the middle low frequency signal for producing is fIF', and meet:
fI'F=f0·NSYN·ε (4)
The bandwidth BW of low pass filter (301)LPFF should be not less thanIF'.The signal is carried out by Schmidt trigger (401)
Digitlization, and carry out NSYNAfter frequency dividing (402) again, frequency is changed into fIF, and meet:
fIF=f0·ε (5)
From formula (4), fIFSize characterize the size of frequency departure ε.
Method of estimation to frequency departure ε is as shown in Figure 3:Counted using two counters, its Counter A
(404) clock is integrated adjustable clock, and frequency is fDCO, the clock of counter B (403) is LPF, digitlization and frequency dividing
Signal afterwards, frequency is fIF.The N in terms of counter ACNTThe time T of numberACCTo count total time, compare the count value of counter B
Size NIFJust can determine whether the trend of frequency departure ε changes.Although fDCOAdjustment of the size with control logic (501) to it exist
Real-time change, but as long as meeting ε<<1, the conclusion is still set up.This be due to:
Enter the line frequency strategy that uses of adjustment to integrated adjustable clock (601) for based on the two-value searching algorithm for comparing, such as
Shown in Fig. 4, each search window is respectively f comprising 3 frequency valuesL,n, fM,nAnd fH,n, the result of frequency offset estimation is respectively
NL,n, NM,nAnd NH,n.Specifically search procedure is:
(1) with the original frequency f of systemDCOAs fM,1, the result of the frequency offset estimation for obtaining is NM,1;
(2) respectively with fDCO(1-εmax) and fDCO(1+εmax) as fL,1With fH,1, fL,1With fH,1Constitute the 1st search
Window S1, and the count results for obtaining are NL,1And NH,1;
(3) N is comparedL,1And NH,1, select the corresponding frequency of less count value and fM,1Constitute the 2nd search window S2, S2
The frequency range of covering is S11/2.If than NL,1<NH,1, then f is selectedL,1, and make fL,2=fL,1, fH,2=fM,1。
(4) f is madeM,2=(fL,2+fH,2)/2, and the Frequency Estimation result for obtaining is NM,2。
(5) N is comparedL,2And NH,2, select the corresponding frequency of less count value and fM,2Constitute the 3rd search window S3, S3
The frequency range of covering is S21/2.
(6) it is iterated in this way, until NL,2And NH,2Difference be less than a certain threshold value.Now, the mistake of system frequency
Difference converges to desired value f0(1+ε0)。
Due to entering not having to rely on absolute count value when line frequency is adjusted, come just with relative counting size
Direction and the scope of search are adjusted, therefore the method has preferable resistivity to noise and interference.Additionally, being searched by two-value
The method of rope accelerates the convergence rate of frequency adjustment.
Particular embodiments described above, has been carried out further in detail to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail bright, should be understood that and the foregoing is only specific embodiment of the invention, be not intended to limit the invention, it is all
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements done etc., should be included in guarantor of the invention
Within the scope of shield.