The present invention relates to oscillators, more particularly to methods and apparatuses for controlling oscillator gain, and also to methods and apparatuses for controlling oscillator gain to compensate for variations in gain attributed to other components of a circuit such as a phase-locked loop.
Radio communication using a wide frequency bandwidth is found in present and upcoming standards, such as Digital Video Broadcasting for Hand-held devices (DVB-H). The need for accommodating a wide frequency bandwidth can also arise when a radio unit is designed to support several standards (e.g., GSM, EDGE, W-CDMA), requiring it to have multi-band capability. Furthermore, the frequency standard for a given standard (e.g., GSM) can differ between countries, thereby requiring a mobile phone intended for a worldwide market to have the same multi-band capability as when several standards are covered. The large frequency bandwidth, relative to the center frequency, requires broadband radio solutions.
A frequency synthesizer is the part of a transceiver that generates signals having the required range of frequencies. The frequency synthesizer is usually designed as a phase-locked loop (PLL), which is a closed-loop system in which the phase of an output signal (or a signal derived from the output signal) is compared with the phase of a reference input signal. The difference between these phase values is used to generate one or more signals that control the output frequency of a controllable oscillator.
The controllable oscillator is usually implemented either as: 1) an LC oscillator, or 2) a ring oscillator. The complementary LC oscillator is usually chosen in favor of the ring oscillator due to better phase-noise performance for a given level of power consumption. The complementary LC oscillator 100, an exemplary embodiment of which is illustrated in
Existing implementations of the complementary LC oscillator 100 are associated with problems, however. The frequency of the LC oscillator 100 is determined by f=½π√{square root over (LC)}, where L is the inductance and C the capacitance of the resonator. In order to change the frequency, at least one of the values of L and C has to change. Changing the inductance is difficult because the amount of inductance is strongly coupled to the geometry of the inductor. Experiments to change the inductance by switching inductors, or in other ways change the geometry, have been reported in the published literature. Loss of Q-value of the inductor and/or area inefficiency is often associated with this technique. In any case, the granularity of the change in inductance is too coarse to replace the need for changing the capacitance.
An established and accepted technique is to change the capacitance by means of a discrete switchable capacitor part. The discrete switchable capacitor part, illustrated by Cdis in
The coarse tuning of the oscillator frequency is achieved by applying a specific digital word to the discrete switchable capacitor part. Following the coarse tuning, fine tuning is performed to precisely get the desired frequency. Fine tuning is conventionally performed by changing a tuning control signal, νctrl, to a varactor which, in
The gain of a voltage controlled oscillator, HVCO, is to a first order approximation, proportional to the cube of the frequency. A short derivation of this relation is as follows:
This means that there will be large oscillator gain variation if the frequency band is large. Large oscillator gain variation is harmful because it alters the stability, bandwidth, and phase noise of the PLL.
The pushing parameter represents the transfer from the voltage supply to the output frequency. This means that noise on the supply lines will appear as (shaped) phase noise at the output of the oscillator. Predominantly, problems associated with a high pushing figure occur at high frequencies because, at these frequencies, little or no capacitance is connected in parallel with the varactor. This gives the varactor Cvar large impact on this figure. Since the varactor Cvar is a voltage controlled capacitor with nonlinear characteristics, its effective capacitance changes as the voltage swing changes (i.e., as the supply voltage is altered).
US 2003/0231068 A1 discloses compensating for tuning gain variations in a PLL by estimating the tuning gain of the oscillator and then adjusting the charge pump current value by a ratio of the nominal tuning gain to the measured tuning gain. US 2004/0263272 A1 similarly discloses adjusting the gain of a charge-pump based on the gain of the VCO so that the over-all gain of the arrangement is maintained in a desired range. Such techniques fail to utilize the VCO itself, however, to improve the overall performance.
It is therefore desirable to provide an oscillator that reduces the effects of the above-described and other problems.
It should be emphasized that the terms “comprises” and “comprising”, when used in this specification, are taken to specify the presence of stated features, integers, steps or components; but the use of these terms does not preclude the presence or addition of one or more other features, integers, steps, components or groups thereof.
In accordance with one aspect of the present invention, the foregoing and other objects are achieved in a controlled oscillator comprising a switchable variable capacitor arrangement for tuning an output frequency of the controlled oscillator; and circuitry that, in combination with the switchable variable capacitor arrangement, generates an oscillating signal whose frequency is, at least in part, a function of a total capacitance of the switchable variable capacitor arrangement. The switchable variable capacitor arrangement comprises: a plurality of variable capacitors, each tunable by means of a tuning control signal; and a switch arrangement that selectively opens or closes electrical paths to one or more of the variable capacitors under the control of one or more switch control signals, wherein the number of variable capacitors that contribute to the total capacitance of the switchable variable capacitor arrangement is controlled by states of the one or more switch control signals.
In some embodiments, each of one or more of the variable capacitors is arranged in series with a corresponding one of a number of switches in the switching arrangement, whereby the variable capacitor does not contribute to the total capacitance of the switchable variable capacitor arrangement when the corresponding switch is open, and the variable capacitor does contribute to the total capacitance of the switchable variable capacitor arrangement when the corresponding switch is closed.
In some embodiments, each of the switches comprises a first switch and a second switch; the first switch is arranged to prevent DC bias current from flowing into the tuning control signal when a corresponding one of the variable capacitors is switched into the switchable variable capacitor arrangement; and the second switch is arranged to prevent the corresponding variable capacitor from having an electrical potential that is floating when the corresponding variable capacitor is switched out of the switchable variable capacitor arrangement.
The variable capacitors may be varactors. Further, the switchable variable capacitor arrangement can, for example, be implemented by means of Complementary Metal Oxide Semiconductor (CMOS) technology.
In another aspect, a size of at least one of the variable capacitors is different from a size of at least another one of the variable capacitors.
In still another aspect, the controlled oscillator is part of a phase-locked loop that also includes logic configured to generate a signal that is indicative of a phase difference between a reference signal and a feedback signal, wherein a frequency of the feedback signal is derived from a frequency of a phase-locked loop output signal.
In another aspect, the phase-locked loop includes switch control circuitry for generating the one or more switch control signals as a function of a desired operating frequency so as to achieve a total variable capacitance that reduces loop gain variation of the phase-locked loop.
In yet another aspect, the phase-locked loop includes switch control circuitry for generating the one or more switch control signals as a function of a desired operating frequency, wherein the switch control circuitry switches a different number of the variable capacitors into the switchable variable capacitor arrangement for a different desired operating frequency such that the gain variation of the controlled oscillator over an entire frequency band is reduced.
In some embodiments, the phase-locked loop comprises a frequency divider that generates the feedback signal by dividing a frequency of the controlled oscillator output signal by a predetermined amount. The switch control circuitry in such embodiments can generate the one or more switch control signals so as to open and close appropriate sets of switches within the switch arrangement so as to produce a desired controlled oscillator gain, HCO, that will counteract variations in HFD, such that the overall variation of the gain product HCOHFD is reduced in a predefined frequency range, wherein HFD is a transfer function of the frequency divider.
In some other embodiments, the phase-locked loop comprises a prescaler that divides a frequency of the controlled oscillator output signal by a predetermined amount; and a frequency divider that generates the feedback signal by dividing a frequency of the controlled oscillator output signal by a predetermined amount. The switch control circuitry in such embodiments can generate the one or more switch control signals so as to open and close appropriate sets of switches within the switch arrangement so as to produce a desired controlled oscillator gain, HCO, that will counteract variations in HPSHFD, such that the overall variation of the gain product HCOHPSHFD is reduced in a predefined frequency range, wherein HPS is a transfer function of the prescaler and HFD is a transfer function of the frequency divider.
In some embodiments, the one or more switch control signals are generated by a binary-to-thermometer decoder.
The objects and advantages of the invention will be understood by reading the following detailed description in conjunction with the drawings in which:
The various features of the invention will now be described with reference to the figures, in which like parts are identified with the same reference characters.
The various aspects of the invention will now be described in greater detail in connection with a number of exemplary embodiments. To facilitate an understanding of the invention, many aspects of the invention are described in terms of sequences of actions to be performed by elements of a computer system or other hardware capable of executing programmed instructions. It will be recognized that in each of the embodiments, the various actions could be performed by specialized circuits (e.g., discrete logic gates interconnected to perform a specialized function), by program instructions being executed by one or more processors, or by a combination of both. Moreover, the invention can additionally be considered to be embodied entirely within any form of computer readable carrier, such as solid-state memory, magnetic disk, optical disk or carrier wave (such as radio frequency, audio frequency or optical frequency carrier waves) containing an appropriate set of computer instructions that would cause a processor to carry out the techniques described herein. Thus, the various aspects of the invention may be embodied in many different forms, and all such forms are contemplated to be within the scope of the invention. For each of the various aspects of the invention, any such form of embodiments may be referred to herein as “logic configured to” perform a described action, or alternatively as “logic that” performs a described action.
In one aspect of embodiments consistent with the invention, the continuously variable capacitor (i.e., the varactor, Cvar) normally used in the LC circuit 100 is replaced by an arrangement whose capacitance is programmable by means of an applied digital word. An exemplary switchable variable capacitor arrangement 200 is shown in
The binary-to thermometer decoder is conventionally useful for converting a binary number into control signals for selectively activating segments of a digital readout. The higher the supplied binary number, the more segments are activated. As can be seen in this example, each of the output signals is activated if its significance within the output word (i.e., the numeric value of the subscript x for each output bit sx) is less than or equal to the supplied binary value, so long as the supplied binary value is not equal to zero. When the control signals are used to switch in or out selected ones of the varactors Cvar0 . . . Cvar(2
The binary-to-thermometer decoder 250 is advantageous in two ways:
1) The function that relates the change of the accumulated size of the varactors to the change in binary value (interpreted as a decimal value) can be made arbitrary.
2) It is much easier to get a monotonic function when using the binary-to-thermometer decoder 250, especially in the presence of parasitic capacitance that will appear in every implementation of the circuitry. The monotonic behavior is very important because without it, the closed-loop system (here the PLL) can end up in a limit cycle (i.e., a steady state solution in which the control signal is undesirably in a stable oscillation).
In embodiments that utilize a binary-to-thermometer decoder 250, the number of varactors needed is 2n, where n is the word length of the binary word. A large value of n requires many varactors. For n larger than say 3 or 4, embodiments can employ the binary-to-thermometer decoder 250 to decode at least the least significant bits of the supplied binary control word, whereas the other bits are retained in their binary form. This results in a reduced number of required varactors, and at the same time makes it easier to accomplish the monotonic function discussed above.
The n-bit binary control word supplied to the binary-to-thermometer decoder 250 is generated by a control word generator 252 whose input is a signal representing the desired (or demanded) output frequency, fdesired. The control word generator 252 can be implemented as, for example, a look-up table (LUT) whose contents are stored at addresses such that frequencies within a certain region will generate a specific output control word.
The VCO gain characteristic is usually found either from simulations or from measurements. Based on this information, the break point of when to switch in or out a varactor is determined such that the concatenated VCO gain variation will be minimized in a min-max sense relative to the ideal transfer function.
In some embodiments, all parts of the variable capacitor arrangement 200 are connected in parallel at low output frequencies, whereas at high frequencies only one is connected. Different numbers of the varactors Cvar0 . . . Cvar(2
The above and other aspects are now described in greater detail. Looking first at the oscillator gain, it is part of the loop gain of the PLL. It is important that the loop gain be well controlled in a way that will guarantee the stability and bandwidth of the PLL. The loop gain can be derived from the phase-domain model, which will be described shortly. The ideal oscillator gain is found from the transfer functions in the phase-domain model. The actual oscillator gain is then mapped to the ideal curve by changing the size of the capacitance in a switchable manner.
To illustrate the strengths of the methods and apparatuses presented herein, exemplary embodiments will now be described that apply the inventive techniques in a DVB-H frequency synthesizer with certain word lengths controlling the capacitance of a voltage controlled oscillator (VCO). Of course, alternative embodiments can use different size word lengths and be applicable to other standards as well.
A first integrator 303 generates a reference phase signal, θref, and supplies this to a phase comparator 305. A phase error θε=θref−θfb generated by the phase comparator 305 contains the discrepancy between the phase of the reference (θref) and the phase (θfb) of the feedback signal 307. The phase error is the input to a phase detector, which generates the control signal to a charge pump. For purposes of the model, it is convenient to merge the phase detector and charge pump into a single detector, HD 309. The output current from the detector 309 is filtered and transformed into a corresponding control voltage level by the loop filter 311 (HLF). The loop filter 311 is used to set the stability and the closed-loop bandwidth of the PLL.
The control voltage from the loop filter 311 controls the VCO 313 (HVCO), which generates an oscillating signal whose frequency is controlled by the control voltage. In this exemplary embodiment, this frequency is divided by 2 in a fixed-modulus divider (hereinafter the prescaler 315, HPS) to generate in-phase and quadrature phase (I and Q, respectively) output signals. It will be understood, however, that the prescaler 315 is optional. However, in most cases a prescaler 315 is used to generate the quadrature phase output signals. These signals are only visible in the phase-domain model if a complex notation is used. The output frequency of the PLL, ωout, is fed back to a multiple-modulus divider (hereinafter the frequency divider 317, HFD). The divisor used by the frequency divider 317 is programmable to generate the desired output frequency. Again, since the phase is compared at the input of the phase comparator 305, a second integrator 319 integrates the frequency divided feedback signal to generate the phase signal, θfb.
The system level definitions of the transfer functions are given as follows:
HD: The transfer function of the phase-frequency detector (PFD) and the charge pump (CHP), which are treated as one unit—the detector 309. Unit: (A/rad).
HLF: The transfer function of the loop filter 311. Unit: (V/A).
HVCO: The gain of the VCO 313. Unit: (rad/(V·s)).
HPS: The transfer function of the prescaler 315, which is treated as an attenuation equal to the division number. Unit: (dimensionless).
HFD: The transfer function of the frequency divider, which is treated as an attenuation equal to the division number. Unit: (dimensionless).
Representation of an integration using the Laplace variable, s. Unit: (s).
The loop gain for the system in
The asymptotic transfer function, At∞, is given by:
The closed-loop transfer function, At, is given by:
The actual implementation of the PLL results in non-ideal transfer functions. The variation in the transfer function of the VCO 313, the prescaler 315, and the frequency divider 317 are finally compensated by controlling the charge pump current. The goal is to make the product of these transfer functions constant across the whole frequency band.
The transfer function of the frequency divider is HFD=1/N, where N is the divisor. In Eqn (2), it was shown that the asymptotic transfer function, At∞=1/HFD. This means that the divisor is given by:
To cover the DVB-H frequency band (470 MHz-860 MHz) with a 26 MHz reference frequency, N=18.1 should be used at the lower end of the frequency band, and N=33.1 should be used at the upper end. The variation in HFD is 1.83:1, meaning that the gain of the frequency divider 317 at the low frequency edge is 1.83 times larger than at the high frequency edge. A graph representing the variation of HFD over the DVB-H band is illustrated in
The VCO gain HVCO˜f3, which means that the VCO gain variation over the frequency band will be large. Theoretically, HVCO will vary in accordance with the ratio of 1:6.2. The variation of the gain product HVCOHPSHFD is actually less, however, because the oscillator gain variation is counteracted by the variation of HFD.
Still, there is a need for better controlled oscillator gain. The outcome of the equalization is that the oscillator gain at the lowest frequency band is designed to be around one fourth of the value at the highest frequency band. In the exemplary embodiment, the coarse equalization is accomplished by a switchable size of the varactor. First, the gain of the VCO is selected to achieve small variations of the product HVCOHPSHFD (herein referred to as the “gain product of the VCO and prescaler/frequency divider”) across the frequency band. More generically (e.g., because other embodiments may not include, for example, the prescaler), any fully predictable transfer function of the loop gain can be in the product that is equalized with the VCO gain. Second, the charge pump current is selected to minimize the variations of the product HDHVCOHPSHFD. The algorithm for selecting the charge pump current is not discussed here in great detail because it is independent of prior equalization and is performed after the oscillator gain compensation. A summary of how it is performed is as follows:
In addition to the gain equalization already made by selecting HVCO, the charge pump current is selected. The algorithm for the charge pump current selection is as follows:
1. Generate f=HVCOHPSHFD.
2. Calculate the average value favg=(max(f−1)+min(f−1))/2.
3. Normalize, fnorm=f−1/favg.
4. Adapt fnorm to the selected average charge pump current by first finding ICHPavg=ICHP/Istep, and then calculating ICHPsel=round (ICHPavgfnorm).
5. Limit the output control signal to ICHPsel ε{1,2b−1}, where b is the number of bits controlling the charge pump current.
Techniques for minimizing the gain product variation of the VCO and prescaler/frequency divider, HVCOHPSHFD, will now be discussed in greater detail. After initially minimizing this variation, the detector 309 is used to further reduce the variation of the gain product of the VCO, phase detector and prescaler/frequency divider, HDHVCOHPSHFD. In other words, first the VCO gain is controlled, followed by control of the charge pump current to refine and equalize the gain from these stages.
The gain of the prescaler/frequency divider, HPSHFD, is fully predictable. The ideal transfer function of the VCO gain to make HVCOHPSHFD constant over the frequency range of interest is (HPSHFD)−1. The graph 501 in
The discussion will now focus on an exemplary varactor implementation of the switchable variable capacitor arrangement 200.
The circuit of
In this case, the VCO 909 includes a switchable variable capacitor arrangement 911 as described earlier (e.g., see
The PLL 900 further includes a switch controller 913 for determining which of the switches in the switchable variable capacitor arrangement 911 will be open, and which will be closed. Based on the desired frequency, fdesired, the switch controller 913 opens and closes appropriate sets of switches so as to produce a desired VCO gain, HVCO, that will counteract variations in HPSHFD, such that the overall variation of the gain product HVCOHPSHFD is reduced in a predefined frequency range of interest. In alternative embodiments, the switch controller 913 can receive other signals to obtain equivalent information from which to base switching configurations. More broadly, the VCO gain, HVCO, is controlled such that the variation of the loop gain of the closed-loop system is minimized. In practice, the VCO gain depends not only on the size of the variable capacitors, Cvar0 . . . Cvar(2
The remaining components of the PLL 900 are conventional. A prescaler 915 receives the signal generated by the VCO 909 and divides this by a fixed number, as needed, to generate a PLL output signal having a desired frequency.
The PLL output signal is also supplied to a feedback path that includes a divide-by-N frequency divider 917. The use of such frequency dividers for the purpose of causing the frequency of the PLL output signal to have a particular proportion to the input reference frequency is well-known, and therefore need not be described here in detail. The output of the frequency divider 917 is the feedback signal that is supplied to the second input of the phase difference detector 903, as earlier described.
An oscillator spanning over a wide frequency range benefits from using a switchable variable capacitor arrangement, such as a switchable varactor, because the oscillator gain can be better controlled than if a single variable capacitor (e.g., varactor) is used. By reducing the oscillator gain variation, the stability and the bandwidth of the PLL are easier to control. Also, by reducing the oscillator gain variation, the noise sensitivity at the input of the oscillator shows less variation. This makes the optimization of the noise from the loop filter easier. Often, more noise from the loop filter can be allowed compared to a single varactor implementation for the same phase noise performance at the output of the PLL.
The various embodiments in conformance with the invention enable the use of broadband oscillators with qualities normally found in narrow-band oscillators. The oscillator gain equalization is achieved by piecewise approximation of the ideal transfer function. The switchable varactors add some extra components and lower the Q value of the varactor arrangement. However, by sensible sizing of the switches, the loss in phase-noise performance is made negligible.
The invention has been described with reference to particular embodiments. However, it will be readily apparent to those skilled in the art that it is possible to embody the invention in specific forms other than those of the embodiment described above.
For example, the switchable variable capacitor arrangement has been illustrated above as having switch/variable capacitor elements that are connected in parallel. However, alternative embodiments can easily be derived in which variable capacitors are switchably connected in series with one another rather than in parallel to bring about the desired range in the total capacitance of the switchable variable capacitor arrangement. In yet other alternatives, embodiments can easily be derived in which variable capacitors are switchably connected in an arrangement involving combinations of parallel and series connections.
Also, the above-described embodiments have all involved voltage controlled oscillators. However, it is well known that other oscillators are controllable by something other than voltage, for example, current. The various principles described above are equally applicable to such other types of oscillators. Accordingly, the term “controlled oscillator” is used herein to refer to controllable oscillators, regardless of whether that control is by means of voltage, current, or some other parameter.
Thus, the described embodiments are merely illustrative and should not be considered restrictive in any way. The scope of the invention is given by the appended claims, rather than the preceding description, and all variations and equivalents which fall within the range of the claims are intended to be embraced therein.