CN105634473B - The frequency adjusting method and device of mobile terminal - Google Patents

The frequency adjusting method and device of mobile terminal Download PDF

Info

Publication number
CN105634473B
CN105634473B CN201410620005.4A CN201410620005A CN105634473B CN 105634473 B CN105634473 B CN 105634473B CN 201410620005 A CN201410620005 A CN 201410620005A CN 105634473 B CN105634473 B CN 105634473B
Authority
CN
China
Prior art keywords
frequency
mobile terminal
control word
target
target frequency
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.)
Active
Application number
CN201410620005.4A
Other languages
Chinese (zh)
Other versions
CN105634473A (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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of frequency adjusting method of mobile terminal and devices, during determining target frequency control word using the method for sectional linear fitting when using digital compensation crystal oscillator as clock source for mobile terminal in the prior art, using the linear relationship of frequency departure and frequency control word using complicated alternative manner to determine target frequency control word, the problem of leading to frequency adjustment execution efficiency decline, the present invention directly obtains target frequency according to current frequency and frequency departure, further according to the slope and the target frequency of linearity range where the target frequency, obtain target frequency control word corresponding with the target frequency, it mainly determines target frequency control word using the linear relationship of target frequency and target frequency control word, simplify the operation for obtaining target frequency control word, it improves frequency adjustment and executes effect Rate.

Description

The frequency adjusting method and device of mobile terminal
Technical field
The present invention relates to field of communication technology, in particular to the frequency adjusting method and device of a kind of mobile terminal.
Background technique
The AFC (automatic frequency control) of mobile terminal is realized usually by the way of adjusting clock source output frequency 's;Wherein, clock source is divided into TCXO (temperature compensating crystal oscillator) and DCXO (digital compensation crystal oscillator).
When mobile terminal, which carries out automatic frequency control, uses clock source as TCXO, there can be better frequency stability With frequency-voltage linear degree, control relatively simple;But existing deficiency is, TCXO price is relatively high;When using TCXO, Oscillating circuit is still working in the radio frequency master chip of some terminal systems, generates unnecessary power consumption;When using TCXO, some are System needs additional analog-digital converter, considerably increases cost;Also some radio frequency master chips itself can provide analog-digital converter, but Also the output for being necessary for analog-digital converter increases additional package pins, and at present one master chip of mobile terminal usually contain it is more A mode or frequency range, pin resource are relatively more limited.When mobile terminal, which carries out automatic frequency control, uses clock source as DCXO, at This is lower, it is only necessary to which it is non-linear to can compensate for frequency-voltage by specific algorithm, to reach preferable linear.For The nonlinear compensation of DCXO generallys use the method for sectional linear fitting in Project Realization.This scheme has certain fitting Error, but this error can be reduced to reach the model of demand in engineering by the density of segmentation appropriate and segmentation It encloses.
When being DCXO for clock source, during determining target frequency control word using the method for sectional linear fitting, It is using complicated alternative manner using the linear relationship of frequency departure and frequency control word to determine target frequency control word.Tool Body, the principle of frequency adjustment is current frequency control word C of the mobile terminal based on current reception signalcurr, by certain Digital signal processing algorithm, calculate frequency deviation f, then according to Δ f calculate frequency control word offset Δ C, finally Obtain target frequency control word Cnext, by target frequency control word CnextIt is arranged into frequency device, to realize that frequency adjusts.
In order to obtain the corresponding target frequency control word C of Δ fnext, need according to current frequency control word CcurrIt calculates, And the most important is exactly to obtain CnextIn which linearity range, C then is calculated in the linearity rangenext.The prior art is adopted The mode taken is using iterative method from current frequency control word CcurrPlace linearity range starts gradually to calculate judgement.
For the prior art, target frequency control word C is calculatednextNeed to distinguish three kinds of situations:
1)CnextWith CcurrIn the same linearity range;
2)CnextWith CcurrIn adjacent linearity range;
3)CnextWith CcurrSpan several linearity ranges.
To above 1) and 2) the case where, prior art processing is all fairly simple, here mainly for situation 3) compare Analysis.
For the sake of simplicity, it is assumed here that frequency deviation f and frequency control word are at dull positively related relationship.Please refer to figure 1, for the schematic diagram for carrying out the piecewise linear curve generated when automatic frequency control calibration to mobile terminal in the prior art;Such as Shown in Fig. 1, (k0, k1, k2) and (C0, C1, C2) it is that mobile terminal carries out automatic frequency control calibration respectively, by the frequency-of DCXO Voltage response is divided into the linear function of several segments Different Slope, is selected to divide according to frequency accuracy requirement and the linearity Number of segment, to generate piecewise linear curve l1, the piecewise linear curve l of acquisition1Each linearity range slope and each line Frequency control word corresponding to property switching point;CcurrIt is current frequency control word;fcurrIt is current frequency control word CcurrDetermining Current frequency;Cnext0,Cnext1Respectively according to slope k0, k1The frequency control word of calculating;CnextIt is final making frequency adjustment Target frequency control word;fnextIt is CnextCorresponding target frequency.
Please continue to refer to the content of Fig. 1, the calculating process of the prior art is further understood from.Basis works as leading portion first It calculates:
Cnext0=k0*Δf+Ccurr (1)
Then compare Cnext0With the maximum frequency control word C of current linear section0Size relation, if Cnext0>C0, explanation Target frequency control word CnextWith current frequency control word CcurrBe not at the same linearity range (but not can determine that C at this timenext0 It is exactly required Cnext, because of Cnext0It is according to the slope k for working as leading portion0It calculates, and has determined that CnextIt is linear to be not at this Section, so this calculating has only served and has judged whether the effect in this linearity range).And even if Cnext0<C1, can not determine CnextIt is at C1Linearity range, reason are equally because of Cnext0It is according to the slope k for working as leading portion0It calculates, so also needing C0 The frequency deviation f of section0Δ f is obtained after subtracting1, then in C1K is used in section1Calculate Cnext1
Δf0=(C0–Ccurr)/k0 (2)
Δf1=Δ f- Δ f0 (3)
The process is repeated, until above using k at a certain sectioniThe frequency control word C that (serial number of i expression line segment) calculatesnexti< Ci, then Cnext=Cnexti
Cnext1=k1*Δf1+C0 (4)
Δf1'=(C1–C0)/k1 (5)
Δf2=Δ f1–Δf1’ (6)
Cnexti=ki*Δfi+Ci-1 (7)
Situation as shown in Figure 1, CnextWith CcurrAcross two linearity ranges, then needing to calculate frequency control word three times Cnext0, Cnext1And final Cnext.It can be easy to extrapolate, if CnextWith CcurrAcross N number of linearity range, then (N+1) secondary calculating is needed, iterative calculation all includes formula (1), (2), the calculating of (3) this three step every time.In this (N+1) secondary calculating Preceding n times calculate required for not being final as a result, and the process that calculates every time be also required to multiple operation.It can be seen that this The computation complexity of scheme is relatively high.If the linearity of DCXO is not good enough, in order to reduce the error of piecewise fitting, it is necessary to point More linearity ranges are cut into, every section of span is smaller, and in this case, the average computation when carrying out AFC adjustment every time is multiple Miscellaneous degree can be higher.
To sum up content uses when it is found that mobile terminal using digital compensation crystal oscillator as clock source in the prior art During the method for sectional linear fitting determines target frequency control word, the linear pass of frequency departure and frequency control word is utilized System determines the process of target frequency control word using complicated alternative manner, needs to carry out more complicated interative computation, transport It counts in taking a substantial amount of time, becomes the principal element for influencing execution efficiency.Therefore, operation complexity can be simplified by seeking one kind Spend the method to improve execution efficiency, it has also become those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the present invention is to provide a kind of frequency adjusting method of mobile terminal and devices, to solve to use existing skill Target is determined using the method for sectional linear fitting when mobile terminal uses digital compensation crystal oscillator as clock source in art During frequency control word, mesh is determined using complicated alternative manner using the linear relationship of frequency departure and frequency control word The process for marking frequency control word, needs to carry out more complicated interative computation, take a substantial amount of time in operation, cause to hold The problem of line efficiency declines.
In order to solve the above technical problems, the present invention provides a kind of frequency adjusting method of mobile terminal, the mobile terminal Use digital compensation crystal oscillator as clock source, the frequency adjusting method of the mobile terminal the following steps are included:
S1: automatic frequency control calibration is carried out to mobile terminal and generates piecewise linear curve, to obtain the piecewise linearity Frequency control word and frequency corresponding to the slope of each linearity range of curve, each linear switching point;
S2: write-in original frequency control word is with working as according to the reception signal of piecewise linear curve acquisition mobile terminal Preceding frequency, and frequency departure is obtained according to the reception signal of mobile terminal;
S3: by comparing the size of the frequency departure and preset automatic frequency control adjustment thresholding, when judging current It carves and whether needs making frequency adjustment;If desired, S4 is thened follow the steps;If not needing, adjusted without frequency;
S4: target frequency is obtained according to the current frequency and the frequency departure;
S5: the size of the target frequency and frequency corresponding to linear switching point each in step S1, with determination The slope of linearity range where the target frequency;
S6: it according to the slope and the target frequency of linearity range where the target frequency, obtains and the target frequency Corresponding target frequency control word;
S7: the digital compensation crystal oscillator making frequency adjustment is utilized according to the target frequency control word.
Optionally, in the frequency adjusting method of the mobile terminal, in the step S4, the target frequency is equal to The sum of the current frequency and the frequency departure.
Optionally, in the frequency adjusting method of the mobile terminal, the target frequency control word following formula It obtains:
Cnext'=ki’*(fnext’–fi’)+Ci';
Wherein, Cnext' it is target frequency control word, fnext' it is target frequency, ki' (i=0,1,2....) be the target Frequency fnext' where linearity range slope, i be the piecewise linear curve on linearity range serial number, fi' be i-th linearity range with Frequency corresponding to linear switching point between (i+1) a linearity range, Ci' it is frequency fi' corresponding to frequency control word.
Optionally, in the frequency adjusting method of the mobile terminal, during executing the step S3, if the frequency Rate deviation is more than or equal to automatic frequency control adjustment thresholding, thens follow the steps S4;If the frequency departure be less than it is described from Dynamic frequency control adjustment thresholding, then adjust without frequency.
Optionally, in the frequency adjusting method of the mobile terminal, the automatic frequency control thresholding is according to shifting The communication quality setting of dynamic terminal.
The present invention also provides a kind of frequency adjusting device of mobile terminal, the frequency adjusting device packet of the mobile terminal It includes:
Automatic frequency controls calibration module, bent for generating piecewise linearity to mobile terminal progress automatic frequency control calibration Line, to obtain frequency control word corresponding to the slope of each linearity range of the piecewise linear curve, each linear switching point And frequency;
Frequency setting module obtains the frequency of mobile terminal for write frequency control word according to the piecewise linear curve Rate;
Frequency adjusts control module, receives frequency departure that signal obtains and preset automatic for compare mobile terminal The size of frequency control adjustment thresholding, to judge whether current time needs making frequency adjustment;If desired, then frequency tune is carried out It is whole;If not needing, adjusted without frequency;
Frequency adjusts computing module, for when needing making frequency adjustment according to the current frequency of mobile terminal and described Frequency departure obtains target frequency, and according to the slope and the target frequency of linearity range where the target frequency, obtain with The corresponding target frequency control word of the target frequency.
Optionally, in the frequency adjusting device of the mobile terminal, the target frequency is equal to the current frequency The sum of with the frequency departure.
Optionally, in the frequency adjusting device of the mobile terminal, the target frequency control word following formula It obtains:
Cnext'=ki’*(fnext’–fi’)+Ci';
Wherein, Cnext' it is target frequency control word, fnext' it is target frequency, ki' (i=0,1,2....) be the target Frequency fnext' where linearity range slope, i be the piecewise linear curve on linearity range serial number, fi' be i-th linearity range with Frequency corresponding to linear switching point between (i+1) a linearity range, Ci' it is frequency fi' corresponding to frequency control word.
Optionally, in the frequency adjusting device of the mobile terminal, work as in frequency adjustment control module judgement When whether the preceding moment needs making frequency adjustment, if the frequency departure is more than or equal to automatic frequency control adjustment thresholding, Then making frequency adjustment;If the frequency departure is less than automatic frequency control adjustment thresholding, adjusted without frequency.
Optionally, in the frequency adjusting device of the mobile terminal, the automatic frequency control thresholding is mobile whole The communication quality at end is set.
In the frequency adjusting method and device of mobile terminal provided by the present invention, for mobile terminal in the prior art Target frequency control word is determined using the method for sectional linear fitting when using digital compensation crystal oscillator as clock source In the process, using the linear relationship of frequency departure and frequency control word using complicated alternative manner to determine target frequency control Word, causes frequency to adjust the problem of execution efficiency declines, and the present invention directly obtains target frequency according to current frequency and frequency departure Rate obtains corresponding with the target frequency further according to the slope and the target frequency of linearity range where the target frequency Target frequency control word mainly determines target frequency control using the linear relationship of target frequency and target frequency control word Word simplifies the operation for obtaining target frequency control word, improves frequency adjustment execution efficiency.
Detailed description of the invention
Fig. 1 is to carry out showing for the piecewise linear curve generated when automatic frequency control calibration to mobile terminal in the prior art It is intended to;
Fig. 2 is the flow chart of the frequency adjusting method of mobile terminal in one embodiment of the invention;
Fig. 3 is the piecewise linearity song for generate when automatic frequency control calibration to mobile terminal in one embodiment of the invention The schematic diagram of line;
Fig. 4 be in one embodiment of the invention between actual curve and calibration curve there are when calibration frequency error, carry out frequency Schematic diagram when rate adjusts;
Fig. 5 is the schematic diagram of the frequency adjusting device of mobile terminal in one embodiment of the invention.
Specific embodiment
Make below in conjunction with frequency adjusting method and device of the drawings and specific embodiments to mobile terminal proposed by the present invention It is further described.According to following explanation and claims, advantages and features of the invention will be become apparent from.It should be noted It is that attached drawing is all made of very simplified form and using non-accurate ratio, only to facilitate, lucidly aid in illustrating this hair The purpose of bright embodiment.
Referring to FIG. 2, its flow chart for the frequency adjusting method of mobile terminal in one embodiment of the invention, such as Fig. 2 institute Showing, the frequency adjusting method of the mobile terminal, the mobile terminal uses digital compensation crystal oscillator as clock source, The following steps are included:
Firstly, executing step S1, automatic frequency control calibration is carried out to mobile terminal and generates piecewise linear curve, to obtain Frequency control word and frequency corresponding to the slope of each linearity range of the piecewise linear curve, each linear switching point.
It is generated when referring to FIG. 3, it is in one embodiment of the invention to mobile terminal progress automatic frequency control calibration The schematic diagram of piecewise linear curve.As shown in figure 3, piecewise linear curve l1' at this time altogether there are three linearity range, three linearity ranges Slope is followed successively by k0’、k1’、k2';Slope is k0' linearity range and slope be k1' linearity range between linear switching point institute it is right The frequency control word answered is C0', corresponding frequency is f0';Slope is k1' linearity range and slope be k2' linearity range between Frequency control word corresponding to linear switching point is C1', corresponding frequency is f1';Slope is k2' linearity range and next linear Frequency control word corresponding to linear switching point between section is C2', corresponding frequency is f2'.To sum up content is carrying out the school AFC The information for needing to store in standard is the slope k of each linearity rangei(i=0,1,2....) and linear switching point coordinate (fi’,Ci’)。
Then, step S2 is executed, original frequency control word is written to obtain mobile terminal according to the piecewise linear curve Reception signal current frequency, and according to the reception signal of mobile terminal obtain frequency deviation f '.
Original frequency control word is written, in original frequency setup phase, original frequency control word is equivalent to current frequency control Word C processedcurr';Due to there is corresponding linear relationship between frequency control word and frequency, pass through current frequency control word Ccurr’ It can determine current frequency fcurr', parameter basis is established for subsequent calculating target frequency.
Then, step S3 is executed, by comparing the frequency deviation f ' and preset automatic frequency control adjustment thresholding Size, judge whether current time needs making frequency adjustment;If desired, S4 is thened follow the steps;If not needing, without Frequency adjustment
Specifically, if the frequency deviation f ' is more than or equal to automatic frequency control adjustment thresholding fg, then step is executed Rapid S4;If the frequency deviation f ' is less than automatic frequency control adjustment thresholding, adjusted without frequency;Wherein, institute Stating automatic frequency control thresholding is set according to the communication quality of mobile terminal, and when setting also needs to consider the frequency of frequency adjustment Rate adjusts frequency without high-frequency, the loss to use manpower and material resources sparingly while ensuring communication of mobile terminal quality.
Then, step S4 is executed, target frequency is obtained according to the current frequency and the frequency departure.
Currently known current frequency fcurr' and frequency deviation f ', since frequency deviation f ' indicates target frequency fnext’ (target frequency fnext' indicate the new frequency that actual needs is arranged) relative to current frequency fcurr' offset difference, therefore institute State target frequency fnext' be equal to the sum of the current frequency and the frequency deviation f ', i.e.,
fnext'=fcurr’+Δf’ (1)
Then, step S5, the target frequency and frequency corresponding to linear switching point each in step S1 are executed Size, with the slope of linearity range where the determination target frequency.
Further, target frequency f has been determined by step S4next' numerical value, next by target frequency fnext' from working as Preceding frequency fcurr' where present segment start and frequency f corresponding to each linear switching pointi' (i=0,1,2....) compare, just It can determine target frequency fnext' which linearity range be in.For example, it is assumed that target frequency fnext' position in Fig. 3 when, will Target frequency fnext' successively with f0', f1', f2' compare, just obtain target frequency fnext' slope is in as k2' linearity range, by In target frequency fnext' and target frequency control word Cnext' between there are linear relationships, therefore also illustrate target frequency control at this time Word C processednext' locating for linearity range be also slope be k2' linearity range.
Then, execute step S6, according to the slope and the target frequency of linearity range where the target frequency, obtain with The corresponding target frequency control word of the target frequency.
Further, the target frequency control word is obtained with following formula:
Cnext'=ki’*(fnext’–fi’)+Ci’ (2)
Cnext' it is target frequency control word, fnext' it is target frequency, ki' (i=0,1,2....) be the target frequency fnext' where linearity range slope, i be the piecewise linear curve on linearity range serial number, fi' it is i-th of linearity range and (i + 1) frequency corresponding to the linear switching point between a linearity range, Ci' it is frequency fi' corresponding to frequency control word.
In the present embodiment, with continued reference to FIG. 3, having determined that target frequency f by step S5next' slope is in as k2’ Linearity range, therefore i=2, target frequency control word at this time
Cnext'=k2’*(fnext’–f2’)+C2’。
Then, step S7 is executed, according to the target frequency control word Cnext' utilize the digital compensation crystal oscillator Making frequency adjustment.
Assuming that there are errors of fitting for the method for sectional linear fitting, so that the frequency deviation f ' itself that mobile terminal calculates It there is certain error, cause the subsequent target frequency f for calculating and obtainingnext' there is also certain errors, it is final to determine in segmented line Coordinate is that there is also certain errors for calibration frequency point corresponding to (target frequency, target frequency control word) on linearity curve, just Can this Problems Existing, frequency adjusting method of the concrete analysis based on the mobile terminal in the present invention be adjusted to correct as early as possible Target frequency, that is to say, that using mobile terminal provided by the present invention frequency adjusting method can efficiently and accurately completion frequency Rate adjustment.
Preferred embodiment, Fig. 4 are that there are calibration frequencies between actual curve and calibration curve in one embodiment of the invention Schematic diagram when error, when making frequency adjustment.As shown in figure 4, the curve of solid line lines is the segmented line there are error of fitting Linearity curve (i.e. actual curve), dashed lines are that there is no the piecewise linear curve of error of fitting (i.e. calibration curves).
For original frequency control word, the current frequency f of acquisition is written after AFC calibrationcurr', it is very accurate to require, Because the parameter is an opposite reference value, actual frequency is directly relevant to frequency control word.For DCXO, it is assumed that Calibration storing frequencies (frequency corresponding to calibration curve or) and the actual frequency (frequency corresponding to actual curve of each linearity range Rate) deviation be ferri, because being linear relationship, it is equivalent to rectilinear translation ferri。Ccurr' indicate current frequency control word, In k0Section, corresponding actual frequency are fcurr', calibrating storing frequencies at this time is fcurr" so
ferr0=fcurr”-fcurr’ (3)
ferr0Indicate k0The calibration frequency error of section, fcurr' it is considered that with mobile terminal reception signal current frequency Unanimously, it is assumed that the frequency departure that signal calculates that receives of mobile terminal is Δ f ', will do it frequency adjustment, adjusted value is Δ F ', if target frequency is fnext', then
Fnext '=fcurr '+Δ f ' (4)
In fact, accurately not in Fig. 3, slope is k to calibration frequency point2' linearity range on, but slope be k1’ Linearity range on, at this time calibrate storing frequencies be fnext", it is assumed that k1' section calibration frequency error be ferr1。f0' it be slope is k0’ With k1' linearity range between linear switching point corresponding to frequency, if the calibration frequency error of two sections of linearity ranges is unequal, That is ferr0≠ferr1, then illustrate calibration curve in f0' at it is discontinuous.
The calibration storing frequencies f being calculatednext1", then
ferr0=fnext1”–fnext’ (5)
fnext1" corresponding frequency control word is Cnext1', Cnext1' frequency is f on corresponding actual curvenext1', then
ferr1=fnext1”–fnext1’ (6)
By formula (5) and (6), the deviation of target frequency and actual frequency is obtained
Δferr=ferr1–ferr0 (7)
By formula (7), it can be seen that, the practical frequency and the deviation of target frequency of adjusting is linearity range locating for current frequency And the deviation of the calibration frequency error of linearity range locating for target frequency.If the deviation of entire method of subsection simulation curve is consistent, i.e. Δ ferr=0, then practical adjustment frequency fnext1' and target frequency fnext' equal.
If Δ ferr≠ 0, and Δ ferrReach AFC adjustment thresholding, then carries out a secondary frequencies adjustment again.
With continued reference to FIG. 4, adjusting by the first secondary frequencies, the practical frequency that adjusts is fnext1', with target frequency fnext' deviation delta f1' are as follows:
Δf1'=Δ ferr=fnext’-fnext1’ (8)
It is adjusted by the first secondary frequencies, event frequency and target frequency are all in the same linearity range.Second secondary frequencies tune Whole frequency offset is Δ f1', the calibration storing frequencies f being calculatednext2" be
fnext2"=fnext1”+Δf1’ (9)
fnext2' corresponding frequency control word is Cnext2, Cnext2Corresponding actual frequency fnext2'.Because of the second secondary frequencies tune Whole front and back frequency is in the same linearity range, then
Δf1'=fnext2”-fnext1"=fnext2’-fnext1’ (10)
It can be obtained by formula (8) and (10)
fnext'=fnext2’ (11)
According to above procedure it can be concluded that inference, if the calibration frequency error of entire sectional curve is identical, by primary Frequency adjustment can be adjusted to target frequency, if the calibration frequency error of different linearity ranges is not identical, by frequency twice Rate adjustment also may be adjusted to target frequency.
Correspondingly, the present embodiment additionally provides a kind of frequency adjusting device of mobile terminal.Below with reference to Fig. 5, for this Invent the schematic diagram of the frequency adjusting device of mobile terminal in an embodiment.As shown in figure 5, the frequency of the mobile terminal Adjusting device includes:
Automatic frequency controls calibration module 10, generates piecewise linearity for carrying out automatic frequency control calibration to mobile terminal Curve, to obtain frequency control corresponding to the slope of each linearity range of the piecewise linear curve, each linear switching point Word and frequency;Frequency setting module 11, for write frequency control word to obtain mobile terminal according to the piecewise linear curve Frequency;Frequency adjust control module 12, for compare mobile terminal receive signal obtain frequency departure and it is preset from The size of dynamic frequency control adjustment thresholding, to judge whether current time needs making frequency adjustment;If desired, then frequency is carried out Adjustment;If not needing, adjusted without frequency;Frequency adjusts computing module 13, for the root when needing making frequency adjustment Target frequency is obtained according to the current frequency of mobile terminal and the frequency departure, and according to linearity range where the target frequency Slope and the target frequency obtain target frequency control word corresponding with the target frequency.
Further, the target frequency fnext' it is equal to the current frequency fcurrThe sum of ' and the frequency deviation f '.
Wherein, the target frequency control word Cnext' obtained with following formula:
Cnext'=ki’*(fnext’–fi’)+Ci';
Wherein, Cnext' it is target frequency control word, fnext' it is target frequency, ki' (i=0,1,2....) be the target Frequency fnext' where linearity range slope, i be the piecewise linear curve on linearity range serial number, fi' be i-th linearity range with Frequency corresponding to linear switching point between (i+1) a linearity range, Ci' it is frequency fi' corresponding to frequency control word.
Specifically, when frequency adjustment control module 12 judges whether current time needs making frequency adjustment, if The frequency departure is more than or equal to automatic frequency control adjustment thresholding, then making frequency adjustment;If the frequency departure is small Adjustment thresholding is controlled in the automatic frequency, then is adjusted without frequency.
Further, the automatic frequency control thresholding is the communication quality setting of mobile terminal.
To sum up, in the frequency adjusting method and device of mobile terminal provided by the present invention, for moving in the prior art Target frequency control is determined using the method for sectional linear fitting when dynamic terminal uses digital compensation crystal oscillator as clock source During word processed, target frequency is determined using complicated alternative manner using the linear relationship of frequency departure and frequency control word Rate control word, causes frequency to adjust the problem of execution efficiency declines, and the present invention is directly obtained according to current frequency and frequency departure Target frequency obtains and the target frequency further according to the slope and the target frequency of linearity range where the target frequency Corresponding target frequency control word mainly determines target frequency using the linear relationship of target frequency and target frequency control word Rate control word simplifies the operation for obtaining target frequency control word, improves frequency adjustment execution efficiency.
Foregoing description is only the description to present pre-ferred embodiments, not to any restriction of the scope of the invention, this hair Any change, the modification that the those of ordinary skill in bright field does according to the disclosure above content, belong to the protection of claims Range.

Claims (8)

1. a kind of frequency adjusting method of mobile terminal, the mobile terminal use digital compensation crystal oscillator as clock Source, which comprises the following steps:
S1: automatic frequency control calibration is carried out to mobile terminal and generates piecewise linear curve, to obtain the piecewise linear curve The slope of each linearity range, frequency control word and frequency corresponding to each linear switching point;
S2: write-in original frequency control word is according to the current frequency of the reception signal of piecewise linear curve acquisition mobile terminal Rate, and frequency departure is obtained according to the reception signal of mobile terminal;
S3: by comparing the size of the frequency departure and preset automatic frequency control adjustment thresholding, judge that current time is It is no to need making frequency adjustment;If desired, S4 is thened follow the steps;If not needing, adjusted without frequency;
S4: target frequency is obtained according to the current frequency and the frequency departure;
S5: the size of the target frequency and frequency corresponding to linear switching point each in step S1, described in determination The slope of linearity range where target frequency;
S6: it according to the slope and the target frequency of linearity range where the target frequency, obtains corresponding with the target frequency Target frequency control word;
S7: the digital compensation crystal oscillator making frequency adjustment is utilized according to the target frequency control word;
Wherein, in the step S4, the target frequency is equal to the sum of the current frequency and the frequency departure.
2. the frequency adjusting method of mobile terminal as described in claim 1, which is characterized in that the target frequency control word is used Following formula obtains:
Cnext'=ki’*(fnext’–fi’)+Ci';
Wherein, Cnext' it is target frequency control word, fnext' it is target frequency, ki' (i=0,1,2....) be the target frequency fnext' where linearity range slope, i be the piecewise linear curve on linearity range serial number, fi' it is i-th of linearity range and (i + 1) frequency corresponding to the linear switching point between a linearity range, Ci' it is frequency fi' corresponding to frequency control word.
3. the frequency adjusting method of mobile terminal as described in claim 1, which is characterized in that execute the step S3 process In, if the frequency departure is more than or equal to automatic frequency control adjustment thresholding, then follow the steps S4;If the frequency departure Adjustment thresholding is controlled less than the automatic frequency, then is adjusted without frequency.
4. the frequency adjusting method of the mobile terminal as described in any one of claims 1 to 3, which is characterized in that it is described from Dynamic frequency control thresholding is set according to the communication quality of mobile terminal.
5. a kind of frequency adjusting device of mobile terminal characterized by comprising
Automatic frequency controls calibration module, generates piecewise linear curve for carrying out automatic frequency control calibration to mobile terminal, To obtain frequency control word and frequency corresponding to the slope of each linearity range of the piecewise linear curve, each linear switching point Rate;
Frequency setting module obtains the frequency of mobile terminal for write frequency control word according to the piecewise linear curve;
Frequency adjusts control module, for comparing the frequency departure and preset automatic frequency for receiving signal acquisition of mobile terminal The size of control adjustment thresholding, to judge whether current time needs making frequency adjustment;If desired, then making frequency adjustment; If not needing, adjusted without frequency;
Frequency adjust computing module, for when needing making frequency adjustment according to the current frequency of mobile terminal and the frequency Deviation obtains target frequency, and according to the slope and the target frequency of linearity range where the target frequency, obtain with it is described The corresponding target frequency control word of target frequency;
Wherein, the target frequency is equal to the sum of the current frequency and the frequency departure.
6. the frequency adjusting device of mobile terminal as claimed in claim 5, which is characterized in that the target frequency control word is used Following formula obtains:
Cnext'=ki’*(fnext’–fi’)+Ci';
Wherein, Cnext' it is target frequency control word, fnext' it is target frequency, ki' (i=0,1,2....) be the target frequency fnext' where linearity range slope, i be the piecewise linear curve on linearity range serial number, fi' it is i-th of linearity range and (i + 1) frequency corresponding to the linear switching point between a linearity range, Ci' it is frequency fi' corresponding to frequency control word.
7. the frequency adjusting device of mobile terminal as claimed in claim 5, which is characterized in that adjust control mould in the frequency When block judges whether current time needs making frequency adjustment, if the frequency departure is more than or equal to the automatic frequency, control is adjusted Whole thresholding, then making frequency adjustment;If the frequency departure is less than automatic frequency control adjustment thresholding, without frequency Adjustment.
8. the frequency adjusting device of the mobile terminal as described in any one of claim 5 to 7, which is characterized in that it is described from Dynamic frequency control thresholding is the communication quality setting of mobile terminal.
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 CN105634473A (en) 2016-06-01
CN105634473B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066030B (en) * 2016-12-30 2020-01-14 深圳市鼎阳科技股份有限公司 Signal source and multi-frequency output compensation method and system thereof
CN107863959B (en) * 2017-12-14 2024-01-30 四川易冲科技有限公司 Frequency calibration method and device
CN109916090B (en) * 2018-11-29 2022-10-18 青岛经济技术开发区海尔热水器有限公司 Heat pump water heater control method and heat pump water heater
CN113250943B (en) * 2021-04-20 2023-07-18 青岛海特生物医疗有限公司 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
CN103905000A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method for adjusting frequency and terminal device
CN103904998A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method and device for adjusting frequency of mobile terminal

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
CN103905000A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method for adjusting frequency and terminal device
CN103904998A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method and device for adjusting frequency of mobile terminal

Also Published As

Publication number Publication date
CN105634473A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
US9209958B1 (en) Segmented digital-to-time converter calibration
CN105634473B (en) The frequency adjusting method and device of mobile terminal
US7612617B2 (en) Voltage-controlled oscillator gain calibration for two-point modulation in a phase-locked loop
JP5318870B2 (en) Circuit apparatus and method for measuring clock jitter
US9537585B2 (en) Circuit, an integrated circuit, a transmitter, a receiver, a transceiver, a method for obtaining calibration data and a method for generating a local oscillator signal
CN112202507B (en) WIFI production measurement and calibration method and computer-readable storage medium
CN103219993A (en) Method and apparatus for calibrating gain of TDC
CN102981551B (en) A kind of temperature compensation system for real-time clock and method
US9286961B1 (en) Memory controller half-clock delay adjustment
CN107135179B (en) Equipment frequency calibration method and equipment
CN104122936A (en) MCU chip frequency division clock correcting device and method
US10146250B2 (en) Method and circuit for adjusting the frequency of a clock signal
US10742223B2 (en) Method and device for calibrating RC oscillator, storage medium and processor
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
CN104849547A (en) Calibration method and calibration system for improving preset accuracy of YTO
CN101488751B (en) Measurement system and method for temperature frequency correcting apparatus
CN204065907U (en) A kind of MCU chip frequency-dividing clock means for correcting
JP6404114B2 (en) Frequency modulation circuit and semiconductor device
CN104753497A (en) Method and device for correcting OSCPPS
EP3093676A1 (en) Dynamic calibration of data patterns
US10020728B2 (en) Signal generation device and method for controlling output voltage of regulator
CN104616697A (en) QDR-SRAM (Quad data rate-static random access memory) clock phase adjusting method and device
US10411717B2 (en) Device and method for multiple reference system timer
CN110618604A (en) Method and device for improving time keeping precision by using NTP auxiliary source

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