1. Field of the Invention
This invention relates to generating a clock signal and more particularly using a MEMS oscillator and digital locked loop to generate the clock signal.
2. Description of the Related Art
In an embodiment an apparatus includes a Micro Electrical Mechanical System (MEMS) oscillator to supply a MEMS oscillator output signal; and a digital locked loop coupled to receive the MEMS oscillator output signal and to receive a desired frequency ratio and to supply a digital locked loop output signal having a frequency that corresponds to the desired frequency ratio between the MEMS oscillator output signal and the digital locked loop output signal. The digital locked loop may be an all digital phase-locked loop or an all digital frequency locked loop. The frequency ratio may be determined, at least in part, as a function of temperature.
In another embodiment, a method includes receiving a MEMS oscillator output signal at a digital locked loop; receiving a desired frequency ratio at the digital locked loop; and maintaining the desired frequency ratio between an output signal of the digital locked loop and the MEMS oscillator output signal. The method may further include adjusting the frequency ratio according to a sensed temperature.
The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
The use of the same reference symbols in different drawings indicates similar or identical items.
Referring to
Use of a MEMS-based oscillator allows features of MEMS oscillators to be exploited in certain embodiments. First, fabrication of MEMS oscillators is compatible with CMOS manufacturing processes and can be integrated on the same substrate with other circuits, thus providing a low cost of manufacturing and a small footprint. In addition, MEMS oscillators have good long-term stability. One shortcoming of MEMS oscillators is that they tend to have short-term stability issues that are reflected in phase noise or jitter. In addition, certain MEMS oscillators can be affected by variations in temperature.
The digital locked loop 203, may be, e.g., an all digital phase-locked loop (ADPLL) or an all digital frequency-locked loop (ADFLL). The digital locked loop receives a desired frequency ratio on node 215. The desired frequency ratio indicates the desired ratio between the output clock of the digital locked loop on node 217 and the MEMS oscillator output clock on node 209. The digital locked loop provides an output clock that has a frequency of R×FMEMS, where R is the desired ratio and FMEMS is the frequency of the MEMS oscillator clock signal. Many applications require a large number of bits for R for sufficient resolution e.g., greater than or equal to 28.
The ratio may be adjusted as a function of temperature. Thus, as shown in
The initial desired frequency ratio may be supplied, e.g., from non-volatile memory 305 or a command interface 307. The command interface may be a serial interface that is used to supply the ratio and write the ratio to a register (not shown) or to NVM 305. In some embodiments, the ratio may be further adjusted using an external control signal. For example, in an embodiment, a voltage control signal VC 309 is supplied on an external pin of the integrated circuit. That voltage may be converted to a digital signal that causes the frequency ratio to be adjusted by the frequency ratio determining circuit 303 with an appropriate gain factor corresponding to the voltage applied. Alternatively, the voltage control signal VC 309 may be used to both set and adjust the frequency ratio based on the voltage value of the VC signal. The use of temperature compensation allows the temperature coefficient of the digital locked loop output signal to be lower than the temperature coefficient of the MEMS oscillator output signal. Thus, the output signal of the digital locked loop is less susceptible to temperature changes.
Referring to
After initial settling, the ADPLL produces the correct frequency as the sum of a contribution through gain “a” times the current phase error and value in the integrator. Eventually, the integrator fills with the correct final value and there is no need for a phase error to support the correct output frequency. But in a very stable system, that takes awhile, so if the goal is to settle as quickly as possible, and “a” was initially high, and it is reduced after initial settling, it takes a different phase error to produce the correct output frequency. Switching “a” causes a phase transient which induces a frequency transient and takes time to settle out.
For the ADFLL, the output frequency depends on contents of the final integrator. The value of “b” controls the gain into the first integrator, which holds a value representing the required dFreq/dt, plus noise. For fast startup, “b” can be initially kept to zero with the first integrator zeroed out. So when the correct frequency is first obtained, the output of loop filter is zero, and “a” can be switched freely without causing a transient. Note, either of the two systems (ADFLL or ADPLL) can be used in combination with the MEMS oscillator in various embodiments.
Each of the digital locked loop embodiments described in
It may be desirable to have more resolution than available from just the counter embodiment of
An alternative implementation illustrated in
Thus, various approaches have been described that exploit combination of a MEMS oscillator with digital locked loop. The description of the invention set forth herein is illustrative, and is not intended to limit the scope of the invention as set forth in the following claims. Other variations and modifications of the embodiments disclosed herein, may be made based on the description set forth herein, without departing from the scope of the invention as set forth in the following claims.
This application claims benefit under 35 U.S.C. §119(e) of U.S. Provisional Application No. 61/655,297, filed Jun. 4, 2012, entitled “DIGITAL LOCKED LOOP FOR PRODUCING A CLOCK HAVING A SELECTED FREQUENCY RATIO RELATIVE TO A CLOCK PRODUCED BY A MEMS-BASED OSCILLATOR,” naming Jeffrey L. Sonntag as inventor, which application is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
61655297 | Jun 2012 | US |