Certain embodiments of the invention relate to communication network timing. More specifically, certain embodiments of the invention relate to a method and system for precise temperature and timebase ppm error estimation using multiple timebases.
Accurate timing signals are needed for many electronic systems. One source of these timing signals is the crystal oscillator, which is an electronic oscillator circuit that uses the mechanical resonance of a vibrating crystal of piezoelectric material to create a clock signal with a very precise frequency. This signal is commonly used to keep track of time, to provide a stable clock signal for digital integrated circuits, and to stabilize frequencies for radio transmitters and receivers. Quartz crystals operate at frequencies from a few tens of kilohertz to tens of megahertz, and are typically used for consumer devices such as wristwatches, clocks, radios, computers, and cellphones.
Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with the present invention as set forth in the remainder of the present application with reference to the drawings.
A system and/or method for precise temperature and timebase ppm error estimation using multiple timebases, substantially as shown in and/or described in connection with at least one of the figures, as set forth more completely in the claims.
Various advantages, aspects and novel features of the present invention, as well as details of an illustrated embodiment thereof, will be more fully understood from the following description and drawings.
Certain aspects of the invention may be found in a method and system for precise temperature and timebase ppm error estimation using multiple timebases. Exemplary aspects of the invention may comprise measuring a coarse reading of a temperature corresponding to the plurality of timebases. The frequencies of the plurality of timebases may be compared at the temperature corresponding to the pluralities of the timebases. A fine reading of the temperature corresponding to the plurality of timebases may be generated based, at least in part, on the coarse reading and the comparison of the frequencies with respect to models of temperature dependencies for each of the plurality of timebases. The plurality of timebases may be calibrated utilizing the generated fine reading of the temperature corresponding to the plurality of timebases. The plurality of timebases may comprise different order temperature dependencies. The models of temperature dependencies of each of the plurality of timebases may be updated based, at least in part, on the fine reading of the temperature corresponding to the plurality of timebases. A global navigation satellite system (GNSS) clock signal may be utilized periodically to improve the accuracy of the calibration of the plurality of timebases. The GNSS clock signal may comprise one or more of: a GPS clock signal, GLONASS clock signal, and/or a Galileo clock signal. The accuracy of the models of temperature dependencies for each of the plurality of timebases may be successively increased through one or more of: averaging, voting, and/or Kalman filtering. The plurality of timebases may be calibrated utilizing an embedded system in an integrated circuit. One or more of the plurality of timebases may be generated on the integrated circuit or coupled into the integrated circuit. One or more of the plurality of timebases may be generated by a crystal oscillator.
The tuning fork crystal 101 may comprise a crystal oscillator where the crystal is cut in the shape of a tuning fork, which is often utilized for generating lower frequencies. Similarly, the AT-cut crystal 103 may comprise another crystal oscillator, but with the crystal cut in a particular orientation, AT-cut, which may correspond to the surface of the crystal x-axis being inclined by 35° 15′ from the z (optic) axis. The frequency-temperature curve for such a crystal typically resembles a sinusoidal wave with an inflection point in the 25-35 C temperature range.
It should be noted that the tuning fork and AT-cut crystals shown are merely exemplary clock signal sources, whereas any clock source may be utilized, as indicated by the other timebases 105, which may comprise any other type of clock source that may be coupled into the embedded system 109. In an exemplary scenario, one of the other timebases 105 may comprise a GPS clock signal that may be received periodically to further calibrate the clock signals.
The clock signals may be integrated on the same integrated circuit (chip) that comprises the embedded system 109, or may be located off-chip. Any frequency sources with distinctly different temperature dependencies may be utilized, e.g., two AT-cut crystals that have different coefficients in their temperature dependencies. Furthermore, more than two sources may be used for increased robustness and accuracy, and these additional sources may have their own temperature dependencies and associated models. The equations below illustrate typical equations which model AT-cut and tuning fork crystals, respectively.
ppmAT=C0+C1·(T−T0)+C2·(T−T0)2+C3·(T−T0)3
ppmTF=B0+B1·(T−T0)+B2−(T−T0)2
The coarse temperature sensor 107 may comprise any temperature sensing mechanism with a coarse resolution of, e.g., 0.5° C., particularly those in systems that may be implemented in integrated circuits. For example, the coarse temperature sensor 107 may comprise an integrated device with a known resistance versus temperature curve. The embedded system 109 may comprise a processor/controller system that may be operable to model the thermal dependencies for timebases, such as crystals. Accordingly, the embedded system 109 may comprise a processor and memory, for example, and may be operable to make frequency and temperature readings, calculate temperature dependencies, and store the results. The temperature dependencies for the clock signals X0, X1 . . . , Xi, . . . XN may be denoted as TD0, TD1 . . . , TDi, . . . TDN respectively.
In many applications it may be desirable to sense the temperature of a hardware device to great precision. It may not be necessary to know the absolute temperature, but more importantly the precision with which relative temperature change can be measured. This may be particularly relevant in applications where a temperature-dependent frequency reference, or timebase, requires open-loop temperature compensation, such as is the case for GPS devices where a stable frequency reference independent of temperature change is important in aiding rapid acquisition and tracking of satellites. This is commonly accomplished by means of a temperature-controlled crystal oscillator (TCXO), which stabilizes the temperature of a frequency reference to prevent drift when the ambient temperature changes.
In an exemplary scenario, a model for TDi may be generated with its inputs being the frequency and temperature information from X0 . . . XN and the coarse temperature sensor 107, respectively, and results in an estimate of the crystal ppm error PPMi, as described further with respect to
In an exemplary embodiment of the invention, temperature sensing may be performed precisely and quickly, with the temperature sensing localized to pertinent portions of the hardware, thereby avoiding errors due to temperature gradients. This may be accomplished with locally-available timebases, given an intermittent and infrequent gauging against an absolute timebase, such as a global navigation satellite system (GNSS), which may include GPS, GLONASS, and/or Galileo, for example. The temperature dependency models may be developed with infrequent and limited gauging.
In an exemplary embodiment, the temperature dependency models are polynomials of temperature which capture the physical behavior of the timebases. For example, TDi models the ppm error as a function of temperature for a clock source Xi, while TDij models the differential ppm error between Xi and Xj as a function of temperature. This may be described further with respect to
The counters 303 may comprise one or more counters that may be operable to count the number of cycles of one or more clock or timebase inputs. For example, the counters 303 may count the number of rising edges detected on each of the clock signals received at its inputs, which may be utilized to gauge clocks.
The on/off-chip clock sources 301 may comprise a plurality of clock sources, some of which may be integrated on the integrated circuit 310 and others may be located off-chip, such as crystal oscillators, which may typically be coupled to printed circuit boards that support the associated integrated circuits utilizing the timebases. For example, the on/off-chip clock sources may comprise the tuning fork crystal 101, the AT-cut crystal 103, and the other timebases 105, described with respect to
The temperature sensor(s) 311 may comprise one or more sensors that are operable to sense the temperature of local devices and/or circuitry. The temperature sensor(s) 311 may be operable to provide a coarse temperature reading that may be utilized to model temperature dependencies for the clock sources and subsequently generate a more accurate model of clock timing versus temperature. In another exemplary embodiment, one or more of the temperature sensor(s) 311 may be located off-chip.
In an exemplary scenario, models may be created for TDi and TDij, which are polynomials of temperature that capture the physical behavior of the timebases. TDi may model the ppm error as a function of temperature for clock source Xi, while TDij may model the differential ppm error between Xi and Xj as a function of temperature. From TDij, a reverse lookup function DTij may be generated so that, given the differential ppm error and coarse temperature, the reverse lookup function may be utilized to determine the precise temperature. The differential ppm error may be measured precisely by cross-gauging and therefore a high resolution temperature estimate can be obtained from DTij. The accuracy of the temperature estimates largely depends on the accuracy of the model TDij and may be substantially increased by initiating the process with default models TDid and TDijd, which may be used in the absence of absolute gauging data points (e.g. from a GPS reference) to estimate the fractional temperature change and improve the resolution of even the first gauging data point.
Furthermore, when the model TDij is generated, the higher-order temperature coefficients of the sources X1 . . . Xn may be accurately determined so that when gauging against an absolute timebase becomes available, the remaining coefficients can be more readily estimated with greater accuracy and fewer gauging data points. The exemplary steps for determining the model parameters in the TDi and TDij models are described further with respect to
Clock gauging is the process of measuring the frequency of one timebase against another timebase. The clock signal Xi may be gauged against Xj, where Xj is referred to as the reference clock, utilizing two counters CNi and CNj to count the number of clock cycles generated by Xi and Xj after a particular point in time, such as an edge of the reference clock, for example. Once CNj reaches a predetermined number of reference clock cycles Nref, the value of CNi is read, defined as Ni. The value Ninom may be defined as the nominal value of CNi when there is no ppm error. Therefore, the ratio of these values Ki may be described by the following equation:
where Fi is the frequency of Xi, Finom is the nominal frequency of Xi and PPMi is the ppm error of Xi. Hence, the ppm error of Xi is given by:
PPMi=Ki−1
The ratio Ki is the estimated frequency of Xi assuming Xj is accurate, normalized to the nominal frequency of Xi, Finom. PPMi is the ppm error of Fi when measured against Fj, assuming that the reference clock Xj has no ppm error. When the reference has ppm error, the difference of the ppm error may be computed as follows.
If Fi and Fj are defined as the actual frequencies of Xi and Xj, respectively, and Finom and Fjnom are their nominal frequencies, while Ni and Nj are the number of clock cycles counted in the same period of time, the ratios Kij and Kijnom may be described by:
Dividing Kij by Kjinomnom results in:
where PPMi and PPMj are the frequency drifts of Xi and Xj, respectively. The differential ppm error Rij can be defined as:
where Rij represents the differential ppm error of the two frequency sources. Note that if the clock signal Xj has no ppm error (i.e., PPMj=0), then Rij is only but PPMi.
In step 405, at the instant the LSB changes, defined as time t0, Xi may be gauged against Xj, producing Rij. The values for Tc(t0) and Rij(t0) may be stored in the memory 307. Step 405 may, for example and without limitation, share any or all functional aspects discussed previously (e.g., with regard to
In step 407, subsequent data points taken at time tk, indicated by (Tc(tk), Rij(tk) are used to improve the model of TDij. As the quality of the model TDij improves with more data points, the temperature estimates provided by this model become more accurate and reliable (hence, more heavily weighted) relative to the temperature read from the temperature sensor(s) 311. The model may updated by using an exemplary curve fitting algorithm, for example, a least-squares algorithm. The least-squares algorithm may be utilized to determine the optimal model coefficients by minimizing the following fitting error:
∥TDij(Tc)−Rij∥2
where data points (Tc, Rij) may be stored in a table, such as in the memory 307, for example. If one or more new data points become available, the table may be updated and the model may thus be updated.
In step 409, the end result of this process is an accurate method of calibrating clock sources by cross-gauging. In instances where the temperature dependencies for clock signals are different, i.e. where TDi and TDj are different order polynomials (having order O(TDi) and O(TDj) respectively), an accurate TDij enables the determination of all the coefficients of order k where k>min(O(TDi),O(TDj)). For example, for the case of X0 and X1 where TD0 is third order and TD1 is second order, the exemplary steps 401-409 may be used to generate TD01, a 3rd-order polynomial with 4 coefficients. The 3rd-order coefficient obtained may be identical to the 3rd-order coefficient for TD0 alone. This allows the system to much more quickly and accurately estimate the remaining coefficients for TD0 and TD1. Since default values for the remaining coefficients are known for TD0 and TD1, these can be reconciled against the measured model for TDij and the difference between the coefficients can be split among the coefficients for TD0 and TD1, or weighted appropriately if one timebase model is more reliable than the other.
In step 505, the reverse lookup function DTij and (Tc, [Rij]) may be utilized to determine a precise estimate of the actual temperature, Tp. The value of Tc may be primarily utilized to eliminate any ambiguity that remains with [Rij] due to possible one-to-several mapping of [Rij] to temperature. Step 505 may, for example and without limitation, share any or all functional aspects discussed previously (e.g., with regard to
In step 507, the GPS timebase may be utilized to gauge the frequencies of each source Xi and determine the ppm errors in each source and their normalized difference Rij, which may be denoted by PPM0, PPM1, PPM01, respectively.
In step 509, the models TDij may be utilized to obtain the higher-order coefficients for all available timebases, followed by step 511 where the high accuracy data points (Tp, PPM0) and (Tp, PPM1) may be utilized to begin estimating the remaining coefficients for TDi using the same curve-fitting techniques described with respect to
In step 513, with a sufficient number of gauging points, all remaining coefficients of TDi may be accurately estimated, followed by end step 515, or the process may loop back to step 503 for continued calculations.
In step 605, X0 may be gauged against X1, producing R01. Step 605 may, for example and without limitation, share any or all functional aspects discussed previously (e.g., with regard to
In step 607, the values Tc and R01 and the reverse look-up function DT01 may be utilized to establish the precise temperature Tp, using the model for DT01 developed in the exemplary steps described with respect to
In step 609, the timebase errors of X0 and X1, in ppm, may be looked up using their respective models TD0(Tp) and TD1(Tp).
In step 611, if more independent timebases X2-Xn are available, a symmetric matrix of normalized differences Rij may be created. Rij may be used as an input to Te, an algorithm for more accurately estimating Tp, in conjunction with the coarse temperature Tc. The calculation of Te may incorporate signal processing of [Rij] and Tc to improve accuracy.
For example, the elements of Li, the column vectors of [Rij], may be combined in a weighted average, depending on physical proximity to timebase Xi, and depending on the quality or reliability of that timebase. A voting scheme which discards outliers may be used to avoid incorporating spurious readings and transient environmental influences. Furthermore, Kalman filtering may be applied to [Rij] over time to optimize the estimate of Te, given noise in the measurement of [Rij], as well as knowledge of past values of [Rij] and Te.
Finally, the ppm estimates PPMj for the other timebases Xj obtained from models TDj can be incorporated to improve the estimate of PPMi by calculating the frequency Fiw from the element Rij (=−Rji), in addition to using the techniques above. Having established the estimated ppm error of each timebase Xi, corrections may be applied to obtain the actual frequencies Fi of each source Xi. Step 611, or step 613 if step 611 resulted in a YES, may be followed by end step 615.
In an embodiment of the invention, a method and system may comprise measuring a coarse reading Tc of a temperature corresponding to the plurality of timebases X0-XN. The frequencies of the plurality of timebases X0-XN may be compared at the temperature corresponding to the pluralities of the timebases X0-XN. A fine reading Te of the temperature corresponding to the plurality of timebases X0-XN may be generated based, at least in part, on the coarse reading Tc and the comparison of the frequencies with respect to models of temperature dependencies TDi, TDj for each of the plurality of timebases X0-XN. The plurality of timebases X0-XN may be calibrated utilizing the generated fine reading Te of the temperature corresponding to the plurality of timebases X0-XN.
The plurality of timebases X0-XN may comprise different order temperature dependencies. The models of temperature dependencies TDi, TDj of each of the plurality of timebases X0-XN may be updated based, at least in part, on the fine reading of the temperature corresponding to the plurality of timebases X0-XN. A global navigation satellite system (GNSS) clock signal 105 may be utilized periodically to improve the accuracy of the calibration of the plurality of timebases X0-XN. The GNSS clock signal may comprise one or more of: a GPS clock signal, GLONASS clock signal, and/or a Galileo clock signal.
The accuracy of the models of temperature dependencies for each of the plurality of timebases X0-XN may be successively increased through one or more of: averaging, voting, and/or Kalman filtering. The plurality of timebases X0-XN may be calibrated utilizing an embedded system 309 in an integrated circuit 310. One or more of the plurality of timebases X0-XN may be generated on the integrated circuit 310 or coupled into the integrated circuit 310. One or more of the plurality of timebases X0-XN may be generated by a crystal oscillator 101, 103.
Other embodiments of the invention may provide a non-transitory computer readable medium and/or storage medium, and/or a non-transitory machine readable medium and/or storage medium, having stored thereon, a machine code and/or a computer program having at least one code section executable by a machine and/or a computer, thereby causing the machine and/or computer to perform the steps as described herein for precise temperature and timebase ppm error estimation using multiple timebases.
Accordingly, aspects of the invention may be realized in hardware, software, firmware or a combination thereof. The invention may be realized in a centralized fashion in at least one computer system or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system or other apparatus adapted for carrying out the methods described herein is suited. A typical combination of hardware, software and firmware may be a general-purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein.
One embodiment of the present invention may be implemented as a board level product, as a single chip, application specific integrated circuit (ASIC), or with varying levels integrated on a single chip with other portions of the system as separate components. The degree of integration of the system may primarily be determined by speed and cost considerations. Because of the sophisticated nature of modern processors, it is possible to utilize a commercially available processor, which may be implemented external to an ASIC implementation of the present system. Alternatively, if the processor is available as an ASIC core or logic block, then the commercially available processor may be implemented as part of an ASIC device with various functions implemented as firmware.
The present invention may also be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which when loaded in a computer system is able to carry out these methods. Computer program in the present context may mean, for example, any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following: a) conversion to another language, code or notation; b) reproduction in a different material form. However, other meanings of computer program within the understanding of those skilled in the art are also contemplated by the present invention.
While the invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the present invention without departing from its scope. Therefore, it is intended that the present invention not be limited to the particular embodiments disclosed, but that the present invention will include all embodiments falling within the scope of the appended claims.
This application makes reference to and claims priority to U.S. Provisional Application Ser. No. 61/422,329 filed on Dec. 13, 2010.
Number | Date | Country | |
---|---|---|---|
61422329 | Dec 2010 | US |