Aspects of the present disclosure relate generally to clock generators, and in particular, to an apparatus and method for generating a clock signal with low jitter and constant frequency while consuming low power.
A clock signal generator is used to generate a clock signal from which various circuit functions depend. For example, the clock signal may be used in time-sensitive circuits, such as wake-up circuits, for initiating an operation based on a time parameter. In such circuits, the time parameter depends on the clock signal. For performance purposes, it is desired that the clock signal generator consume minimal power while generating a clock signal with low jitter and constant frequency.
The following presents a simplified summary of one or more embodiments in order to provide a basic understanding of such embodiments. This summary is not an extensive overview of all contemplated embodiments, and is intended to neither identify key or critical elements of all embodiments nor delineate the scope of any or all embodiments. Its sole purpose is to present some concepts of one or more embodiments in a simplified form as a prelude to the more detailed description that is presented later.
An aspect of the disclosure relates to an apparatus including a clock generator configured to generate a clock signal; and a comparator configured to generate a signal at a first logic level to initiate the clock generator to generate a first phase of the clock signal based on a ramp voltage and a reference voltage at first and second inputs of the comparator, respectively, and generate the signal at a second logic level to initiate the clock generator to generate a second phase of the clock signal based on the ramp voltage and the reference voltage at the second and first inputs of the comparator, respectively.
Another aspect of the disclosure relates to a method including generating a first signal based on a ramp voltage and a reference voltage at first and second nodes, respectively; generating a second signal based on the ramp voltage and the reference voltage at the second and first nodes, respectively; generating a first phase of a clock signal in response to the first signal; and generating a second phase of the clock signal in response to the second signal.
Another aspect of the disclosure relates to apparatus including means for generating a first signal based on a ramp voltage and a reference voltage at first and second nodes, respectively, wherein the means for generating the first signal is configured to generate a second signal based on the ramp voltage and the reference voltage at the second and first nodes, respectively; and means for generating a first phase of a clock signal in response to the first signal, wherein the means for generating the first phase of the clock signal is configured to generate a second phase of the clock signal in response to the second signal.
To the accomplishment of the foregoing and related ends, the one or more embodiments include the features hereinafter fully described and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail certain illustrative aspects of the one or more embodiments. These aspects are indicative, however, of but a few of the various ways in which the principles of various embodiments may be employed and the description embodiments are intended to include all such aspects and their equivalents.
The detailed description set forth below, in connection with the appended drawings, is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. The detailed description includes specific details for the purpose of providing a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.
Wearable medical devices often are configured to perform a medical measurement and/or therapy on patients based on a predefined schedule. These devices typically include a wake up circuit that generates interrupts according to the predefined schedule so that the measurement and/or therapy are administered during the appropriate times. Other devices, such as smart phones, also use wake up circuits to effectuate time-based operations.
The RC relaxation oscillator 110 generates a substantially-periodic or clock signal (referred to in
The digital control interface 135 receives a control signal CNTL, which may be generated by a central processing unit (CPU) core of a system on chip (SOC) type integrated circuit (IC) in response to a user interface. Based on the control signal CNTL, the digital control interface 135 programs any one or more of the set of time-based functional units 140-165. Thus, based on the operational clock signal received from the divider 115 and the programming instruction from the digital control interface 135, one or more of the set of time-based functional units 140-165 generate time-based signals to initiate an interrupt. In response to the interrupt-initiating signal, the interrupt-generating device 170 generates an interrupt (INT), which is outputted via the output driver 175, for use by other devices (e.g., a medical monitoring and/or therapy administering device) to perform the desired operation at such time.
As illustrated, the components enclosed by the dashed line operate in the digital domain. Thus, these devices generally do not consume significant power. However, the RC relaxation oscillator operates in the analog domain, and typically consumes significant power. Further, for generating the interrupts at precise times, the frequency of the base clock signal generated by RC relaxation oscillator 110 should be precisely controlled. This includes the reduction or minimizing of jitter (i.e., variation in the periodicity of the substantially-periodic signal).
For RC relaxation oscillators, the jitter
may be determined in accordance with the following equation:
Where σ is the period variation, T0 is the mean period, Vheadroom is the voltage difference between a supply voltage VDD and voltage levels at the inputs of a comparator, Vramp is a maximum ramp voltage, Ic is a current used for generating the ramp voltage, Icomp is a supply current for the comparator, and Kc, Ki1, and Ki2 are constants.
As the above equation illustrates, the jitter
is reduced by increasing the power consumption of the oscillator 110 (i.e., by increasing IC, Icomp, Vheadroom and/or Vramp).
Thus, RC relaxation oscillators, which have been specifically designed for low jitter (i.e., high timing accuracy), suffer from consuming substantial amount of power. Other RC relaxation oscillators, which have been specifically designed for low power consumption, suffer from high jitter (i.e., high timing accuracy compromised). Thus, there is a need for a low jitter and low power RC relaxation oscillator.
In summary, some main concepts of this disclosure include: (1) swap a ramp voltage VRAMP and threshold voltage VTH at inputs of a comparator of an RC relaxation oscillator per each half-period of a clock signal so that any offset voltage present in the comparator cancels out for each period of the clock signal, thereby achieving a substantially constant period or frequency; (2) supply sufficient power to the comparator to reduce jitter and achieve precise periodicity of the generated clock signal; and (3) only enable the comparator during a small portion of each period of the clock signal in order to reduce the average power consumption of the oscillator. These concepts are further explained with reference to the following exemplary embodiments.
In particular, the RC relaxation oscillator 200 includes a combined reference and threshold voltage generator including current source 210 coupled in series with first and second resistors R1 and R2 between an upper voltage rail VDD and a lower voltage rail (e.g., ground). The combined reference and threshold voltage generator further includes a capacitor C across the series-connected first and second resistors R1 and R2. A substantially constant reference voltage VREF is generated at a node between the current source 210 and resistor R1. A substantially constant threshold voltage VTH is generated at a node between the first and second resistors R1 and R2.
The RC relaxation oscillator 200 further includes a ramp voltage generator including current source 220, switching devices SW5-SW8 (e.g., each configured as a transmission gate), a first capacitor C1, and a second capacitor C2. The current source 220 is coupled between the upper voltage rail VDD and respective first terminals of switching devices SW5 and SW6. As discussed in more detail herein, a ramp voltage VRAMP is generated at the first terminals of the switching devices SW5 and SW6.
The first capacitor C1 is coupled between a second terminal of the switching device SW5 and ground. The switching device SW7 includes first and second terminals coupled across the first capacitor C1. Similarly, the second capacitor C2 is coupled between a second terminal of the switching device SW6 and ground. The switching device SW8 includes first and second terminals coupled across the second capacitor C2. The first capacitor C1, second capacitor C2, and capacitor C may be configured to have the same capacitance.
The switching devices SW6 and SW7 each includes non-complementary and complementary control inputs configured to receive the non-complementary phase Φ and complementary phase
The RC relaxation oscillator 200 further includes an enabling comparator 230 including a positive input terminal configured to receive the ramp voltage VRAMP, and a negative input terminal configured to receive the threshold voltage VTH. Additionally, the RC relaxation oscillator 200 includes a main comparator 240 including a negative input terminal configured to receive a first voltage V1 (which is the reference voltage VREF during Φ=1 (
The enabling comparator 230 includes an output configured to produce an enabling signal en for enabling the main comparator 240. If the enabling signal en is deasserted, the main comparator 240 does not perform the normal comparison operation and consumes relatively small amount of power, if any. If the enabling signal en is asserted, the main comparator 240 performs the normal comparison operation and consumes significant power in doing so, so as to reduce jitter in the clock signal. The main comparator 240 includes an output coupled to a clock generator 250 which, in turn, produces the non-complementary and complementary phases Φ and
The RC relaxation oscillator 200 further includes a set of configuration switching devices SW1-SW4 (each may be configured as a transmission gate) for routing the ramp voltage VRAMP and reference voltage VREF to the inputs of the main comparator 240 based on the current phase of the clock signal. For example, if the current phase of the clock signal is Φ=1 (
The switching devices SW1 and SW2 include respective first terminals coupled to the node between the current source 210, and second terminals coupled to the negative and positive input terminals of the main comparator 240, respectively. The switching devices SW3 and SW4 include respective first terminals coupled to the respective second terminals of the switching devices SW5 and SW6, and second terminals coupled to the negative and positive input terminals of the main comparator 240, respectively.
The switching devices SW1 and SW4 each includes non-complementary and complementary control inputs configured to receive the non-complementary phase Φ and complementary phase
The operation of the RC relaxation oscillator 200 is discussed as follows with reference to
The closed switching device SW6 allows the current source 220 to charge the second capacitor C2 with a current I to generate the ramp voltage VRAMP. The ramp voltage VRAMP is applied to the positive input of the main comparator 240 as voltage V2 via the closed switching device SW4. The closed switching device SW1 causes the reference voltage VREF to be applied to the negative input of the main comparator 240 as voltage V1. The closed switching device SW7 causes capacitor C1 to discharge during this phase.
The open switching device SW5 isolates the current source 220 (and consequently, the ramp voltage VRAMP) from ground via closed switching device SW7. Similarly, the open switching device SW3 isolates the reference voltage VREF from ground. The switching device gate SW8 allows the second capacitor C2 to be charged by the current I. And, the open switching device SW2 decouples or electrically isolates the positive terminal (V2=VRAMP) from the negative terminal (V1=VREF) of the main comparator 240.
With reference to a timing diagram depicted in
When the ramp voltage VRAMP reaches or exceeds the threshold voltage VTH, the enabling comparator 230 asserts the enable signal (en) to enable the main comparator 240. The enabling comparator 230 is a relatively low power consumption device, whereas the main comparator 240 is a relatively high power consumption device. If, for example, the threshold voltage VTH is set to be approximately 90% of the reference voltage VREF (e.g., R2/(R1+R2)=0.9), then the main comparator 240 is only enabled for 10% during this phase. Thus, this significantly reduces the average power consumption of the RC relaxation oscillator 200.
When the voltage V2 (i.e., VRAMP) reaches or exceeds V1 (i.e., VREF), the main comparator 240 transitions its output from a low logic voltage to a high logic voltage. In response to the high logic voltage, the clock generator 250 generates the Φ=0 (
The closed switching device SW5 allows the current source 220 to charge the first capacitor C1 with a current I to generate the ramp voltage VRAMP. The ramp voltage VRAMP is applied to the negative input of the main comparator 240 as voltage V1 via the closed switching device SW3. The closed switching device SW2 causes the reference voltage VREF to be applied to the positive input of the main comparator 240 as voltage V2. The closed switching device SW8 causes the second capacitor C2 to discharge during this phase.
The open switching device SW6 isolates the current source 220 (and consequently, the ramp voltage VRAMP) from ground via the closed switching device SW8. Similarly, the open switching device SW4 isolates the reference voltage VREF from ground. The open switching device SW7 allows the first capacitor C1 to be charged by the current I. And, the open switching device SW1 decouples or electrically isolates the negative terminal (V1=VRAMP) from the positive terminal (V2=VREF) of the main comparator 240.
With reference again to the timing diagram depicted in
When the ramp voltage VRAMP reaches or exceeds the threshold voltage VTH, the enabling comparator 230 asserts the enable signal (en) to enable the main comparator 240. As mentioned, the enabling comparator 230 is a relatively low power consumption device, whereas the main comparator 240 is a relatively high power consumption device. If, for example, the threshold voltage VTH is set to be approximately 90% of the reference voltage VREF (e.g., R2/(R1+R2)=0.9), then the main comparator 240 is only enabled for 10% during this phase. Thus, this significantly reduces the average power consumption of the RC relaxation oscillator 200.
When the voltage V1 (i.e., VRAMP) reaches or exceeds V2 (i.e., VREF), the main comparator 240 transitions its output from a high logic voltage to a low logic voltage. In response to the logic low voltage, the clock generator 250 generates the Φ=1 (
With continued reference to
If there is an offset voltage VOS associated with the main comparator 240, the duration of one of the phases will be increased by an amount of C*VOS/I, and the duration of the other phase will be decreased by C*VOS/I. However, the period tp of the substantially-periodic signal remains substantially unaffected by the offset voltage VOS as the duration increase of one of the phases cancels out with the duration decrease of the other phase. That is, the period tp is maintained stable at substantially 2*(RC+tdelay).
In the example depicted in
Thus, because the offset voltage VOS of the main comparator 240 does not affect the period of the clock signal, the RC relaxation oscillator 200 is able to generate a clock signal with a substantially constant frequency. Additionally, because the main comparator 240 may be configured to consume significant power, the RC relaxation oscillator 200 Is able to generate a clock signal with reduced jitter. Further, because the enabling comparator 230 enables the main comparator 240 when the ramp voltage VRAMP reaches or exceeds the threshold voltage VTH, the main comparator 240 consumes power only during a small portion of the period of the clock signal. Thus, the average power consumption of the RC relaxation oscillator 200 is relatively small.
The method 500 includes generating a first signal based on a ramp voltage and a reference voltage at first and second nodes, respectively (block 510). The method 500 further includes generating a second signal based on the ramp voltage and the reference voltage at the second and first nodes, respectively (block 520). An example of means for generating the first and second signals includes the comparator 240.
The method 500 also includes generating a first phase of a clock signal in response to the first signal (block 530). Additionally, the method 500 includes generating a second phase of the clock signal in response to the second signal (block 540). An example of means for generating the first and second phases of the clock signal includes the clock generator 250.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.