CN105634473A - Method and device for adjusting frequency of mobile terminal - Google Patents

Method and device for adjusting frequency of mobile terminal Download PDF

Info

Publication number
CN105634473A
CN105634473A CN201410620005.4A CN201410620005A CN105634473A CN 105634473 A CN105634473 A CN 105634473A CN 201410620005 A CN201410620005 A CN 201410620005A CN 105634473 A CN105634473 A CN 105634473A
Authority
CN
China
Prior art keywords
frequency
mobile terminal
control word
target frequency
target
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
Application number
CN201410620005.4A
Other languages
Chinese (zh)
Other versions
CN105634473B (en
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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore Technology 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 Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN201410620005.4A priority Critical patent/CN105634473B/en
Publication of CN105634473A publication Critical patent/CN105634473A/en
Application granted granted Critical
Publication of CN105634473B publication Critical patent/CN105634473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and device for adjusting the frequency of a mobile terminal. To solve the problem in the prior art that in a process of adopting a piecewise linear fitting method to determine a target frequency control word when a mobile terminal uses a digital compensation crystal oscillator as a clock source, a linear relation between frequency deviations and frequency control words is utilized to use a complicated iterative method to determine the target frequency control word, causing a drop in frequency adjustment execution efficiency, the method provided by the invention obtains target frequency directly according to current frequency and frequency deviation, then obtains the target frequency control word corresponding to the target frequency according to the slope of a linear section where the target frequency is and the target frequency, and mainly utilizes a linear relation between the target frequency and the target frequency control word to determine the target frequency control word, thereby simplifies operation for obtaining the target frequency control word, and improving frequency adjustment execution efficiency.

Description

The frequency adjusting method of mobile terminal and device
Technical field
The present invention relates to communication technical field, particularly to frequency adjusting method and the device of a kind of mobile terminal.
Background technology
The AFC (automatic frequency control) of mobile terminal is typically with adjusting the mode of clock source output frequency and realizes; Wherein, clock source is divided into TCXO (temperature compensating crystal oscillator) and DCXO (digital compensation crystal oscillator).
When mobile terminal carry out automatic frequency control adopt clock source be TCXO time, it is possible to there is better frequency stability and frequency-voltage linear degree, control relatively simple; But the deficiency existed is that TCXO price is of a relatively high; When using TCXO, in the radio frequency master chip of some terminal system, oscillating circuit is still in work, produces unnecessary power consumption; When using TCXO, some system needs extra analog-digital converter, considerably increases cost; Also some radio frequency master chip itself is provided that analog-digital converter, but the output being also necessary for analog-digital converter increases extra package pins, and one master chip of mobile terminal usually contains multiple pattern or frequency range at present, and pin resource is more limited. When mobile terminal carry out automatic frequency control to adopt clock source be DCXO time, less costly, it is only necessary to namely to can compensate for the non-linear of frequency-voltage by specific algorithm, preferably linear to reach. For the nonlinear compensation of DCXO, the method that Project Realization generally adopts sectional linear fitting. This scheme has certain error of fitting, but can be by the density of suitable segmentation and segmentation to reduce this error to reach the scope of demand in engineering.
When being DCXO for clock source, adopt the method for sectional linear fitting to determine in the process of target frequency control word, be that the alternative manner utilizing frequency departure complicated with the linear relationship use of frequency control word is to determine target frequency control word. Concrete, the principle of frequency adjustment is that mobile terminal is based on the current ongoing frequency control word C receiving signalcurr, by certain digital signal processing algorithm, calculate frequency deviation f, then calculate frequency control word offset �� C according to �� f, finally obtain target frequency control word Cnext, by target frequency control word CnextArrange in frequency device, to realize frequency adjustment.
In order to obtain target frequency control word C corresponding for �� fnext, it is necessary to according to ongoing frequency control word CcurrCalculate, and the most important obtains C exactlynextIt is in which linearity range, then calculates C at this linearity rangenext. The mode that prior art is taked is to use iterative method from ongoing frequency control word CcurrPlace linearity range starts gradually to calculate judgement.
For prior art, calculate target frequency control word CnextNeed to distinguish three kinds of situations:
1)CnextWith CcurrIt is in same linearity range;
2)CnextWith CcurrIt is in adjacent linearity range;
3)CnextWith CcurrSpan several linearity range.
To above 1) and 2) situation, prior art process all fairly simple, here mainly for situation 3) be analyzed.
For the sake of simplicity, it is assumed here that frequency deviation f becomes dull positively related relation with frequency control word. Refer to Fig. 1, it is mobile terminal carries out in prior art automatic frequency control the schematic diagram of the piecewise linear curve of generation during calibration; As it is shown in figure 1, (k0, k1, k2) and (C0, C1, C2) it is that mobile terminal carries out automatic frequency control calibration respectively, the frequency-voltage response of DCXO is divided into the linear function of some sections of Different Slope, selects the hop count of segmentation according to frequency accuracy requirement and the linearity, to generate piecewise linear curve l1, it is thus achieved that described piecewise linear curve l1The slope of each linearity range and each linear switching point corresponding to frequency control word; CcurrIt it is ongoing frequency control word; fcurrIt is ongoing frequency control word CcurrThe ongoing frequency determined; Cnext0,Cnext1Respectively according to slope k0, k1The frequency control word calculated; CnextIt it is the target frequency control word finally carrying out frequency adjustment; fnextIt is CnextCorresponding target frequency.
Please continue to refer to the content of Fig. 1, the calculating process of prior art is further understood from. First calculate according to present segment:
Cnext0=k0*��f+Ccurr(1)
Then C is comparednext0Peak frequency control word C with current linear section0Magnitude relationship, if Cnext0>C0, target frequency control word C is describednextWith ongoing frequency control word CcurrIt is not at same linearity range and (but now can not determine Cnext0It is exactly required Cnext, because Cnext0It it is the slope k according to present segment0Calculate, and have determined that CnextIt is not at this linearity range, so this calculating has only served the effect judging whether to be in this linearity range). Even and if Cnext0<C1, C can not be determinednextIt is at C1Linearity range, reason is because C equallynext0It it is the slope k according to present segment0Calculate, so also needing to C0The frequency deviation f of section0Deduct and obtain �� f afterwards1, then at C1Section uses k1Calculate Cnext1��
��f0=(C0�CCcurr)/k0(2)
��f1=�� f-�� f0(3)
Repeat this process, until using k on a certain sectioniThe frequency control word C that the sequence number of line segment (i represent) calculatesnexti<Ci, then Cnext=Cnexti��
Cnext1=k1*��f1+C0(4)
��f1'=(C1�CC0)/k1(5)
��f2=�� f1�C��f1��(6)
Cnexti=ki*��fi+Ci-1(7)
Situation as shown in Figure 1, CnextWith CcurrTwo linearity ranges are striden across, then need to calculate three secondary frequencies control word Cnext0, Cnext1, and final Cnext. Can be easy to extrapolate, if CnextWith CcurrHaving striden across N number of linearity range, then need (N+1) secondary calculating, each iterative computation all includes formula (1), (2), and (3) this three step calculates. Before in this (N+1) secondary calculating, n times calculate is not final required result, and the process every time calculated is also required to repeatedly computing. Can be seen that the computation complexity of this scheme is higher. If the linearity of DCXO is good not, in order to reduce the error of piecewise fitting, it is necessary to be divided into more linearity range, the span of every section is less, and in this case, the average computation complexity when carrying out AFC and adjusting every time can be higher.
To sum up content is known, in prior art, mobile terminal adopts the method for sectional linear fitting to determine in the process of target frequency control word when using digital compensation crystal oscillator as clock source, the alternative manner utilizing frequency departure complicated with the linear relationship use of frequency control word determines the process of target frequency control word, need to carry out complex interative computation, computing consumes the substantial amounts of time, becomes the principal element affecting execution efficiency. Therefore, seek a kind of can the simplified operation complexity method to improve execution efficiency, it has also become those skilled in the art's problem demanding prompt solution.
Summary of the invention
It is an object of the invention to provide the frequency adjusting method of a kind of mobile terminal and device, to solve to use mobile terminal in prior art to adopt the method for sectional linear fitting to determine in the process of target frequency control word when using digital compensation crystal oscillator as clock source, the alternative manner utilizing frequency departure complicated with the linear relationship use of frequency control word determines the process of target frequency control word, need to carry out complex interative computation, computing consumes the substantial amounts of time, causes the problem that execution efficiency declines.
For solving above-mentioned technical problem, the present invention provides the frequency adjusting method of a kind of mobile terminal, and described mobile terminal uses digital compensation crystal oscillator as clock source, and the frequency adjusting method of described mobile terminal comprises the following steps:
S1: mobile terminal is carried out automatic frequency and controls calibration and generate piecewise linear curve, to obtain frequency control word corresponding to the slope of each linearity range of described piecewise linear curve, each linear switching point and frequency;
S2: write original frequency control word to obtain the ongoing frequency receiving signal of mobile terminal according to described piecewise linear curve, and the reception signal acquisition frequency departure according to mobile terminal;
S3: control to adjust the size of thresholding by relatively described frequency departure and the automatic frequency preset, it is judged that current time is the need of carrying out frequency adjustment; If desired, then step S4 is performed; If need not, then do not carry out frequency adjustment;
S4: obtain target frequency according to described ongoing frequency and described frequency departure;
S5: the relatively size of frequency corresponding to each linear switching point in described target frequency and step S1, to determine the slope of described target frequency place linearity range;
S6: according to the slope of described target frequency place linearity range and described target frequency, it is thus achieved that the target frequency control word corresponding with described target frequency;
S7: utilize described digital compensation crystal oscillator to carry out frequency adjustment according to described target frequency control word.
Optionally, in the frequency adjusting method of described mobile terminal, in described step S4, described target frequency is equal to described ongoing frequency and described frequency departure sum.
Optionally, in the frequency adjusting method of described mobile terminal, described target frequency control word below equation obtains:
Cnext'=ki��*(fnext���Cfi��)+Ci';
Wherein, Cnext' for target frequency control word, fnext' for target frequency, ki' (i=0,1,2....) be described target frequency fnext' slope of place linearity range, i is the sequence number of linearity range, f in described piecewise linear curvei' frequency corresponding to the linear switching point between i-th linearity range and (i+1) individual linearity range, Ci' for frequency fi' corresponding to frequency control word.
Optionally, in the frequency adjusting method of described mobile terminal, perform in described step S3 process, if described frequency departure controls to adjust thresholding be more than or equal to described automatic frequency, then perform step S4; If described frequency departure controls to adjust thresholding less than described automatic frequency, then do not carry out frequency adjustment.
Optionally, in the frequency adjusting method of described mobile terminal, it is that the communication quality according to mobile terminal sets that described automatic frequency controls thresholding.
The present invention also provides for the frequency adjusting device of a kind of mobile terminal, and the frequency adjusting device of described mobile terminal includes:
Automatic frequency controls calibration module, controls calibration generate piecewise linear curve for mobile terminal carries out automatic frequency, to obtain frequency control word corresponding to the slope of each linearity range of described piecewise linear curve, each linear switching point and frequency;
Frequency setting module, for write frequency control word to obtain the frequency of mobile terminal according to described piecewise linear curve;
Frequency adjustment controls module, and the frequency departure receiving signal acquisition and default automatic frequency for comparing mobile terminal controls to adjust the size of thresholding, to judge that current time is the need of carrying out frequency adjustment; If desired, then frequency adjustment is carried out; If need not, then do not carry out frequency adjustment;
Frequency Adjustable calculation module, target frequency is obtained for the ongoing frequency according to mobile terminal when needing to carry out frequency and adjusting and described frequency departure, and according to the slope of described target frequency place linearity range and described target frequency, it is thus achieved that the target frequency control word corresponding with described target frequency.
Optionally, in the frequency adjusting device of described mobile terminal, described target frequency is equal to described ongoing frequency and described frequency departure sum.
Optionally, in the frequency adjusting device of described mobile terminal, described target frequency control word below equation obtains:
Cnext'=ki��*(fnext���Cfi��)+Ci';
Wherein, Cnext' for target frequency control word, fnext' for target frequency, ki' (i=0,1,2....) be described target frequency fnext' slope of place linearity range, i is the sequence number of linearity range, f in described piecewise linear curvei' frequency corresponding to the linear switching point between i-th linearity range and (i+1) individual linearity range, Ci' for frequency fi' corresponding to frequency control word.
Optionally, in the frequency adjusting device of described mobile terminal, control module in described frequency adjustment and judge that current time is the need of, when carrying out frequency adjustment, if described frequency departure controls to adjust thresholding be more than or equal to described automatic frequency, then carrying out frequency adjustment; If described frequency departure controls to adjust thresholding less than described automatic frequency, then do not carry out frequency adjustment.
Optionally, in the frequency adjusting device of described mobile terminal, described automatic frequency controls the communication quality that thresholding is mobile terminal and sets.
In the frequency adjusting method and device of mobile terminal provided by the present invention, the method of sectional linear fitting is adopted to determine in the process of target frequency control word when using digital compensation crystal oscillator as clock source for mobile terminal in prior art, utilize the frequency departure alternative manner with the linear relationship use complexity of frequency control word to determine target frequency control word, cause that frequency adjusts the problem that execution efficiency declines, the present invention directly obtains target frequency according to ongoing frequency and frequency departure, slope and described target frequency further according to described target frequency place linearity range, obtain the target frequency control word corresponding with described target frequency, it determines target frequency control word mainly by the linear relationship of target frequency Yu target frequency control word, simplify the computing obtaining target frequency control word, improve frequency and adjust execution efficiency.
Accompanying drawing explanation
Mobile terminal is carried out automatic frequency to control the schematic diagram of the piecewise linear curve of generation during calibration by Fig. 1 in prior art;
Fig. 2 is the flow chart of the frequency adjusting method of mobile terminal in one embodiment of the invention;
Mobile terminal is carried out automatic frequency to control the schematic diagram of the piecewise linear curve of generation during calibration by Fig. 3 in one embodiment of the invention;
When Fig. 4 is to there is calibration frequency error between actual curve and calibration curve in one embodiment of the invention, carry out schematic diagram when frequency adjusts;
Fig. 5 is the schematic diagram of the frequency adjusting device of mobile terminal in one embodiment of the invention.
Detailed description of the invention
It is described in further detail below in conjunction with the drawings and specific embodiments frequency adjusting method to the mobile terminal that the present invention proposes and device. According to the following describes and claims, advantages and features of the invention will be apparent from. It should be noted that, accompanying drawing all adopts the form simplified very much and all uses non-ratio accurately, only in order to convenience, the purpose aiding in illustrating the embodiment of the present invention lucidly.
Refer to Fig. 2, it is the flow chart of the frequency adjusting method of mobile terminal in one embodiment of the invention, as in figure 2 it is shown, the frequency adjusting method of described mobile terminal, described mobile terminal uses digital compensation crystal oscillator as clock source, comprises the following steps:
First, perform step S1, mobile terminal is carried out automatic frequency and controls calibration and generate piecewise linear curve, to obtain frequency control word corresponding to the slope of each linearity range of described piecewise linear curve, each linear switching point and frequency.
Refer to Fig. 3, it is mobile terminal carries out in one embodiment of the invention automatic frequency control the schematic diagram of the piecewise linear curve of generation during calibration. As it is shown on figure 3, piecewise linear curve l1' now having three linearity ranges, the slope of three linearity ranges is followed successively by k0����k1����k2'; Slope is k0' linearity range and slope be k1' linearity range between the frequency control word corresponding to linear switching point be C0', corresponding frequency is f0'; Slope is k1' linearity range and slope be k2' linearity range between the frequency control word corresponding to linear switching point be C1', corresponding frequency is f1'; Slope is k2' linearity range and next linearity range between the frequency control word corresponding to linear switching point be C2', corresponding frequency is f2'. To sum up content, the information needing storage in carrying out AFC calibration is the slope k of each linearity rangeiAnd linear switching point coordinate (f (i=0,1,2....)i��,Ci��)��
Then, performing step S2, write original frequency control word to obtain the ongoing frequency receiving signal of mobile terminal according to described piecewise linear curve, and the reception signal acquisition frequency deviation f ' according to mobile terminal.
Write original frequency control word, arranges the stage at original frequency, and original frequency control word is equivalent to ongoing frequency control word Ccurr'; Owing to there being corresponding linear relationship between frequency control word with frequency, therefore by ongoing frequency control word Ccurr' may determine that ongoing frequency fcurr', establish parameter basis for subsequent calculations target frequency.
Then, perform step S3, control to adjust the size of thresholding by relatively described frequency deviation f ' with the automatic frequency preset, it is judged that current time is the need of carrying out frequency adjustment; If desired, then step S4 is performed; If need not, then do not carry out frequency adjustment
Concrete, if described frequency deviation f ' controls to adjust thresholding f be more than or equal to described automatic frequencyg, then step S4 is performed; If described frequency deviation f ' controls to adjust thresholding less than described automatic frequency, then do not carry out frequency adjustment; Wherein, it is that the communication quality according to mobile terminal sets that described automatic frequency controls thresholding, also needs to consider the frequency that frequency adjusts, during setting while guaranteeing communication of mobile terminal quality, it is not necessary to altofrequency is to frequency adjustment, the loss used manpower and material resources sparingly.
Then, perform step S4, obtain target frequency according to described ongoing frequency and described frequency departure.
Currently known ongoing frequency fcurr' and frequency deviation f ', owing to frequency deviation f ' represents target frequency fnext' (target frequency fnext' represent the new frequency being actually needed setting) relative to ongoing frequency fcurr' offset difference, therefore described target frequency fnext' equal to described ongoing frequency and described frequency deviation f ' sum, namely
fnext'=fcurr��+��f��(1)
Then, step S5 is performed, relatively the size of frequency corresponding to each linear switching point in described target frequency and step S1, to determine the slope of described target frequency place linearity range.
Further, target frequency f is determined by step S4next' numerical value, next by target frequency fnext' from ongoing frequency fcurr' place present segment starts and the frequency f corresponding to each linear switching pointi' (i=0,1,2....) compare, it is possible to determine target frequency fnext' it is in which linearity range. For example, it is assumed that target frequency fnext' be in Fig. 3 position time, by target frequency fnext' successively with f0', f1', f2' compare, just draw target frequency fnext' to be in slope be k2' linearity range, due to target frequency fnext' and target frequency control word Cnext' between there is linear relationship, therefore now also illustrate target frequency control word Cnext' residing for linearity range be also slope be k2' linearity range.
Then, step S6 is performed, according to the slope of described target frequency place linearity range and described target frequency, it is thus achieved that the target frequency control word corresponding with described target frequency.
Further, described target frequency control word below equation obtains:
Cnext'=ki��*(fnext���Cfi��)+Ci��(2)
Cnext' for target frequency control word, fnext' for target frequency, ki' (i=0,1,2....) be described target frequency fnext' slope of place linearity range, i is the sequence number of linearity range, f in described piecewise linear curvei' frequency corresponding to the linear switching point between i-th linearity range and (i+1) individual linearity range, Ci' for frequency fi' corresponding to frequency control word.
In the present embodiment, please continue to refer to Fig. 3, step S5 have determined that target frequency fnext' to be in slope be k2' linearity range, therefore i=2, now target frequency control word
Cnext'=k2��*(fnext���Cf2��)+C2����
Then, step S7 is performed, according to described target frequency control word Cnext' utilize described digital compensation crystal oscillator to carry out frequency adjustment.
Assume that the method for sectional linear fitting exists error of fitting so that the frequency deviation f ' that mobile terminal calculates inherently exists certain error, causes the target frequency f that subsequent calculations obtainsnext' there is also certain error, finally determine that coordinate is (target frequency in piecewise linear curve, target frequency control word) corresponding to calibration frequency point there is also certain error, with regard to this Problems Existing, make a concrete analysis of and can adjust correct target frequency as early as possible based on the frequency adjusting method of the mobile terminal in the present invention, say, that use mobile terminal provided by the present invention frequency adjusting method can efficiently and accurately complete frequency adjustment.
Preferred embodiment, when Fig. 4 is to there is calibration frequency error between actual curve and calibration curve in one embodiment of the invention, carries out schematic diagram when frequency adjusts. As shown in Figure 4, the curve of solid line lines is the piecewise linear curve (i.e. actual curve) that there is error of fitting, and dashed lines is the piecewise linear curve (i.e. calibration curve) being absent from error of fitting.
For AFC calibrate after write original frequency control word, it is thus achieved that ongoing frequency fcurr', it is possible to it is very accurate not require, because this parameter is a relative reference value, actual frequency is directly relevant to frequency control word. For DCXO, it is assumed that the calibration storing frequencies of each linearity range (frequency corresponding to calibration curve or) and the deviation of actual frequency (frequency corresponding to actual curve) are ferri, because being linear relationship, so being equivalent to rectilinear translation ferri��Ccurr' represent ongoing frequency control word, it is in k0Section, corresponding actual frequency are fcurr', now calibration storing frequencies is fcurr" so
ferr0=fcurr��-fcurr��(3)
ferr0Represent k0The calibration frequency error of section, fcurr' it is believed that consistent with the ongoing frequency receiving signal of mobile terminal, it is assumed that the frequency departure receiving signal calculating of mobile terminal is �� f ', can carry out frequency adjustment, and adjusted value is �� f ', if target frequency is fnext', then
Fnext '=fcurr '+�� f ' (4)
It practice, accurately calibration frequency point not in figure 3 slope be k2' linearity range on, but be k at slope1' linearity range on, now calibration storing frequencies be fnext", it is assumed that k1' the calibration frequency error of section is ferr1��f0' it is k for slope0' and k1' linearity range between the frequency corresponding to linear switching point, if the calibration frequency error of two sections of linearity ranges is unequal, i.e. ferr0��ferr1, then illustrate that calibration curve is at f0' place is discontinuous.
Calculated calibration storing frequencies fnext1", then
ferr0=fnext1���Cfnext��(5)
fnext1" corresponding frequency control word is Cnext1', Cnext1' corresponding actual curve upper frequency is fnext1', then
ferr1=fnext1���Cfnext1��(6)
By formula (5) and (6), obtain the deviation of target frequency and actual frequency
��ferr=ferr1�Cferr0(7)
By formula (7) it will be seen that the actual deviation adjusting frequency and target frequency is the deviation of the calibration frequency error of linearity range residing for ongoing frequency and linearity range residing for target frequency. If the deviation of whole method of subsection simulation curve is consistent, i.e. �� ferr=0, then actual adjustment frequency fnext1' and target frequency fnext' equal.
If �� ferr�� 0, and �� ferrReach AFC and adjust thresholding, then carry out a secondary frequencies adjustment again.
Please continue to refer to Fig. 4, adjusting through first time frequency, the actual frequency that adjusts is fnext1', it is with target frequency fnext' deviation delta f1' it is:
��f1'=�� ferr=fnext��-fnext1��(8)
Through first time frequency adjustment, event frequency and target frequency are all in same linearity range. The frequency offset of second time frequency adjustment is �� f1', calculated calibration storing frequencies fnext2" it is
fnext2"=fnext1��+��f1��(9)
fnext2' corresponding frequency control word is Cnext2, Cnext2Corresponding actual frequency fnext2'. Because frequency is in same linearity range before and after second time frequency adjustment, then
��f1'=fnext2��-fnext1"=fnext2��-fnext1��(10)
Can be obtained by formula (8) and (10)
fnext'=fnext2��(11)
Inference can be drawn according to above procedure, if the calibration frequency error of whole sectional curve is identical, just can adjust target frequency through a secondary frequencies adjustment, if the calibration frequency error of different linearity range differs, then can also adjust target frequency through twice frequency adjustment.
Accordingly, the present embodiment additionally provides the frequency adjusting device of a kind of mobile terminal. Below with reference to Fig. 5, it is the schematic diagram of the frequency adjusting device of mobile terminal in one embodiment of the invention. As it is shown in figure 5, the frequency adjusting device of described mobile terminal includes:
Automatic frequency controls calibration module 10, controls calibration generate piecewise linear curve for mobile terminal carries out automatic frequency, to obtain frequency control word corresponding to the slope of each linearity range of described piecewise linear curve, each linear switching point and frequency; Frequency setting module 11, for write frequency control word to obtain the frequency of mobile terminal according to described piecewise linear curve; Frequency adjustment controls module 12, and the frequency departure receiving signal acquisition and default automatic frequency for comparing mobile terminal controls to adjust the size of thresholding, to judge that current time is the need of carrying out frequency adjustment; If desired, then frequency adjustment is carried out; If need not, then do not carry out frequency adjustment; Frequency Adjustable calculation module 13, target frequency is obtained for the ongoing frequency according to mobile terminal when needing to carry out frequency and adjusting and described frequency departure, and according to the slope of described target frequency place linearity range and described target frequency, it is thus achieved that the target frequency control word corresponding with described target frequency.
Further, described target frequency fnext' equal to described ongoing frequency fcurr' and described frequency deviation f ' sum.
Wherein, described target frequency control word Cnext' obtain by below equation:
Cnext'=ki��*(fnext���Cfi��)+Ci';
Wherein, Cnext' for target frequency control word, fnext' for target frequency, ki' (i=0,1,2....) be described target frequency fnext' slope of place linearity range, i is the sequence number of linearity range, f in described piecewise linear curvei' frequency corresponding to the linear switching point between i-th linearity range and (i+1) individual linearity range, Ci' for frequency fi' corresponding to frequency control word.
Concrete, control module 12 in described frequency adjustment and judge that current time is the need of, when carrying out frequency adjustment, if described frequency departure controls to adjust thresholding be more than or equal to described automatic frequency, then carrying out frequency adjustment; If described frequency departure controls to adjust thresholding less than described automatic frequency, then do not carry out frequency adjustment.
Further, described automatic frequency controls the communication quality setting that thresholding is mobile terminal.
To sum up, in the frequency adjusting method and device of mobile terminal provided by the present invention, the method of sectional linear fitting is adopted to determine in the process of target frequency control word when using digital compensation crystal oscillator as clock source for mobile terminal in prior art, utilize the frequency departure alternative manner with the linear relationship use complexity of frequency control word to determine target frequency control word, cause that frequency adjusts the problem that execution efficiency declines, the present invention directly obtains target frequency according to ongoing frequency and frequency departure, slope and described target frequency further according to described target frequency place linearity range, obtain the target frequency control word corresponding with described target frequency, it determines target frequency control word mainly by the linear relationship of target frequency Yu target frequency control word, simplify the computing obtaining target frequency control word, improve frequency and adjust execution efficiency.
Foregoing description is only the description to present pre-ferred embodiments, not any restriction to the scope of the invention, any change that the those of ordinary skill in field of the present invention does according to the disclosure above content, modification, belongs to the protection domain of claims.

Claims (10)

1. a frequency adjusting method for mobile terminal, described mobile terminal uses digital compensation crystal oscillator as clock source, it is characterised in that comprise the following steps:
S1: mobile terminal is carried out automatic frequency and controls calibration and generate piecewise linear curve, to obtain frequency control word corresponding to the slope of each linearity range of described piecewise linear curve, each linear switching point and frequency;
S2: write original frequency control word to obtain the ongoing frequency receiving signal of mobile terminal according to described piecewise linear curve, and the reception signal acquisition frequency departure according to mobile terminal;
S3: control to adjust the size of thresholding by relatively described frequency departure and the automatic frequency preset, it is judged that current time is the need of carrying out frequency adjustment; If desired, then step S4 is performed; If need not, then do not carry out frequency adjustment;
S4: obtain target frequency according to described ongoing frequency and described frequency departure;
S5: the relatively size of frequency corresponding to each linear switching point in described target frequency and step S1, to determine the slope of described target frequency place linearity range;
S6: according to the slope of described target frequency place linearity range and described target frequency, it is thus achieved that the target frequency control word corresponding with described target frequency;
S7: utilize described digital compensation crystal oscillator to carry out frequency adjustment according to described target frequency control word.
2. the frequency adjusting method of mobile terminal as claimed in claim 1, it is characterised in that in described step S4, described target frequency is equal to described ongoing frequency and described frequency departure sum.
3. the frequency adjusting method of mobile terminal as claimed in claim 1, it is characterised in that described target frequency control word below equation obtains:
Cnext'=ki��*(fnext���Cfi��)+Ci';
Wherein, Cnext' for target frequency control word, fnext' for target frequency, ki' (i=0,1,2....) be described target frequency fnext' slope of place linearity range, i is the sequence number of linearity range, f in described piecewise linear curvei' frequency corresponding to the linear switching point between i-th linearity range and (i+1) individual linearity range, Ci' for frequency fi' corresponding to frequency control word.
4. the frequency adjusting method of mobile terminal as claimed in claim 1, it is characterised in that perform in described step S3 process, if described frequency departure controls to adjust thresholding be more than or equal to described automatic frequency, then performs step S4; If described frequency departure controls to adjust thresholding less than described automatic frequency, then do not carry out frequency adjustment.
5. the frequency adjusting method of mobile terminal as described in any one in Claims 1-4, it is characterised in that it is that the communication quality according to mobile terminal sets that described automatic frequency controls thresholding.
6. the frequency adjusting device of a mobile terminal, it is characterised in that including:
Automatic frequency controls calibration module, controls calibration generate piecewise linear curve for mobile terminal carries out automatic frequency, to obtain frequency control word corresponding to the slope of each linearity range of described piecewise linear curve, each linear switching point and frequency;
Frequency setting module, for write frequency control word to obtain the frequency of mobile terminal according to described piecewise linear curve;
Frequency adjustment controls module, and the frequency departure receiving signal acquisition and default automatic frequency for comparing mobile terminal controls to adjust the size of thresholding, to judge that current time is the need of carrying out frequency adjustment; If desired, then frequency adjustment is carried out; If need not, then do not carry out frequency adjustment;
Frequency Adjustable calculation module, target frequency is obtained for the ongoing frequency according to mobile terminal when needing to carry out frequency and adjusting and described frequency departure, and according to the slope of described target frequency place linearity range and described target frequency, it is thus achieved that the target frequency control word corresponding with described target frequency.
7. the frequency adjusting device of mobile terminal as claimed in claim 6, it is characterised in that described target frequency is equal to described ongoing frequency and described frequency departure sum.
8. the frequency adjusting device of mobile terminal as claimed in claim 6, it is characterised in that described target frequency control word below equation obtains:
Cnext'=ki��*(fnext���Cfi��)+Ci';
Wherein, Cnext' for target frequency control word, fnext' for target frequency, ki' (i=0,1,2....) be described target frequency fnext' slope of place linearity range, i is the sequence number of linearity range, f in described piecewise linear curvei' frequency corresponding to the linear switching point between i-th linearity range and (i+1) individual linearity range, Ci' for frequency fi' corresponding to frequency control word.
9. the frequency adjusting device of mobile terminal as claimed in claim 6, it is characterized in that, control module in described frequency adjustment and judge that current time is the need of, when carrying out frequency adjustment, if described frequency departure controls to adjust thresholding be more than or equal to described automatic frequency, then carrying out frequency adjustment; If described frequency departure controls to adjust thresholding less than described automatic frequency, then do not carry out frequency adjustment.
10. the frequency adjusting device of the mobile terminal as described in any one in claim 6 to 9, it is characterised in that described automatic frequency controls the communication quality that thresholding is mobile terminal and sets.
CN201410620005.4A 2014-11-05 2014-11-05 The frequency adjusting method and device of mobile terminal Active CN105634473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410620005.4A CN105634473B (en) 2014-11-05 2014-11-05 The frequency adjusting method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410620005.4A CN105634473B (en) 2014-11-05 2014-11-05 The frequency adjusting method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN105634473A true CN105634473A (en) 2016-06-01
CN105634473B CN105634473B (en) 2019-01-11

Family

ID=56049085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410620005.4A Active CN105634473B (en) 2014-11-05 2014-11-05 The frequency adjusting method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN105634473B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066030A (en) * 2016-12-30 2017-08-18 深圳市鼎阳科技有限公司 A kind of signal source and its multi-frequency output compensation method, system
CN107863959A (en) * 2017-12-14 2018-03-30 英特格灵芯片(天津)有限公司 A kind of method and device of frequency calibration
CN109916090A (en) * 2018-11-29 2019-06-21 青岛经济技术开发区海尔热水器有限公司 Heat-pump water heater control method and Teat pump boiler
CN113250943A (en) * 2021-04-20 2021-08-13 青岛海特生物医疗有限公司 Method and device for controlling variable frequency compressor, variable frequency compressor and temperature control equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7590212B2 (en) * 2002-12-19 2009-09-15 Broadcom Corporation System and method for adjusting the phase of a frequency-locked clock
CN103001597A (en) * 2011-09-09 2013-03-27 联芯科技有限公司 Gain frequency compensation method and gain frequency compensation device
CN103904998A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method and device for adjusting frequency of mobile terminal
CN103905000A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method for adjusting frequency and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7590212B2 (en) * 2002-12-19 2009-09-15 Broadcom Corporation System and method for adjusting the phase of a frequency-locked clock
CN103001597A (en) * 2011-09-09 2013-03-27 联芯科技有限公司 Gain frequency compensation method and gain frequency compensation device
CN103904998A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method and device for adjusting frequency of mobile terminal
CN103905000A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method for adjusting frequency and terminal device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066030A (en) * 2016-12-30 2017-08-18 深圳市鼎阳科技有限公司 A kind of signal source and its multi-frequency output compensation method, system
CN107066030B (en) * 2016-12-30 2020-01-14 深圳市鼎阳科技股份有限公司 Signal source and multi-frequency output compensation method and system thereof
CN107863959A (en) * 2017-12-14 2018-03-30 英特格灵芯片(天津)有限公司 A kind of method and device of frequency calibration
CN107863959B (en) * 2017-12-14 2024-01-30 四川易冲科技有限公司 Frequency calibration method and device
CN109916090A (en) * 2018-11-29 2019-06-21 青岛经济技术开发区海尔热水器有限公司 Heat-pump water heater control method and Teat pump boiler
CN109916090B (en) * 2018-11-29 2022-10-18 青岛经济技术开发区海尔热水器有限公司 Heat pump water heater control method and heat pump water heater
CN113250943A (en) * 2021-04-20 2021-08-13 青岛海特生物医疗有限公司 Method and device for controlling variable frequency compressor, variable frequency compressor and temperature control equipment

Also Published As

Publication number Publication date
CN105634473B (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US9209958B1 (en) Segmented digital-to-time converter calibration
CN102740438B (en) Utilize the calibration of internal power measurement to transmitter
US9520890B1 (en) Dual digital to time converter (DTC) based differential correlated double sampling DTC calibration
CN104184527A (en) Transmission power measuring device and transmission power measuring method
CN105634473A (en) Method and device for adjusting frequency of mobile terminal
CN1661916B (en) Method and system for frequency generation for wireless devices
CN112202507B (en) WIFI production measurement and calibration method and computer-readable storage medium
CN107094055A (en) Frequency response calibration method and its calibration system and frequency response self calibration instrument
CN105763159A (en) Method and device for adjusting frequency offset of mobile terminal
CN103904998A (en) Method and device for adjusting frequency of mobile terminal
CN105119600A (en) AFC (Automatic Frequency Calibration) method for realizing rapid locking of a phase-locked loop system
US8583714B2 (en) ROM-based direct digital synthesizer with pipeline delay circuit
CN104683044A (en) Calibration method, calibration device and calibration system for frequency synthesizer in communication terminal
US9838023B2 (en) Slow-clock calibration method and unit, clock circuit, and mobile communication terminal
CN107860973B (en) Frequency response compensation method and system applied to spectrum analyzer
US10146250B2 (en) Method and circuit for adjusting the frequency of a clock signal
KR20160006501A (en) Frequency correction system and correcting method thereof
GB2335554A (en) Radio synchronisation system
CN112083226A (en) Frequency calibration method and device for electronic equipment, medium and electronic equipment
CN116318449A (en) Temperature calibration method and device
CN110212911B (en) Frequency calibration method and device and storage medium
CN106026971B (en) A kind of accurate program controlled step attenuator frequency response bearing calibration and system
CN104753497A (en) Method and device for correcting OSCPPS
CN113364550B (en) Clock adjusting method and device
CN103873056A (en) Automatic oscillator calibration device and calibration method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant