1. Field
The present disclosure relates generally to a resistor capacitor (RC) oscillator, and more particularly, to a switched-capacitor RC oscillator.
2. Background
An RC oscillator generates an oscillating signal at a frequency based on an RC constant. Compared to other types of oscillators, the RC constant (and therefore the frequency) of RC oscillators is easier to adjust compared to other types of RC oscillators. Accordingly, RC oscillators are increasingly in demand in applications such as in wireless communications. For example, a switched-capacitor RC oscillator may be used to generate an oscillating signal for a phase locked loop in a transmitter/receiver of a user equipment (UE).
One type of RC oscillator is the switched-capacitor RC oscillator, which utilizes a plurality of capacitors alternately charged at a constant rate (e.g., based on the RC constant). One or more comparators compare the voltages of the plurality of capacitors to a reference voltage to generate the oscillating signal.
Aspects of a switched-capacitor RC oscillator are disclosed. In one aspect, the switched-capacitor RC oscillator includes a first capacitive element and a second capacitive element. A comparator includes a first input, a second input, and an output outputting an oscillating signal. An integrator includes a first input, a second input coupled to a reference voltage source, and an output coupled to the second input of the comparator. A switch circuit is configured to provide a voltage of the first capacitive element to the first input of the comparator in a cycle and a voltage of the second capacitive element to the first input of the comparator in a subsequent cycle. The integrator is configured to sample and hold the voltage of the second capacitive element continuously in the cycle.
Aspects of a method to operate a switched-capacitor RC oscillator are disclosed. A first capacitive element is charged in a cycle. A voltage of a second capacitive element is sampled and held continuously in the cycle. An integration is performed based on the voltage of the second capacitive element and a reference voltage in the cycle. The voltage of the first capacitive element is compared to an output of the integration in the cycle. A first pulse of an oscillating signal is generated based on a result of the comparison in the cycle.
Further aspects of a switched-capacitor RC oscillator are disclosed. The switched-capacitor RC oscillator includes charging means for charging a first capacitive element in a cycle. Integrating means samples and holds a voltage of a second capacitive element continuously in the cycle, and integrates based on the voltage of the second capacitive element and a reference voltage in the cycle. Comparing means compares a voltage of the first capacitive element to an output of the integration in the cycle and for generating a first pulse of an oscillating signal based on a result of the comparison in the cycle.
It is understood that other aspects of apparatus and methods will become readily apparent to those skilled in the art from the following detailed description, wherein various aspects of apparatus and methods are shown and described by way of illustration. As will be realized, these aspects may be implemented in other and different forms and its several details are capable of modification in various other respects. Accordingly, the drawings and detailed description are to be regarded as illustrative in nature and not as restrictive.
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 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. The term “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other designs.
Conceptually, the switch circuit 140 may be viewed as including multiple switches 142, 144, and 146. The switch 142 alternately couples the first capacitive element 120 and the second capacitive element 130 to the current source 150. Thus, current source 150 may alternately charge the first capacitive element 120 and the second capacitive element 130. The switch 146 alternately couples the first capacitive element 120 and the second capacitive element 130 to a reset voltage source. The reset voltage may be, e.g., ground (GND). Thus, the first capacitive element 120 and the second capacitive element 130 are alternately discharged.
The switch 144 alternately couples the first capacitive element 120 and the second capacitive element 130 to the first input 112 of the comparator 110. Thus the voltage of the first capacitive element 120 and the voltage of the second capacitive element 130 are alternately provided to the first input 112 of the comparator 110. The second input of the comparator 110 is coupled to a reference voltage from a reference voltage source. In one implementation, the reference voltage may be generated by providing a current to a resistor. For example, the current source 172 provides a current to the resistor 174 to generate the reference voltage. In this fashion, an oscillation frequency of the exemplary switched-capacitor RC oscillator may be adjusted by adjusting a ratio of the impedance of the current source 172 and the resistor 174. The comparator 110 compares the voltage at the first input 112 (the voltage of the first capacitive element 120 or the voltage of the second capacitive element 130) with the reference voltage. In one example, the voltage on the first capacitive element 120 is coupled to the first input 112 of the comparator 110, while the second capacitive element 130 is being discharged. When the voltage of the first capacitive element 120 is charged by the current source 150 to exceed the reference voltage, the comparator triggers and outputs a high level at output 116.
In one configuration, the clock generator 160 receives input from the output 116 of the comparator 110, and generates a control signal or signals for the switch circuit 140. For example, the clock generator 160 may respond to the output 116 going high and generate control signals to cause the switch 144 to switch and to couple the second capacitive element 130 to the first input 112 of the comparator 110. The second capacitive element 130 being previously discharged, the voltage on the first input 112 of the comparator 110 would thus be GND and be lower than the reference voltage. In response, the comparator outputs a low level at output 116, while the current source 150 charges the second capacitive element 130. As the voltage at the second capacitive element 130 reaches the reference voltage, the process repeats, and an oscillating signal is formed at the output 116.
For various reasons, the comparator 110 may trigger at a triggering voltage that is different from the reference voltage. For example, process variation may cause a mismatch of the first input 112 and the second input 114 of the comparator 110. Moreover, the delay of the comparator 110 likewise may cause errors in the trigger voltage. As a result, the comparator 110 may trigger (e.g., outputting a high level at the output 116) at a triggering voltage that is higher than the reference voltage. The exemplary embodiment described by this disclosure removes the trigger voltage overshoot arising from the process variation and the comparator delay. The timing diagrams 220 and 230 illustrate such example. In the timing diagram 220, the comparator 110 triggers (outputting a high level at the output 116) at a triggering voltage that is higher than the reference voltage by a voltage VERR. As illustrated in the timing diagram 230, the trigger voltage being different from the reference voltage results in the oscillating signal having a period of T+TERR. In other words, the oscillating signal at the output 116 of the comparator 110 oscillates at a frequency 1/(T+TERR).
The integrator 310 performs integration based on the voltage at the first input 312 (the voltage of the first capacitive element 120 or the voltage of the second capacitive element 130) and the voltage at the second input 314 (reference voltage). For example, the integrator 310 integrates a difference between the voltages at the first input 312 and the second input 314. In one configuration, the integrator 310 outputs, at the output 316, the voltage at the first input 312 subtracted by the integrated difference between the voltage at the first input 312 and the second input 314 (reference voltage) over time. The operation of the integrator 310 in this example may be described by the following equation:
V
O
=V
IN2−∫(VIN1−VIN2),
where VO is the voltage level at the output 316 (provided to the comparator 110), VIN1 is the voltage level at the first input 312 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 148), and VIN2 is the voltage level at the second input 314 (reference voltage). For each cycle, the VO is based on the VO of the previous cycle. That is, in a current cycle, the comparator 110 compares the voltage at the first input 112 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 144) with the voltage at the second input 114 (current VO). In the subsequent cycle, the voltage at the first input 112 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 144) is then provided to the integrator 310 as VIN1 to generate the VO of the subsequent cycle. Thus, over multiple iterations, VO will converge at approximately the reference voltage subtracted by VERR, and VIN1 (which corresponds to the actual trigger voltage in
At the first cycle, the comparator switches to compare the voltage of the first capacitive element 120 to the voltage at the second input 114. This may be accomplished by the switch 144 switching and coupling the voltage of the first capacitive element 120 to the first input 112 of the comparator 110. When the voltage of the first capacitive element 120 reaches the triggering voltage and exceeds the voltage at the second input 114 of the comparator 110 (e.g., VO provided by the integrator 310), the comparator 110 triggers and outputs a pulse of the oscillating signal at the output 116 (at 520).
Moreover, in the first cycle, the switch 148 switches and couples the voltage of the second capacitive element 130 (which is at the triggering voltage at 510) to the first input 312 of the integrator 310. The integrator 310 samples or captures the voltage of the second capacitive element 130 and performs the integration function as described above. The integrator 310 then provides the integration result (VO) to the second input 114 of the comparator 116. At a later portion of the first cycle, the integrator 310 holds the sampled voltage (and therefore, the output 316 of the integrator 310 also remains stable) for the duration of the first cycle. In one example, the holding of the sampled voltage is provided by the switch 148 switching and decoupling the second capacitive element 130 from the first input 312 of the integrator 310. In one configuration, during the hold period, the switch 146 switches and couples the second capacitive element 130 (now decoupled from the integrator 310) to the reset voltage (e.g., ground or GND) to discharge the second capacitive element 130.
The comparator 110 generating a pulse of the oscillating signal at 520 starts the second cycle. At the second cycle, the comparator 110 switches to compare the voltage of the second capacitive element 130 to the voltage at the second input 114 (e.g., VO provided by the integrator 310). This may be accomplished by the switch 144 switching and coupling the voltage of the second capacitive element 130 to the first input 112 of the comparator 110. When the voltage of the second capacitive element 130 reaches the triggering voltage and exceeds the voltage at the second input 114 of the comparator 110 (e.g., VO provided by the integrator 310), the comparator 110 triggers and outputs a pulse of the oscillating signal at the output 116 (at 530).
Moreover, in the second cycle, the switch 148 switches and couples the voltage of the first capacitive element 120 (which is at the triggering voltage at 520) to the first input 312 of the integrator 310. The integrator 310 samples or captures the voltage of the first capacitive element 120 and performs the integration function as described above. The integrator 310 then provides the integration result (VO) to the second input 114 of the comparator 116. At a later portion of the second cycle, the integrator 310 holds the sampled voltage (and therefore, the output at output 316) for the duration of the second cycle. In one example, the holding is configured by the switch 148 switching and decoupling the first capacitive element 120 from the first input 312 of the integrator 310. In one example, the holding of the sampled voltage is provided by the switch 148 switching and decoupling the first capacitive element 120 from the first input 312 of the integrator 310. In one configuration during the hold period, the switch 146 switches and couples the first capacitive element 120 (now decoupled from the integrator 310) to the reset voltage (e.g., ground or GND) to discharge the first capacitive element 120.
In the exemplary switched-capacitor RC oscillator, the switch 144 includes an NMOS transistor 544 controlled by the clock φ. When activated by the clock φ, the transistor 544 couples the first input 112 of the comparator 110 to the first capacitive element 120, thereby providing the voltage of the first capacitive element 120 to the comparator 110 for comparison with the voltage on the second input 114 (VO provided by the integrator 310) of the comparator 110. The switch 144 further includes an NMOS transistor 545 controlled by the clock φ_. When activated by the clock φ_, the transistor 545 couples the first input 112 of the comparator 110 to the second capacitive element 130, thereby providing the voltage of the second capacitive element 130 to the comparator 110 for comparison with the voltage on the second input 114 (VO provided by the integrator 310) of the comparator 110.
In the exemplary switched-capacitor RC oscillator, the switch 146 includes an NMOS transistor 546 controlled by a clock φd2. When activated by the clock φd2, the transistor 546 couples a reset voltage (such as ground or GND) to the second capacitive element 130 to discharge the voltage of the second capacitive element 130 to ground. The switch 146 further includes an NMOS transistor 547 controlled by the clock φd2
In the exemplary switched-capacitor RC oscillator, the switch 148 includes an NMOS transistor 548 controlled by a clock φd1. When activated by the clock φd1, the transistor 548 couples the first input 312 of the integrator 310 to the second capacitive element 130 to provide the voltage of the second capacitive element 130 to the integrator 310 for integration. The switch 148 further includes an NMOS transistor 549 controlled by a clock φd1
The integrator 310 may include an operational amplifier 517 and a capacitor 510. The first input 312 of the integrator 310 forms the inverting input (−) of the operational amplifier 517. The second input 314 of the integrator 310 forms the non-inverting input (+) of the operational amplifier 517. A capacitor 518 is coupled to the output 316 and the first input 312, forming a negative feedback of the operational amplifier 517. In operation, a voltage of the first capacitive element 120 or the second capacitive element 130 is put onto the inverting input (−) of the operational amplifier 517, and a difference between that input voltage and the reference voltage at 314 is provided at the output of the operational amplifier 517 by charge transfer. In the subsequent cycle, the comparator 110 compares the voltage of the first capacitive element 120 or the voltage of the second capacitive element 130 to the output voltage VO. As described above, over multiple iterations, the system would converge to stable voltages where the triggering voltage approximately equals to the reference voltage, and the output voltage VO approximately equals to the reference voltage subtracted by the voltage error VERR.
In the exemplary switched-capacitor RC oscillator, the comparator 110 may be an operational amplifier having a non-inverting input 112, an inverting input 114, and an output 116 outputting the oscillating signal. The exemplary switched-capacitor RC oscillator may further include the clock generator 160, which receives the oscillating signal at the output 116 and generates the clocks φ, φ_, φd1, φd1
The pulse 710 causes the clock st to activate (goes high) and its complementary clock φ_ to deactivate (goes low), initiating the first cycle (712). The transistor 542 is turned on by the clock φ. Upon being turn on, the transistor 542 couples the current source 150 to the first capacitive element 120 and charges the first capacitive element 120. The transistor 544 is also turned on by the clock φ, and couples the first input 112 of the comparator 110 to the first capacitive element 120 and for comparison. The clock φ_ deactivates and turns off the transistors 543 and 545, which decouples the second capacitive element 130 from the current source 150 and the first input 112 of the comparator 110.
In the first cycle, the clock φactivates and causes the clock φd1 to activate (714). The clock φd1 is activated for a pulse of a predetermined duration (to time T1), then deactivates. The clock generator 160 may generate the clock φd1 of a predetermined duration using a delay. For example, the delay may be generated using current-starved transistors driving a capacitive load. The clock φd1 activates and couples the second capacitive element 130 to the first input 312 of the integrator 310, which allows the integrator 310 to sample the voltage of the second capacitive element 130 in this time period. The integrator 310 performs the integration process based on the voltage of the second capacitive element 130 and the reference voltage in the cycle as described above, and provides the integration output to the comparator 110 by way of the second input 114 of the comparator 110.
When the clock φd1 deactivates at time T1, the second capacitive element 130 is decoupled from the first input 312 of the integrator 310. The integrator 310 holds the voltage inputted at the first input 312 (e.g., across the capacitor 518). Thus, the integrator 310 samples and holds the voltage of the second capacitive element 130 (received at the first input 312 of the integrator 310) continuous for the duration of the first cycle. Because the inputs of the integrator 310 are stable for the cycle, the output 316 of the integrator 310 is likewise stable and is provided to the comparator 110 (the second input 114) continuously for the duration of the first cycle.
The clock φd1 deactivates and causes the clock generator 160 to activate the clock φd2 as a pulse at time T2. The clock φd2 activates and turns on the transistor 546, which couples the second capacitive element 130 to the reset voltage or GND. The second capacitive element 130 is thus discharged to ground in the first cycle.
As illustrated in
Referring back to
In the second cycle, the clock φ_ activates and causes the clock φd1
When the clock φd1
The clock φd1
As illustrated in
In the first cycle, clock φactivates and turns on the transistors 1012 and 1014. The clock φ_ deactivates and turns off the transistors 1013 and 1015. In this configuration, the current source 150 charges one of the capacitive elements 120 and 130, and the current source 172 supplies the reference voltage. In the second cycle, the configuration is reversed. The clock φ_ activates and turns on the transistors 1013 and 1015. The clock φ deactivates and turns off the transistors 1012 and 1014. In this configuration, the current source 172 charges one of the capacitive elements 120 and 130, and the current source 150 supplies the reference voltage. By switching the current sources, the error caused by the discrepancy between the current source 150 and the current source 172 may be minimized. By alternating the current supplies, the polarities of the errors caused by the discrepancy between the current source 150 and the current source 172 may be alternately subtracted instead of being integrated in over the cycles.
As described above, the current source 150 may provide the means for charging a first capacitive element 120 in a cycle and a second capacitive element 130 in a subsequent cycle. The integrator 310 may provide the means for sampling and holding a voltage of the second capacitive element 130 continuously in the cycle, and sampling and holding a voltage of the first capacitive element 120 continuously in the subsequent cycle. The integrator 310 may further provide the means for integrating based on the voltage of the second capacitive element 130 and the reference voltage in the cycle, and integrating based on the voltage of the first capacitive element and the reference voltage in the subsequent cycle. The integrator 310 may be configured to integrate a difference between the voltage of the first capacitive element 120 and the reference voltage of the reference voltage source 570 in the cycle. The integrator 310 may further be configured to provide an output of the integration continuously to the second input 114 of the comparator 110.
The comparator 110 may provide the means for comparing the voltage of the first capacitive element 120 to an output of the integration (e.g., at the output 316 of the integrator 310) in the cycle and for comparing the voltage of the second capacitive element 130 to the output of the integration in the subsequent cycle. The comparator 110 may further provide the means for generating a first pulse 720 of an oscillating signal based on a result of the comparison in the cycle, and for generating a second pulse 730 of the oscillating signal based on the result of the comparison in the subsequent cycle.
The switch circuit 140, and in particular the switch 142, may provide the means for coupling the current source 150 to the first capacitive element 120 to charge the first capacitive element 120 in the cycle, and provide the means for coupling the current source 150 to the second capacitive element 130 to charge the second capacitive element in the subsequent cycle.
At 1104, a voltage of a second capacitive element is sampled and held continuously in the cycle. For example, referring to
At 1106, integration is performed based on the voltage of the second capacitive element and a reference voltage in the cycle. At 1108, a difference between the voltage of the second capacitive element and the reference voltage in the cycle is integrated. For example, referring to
V
O
=V
IN2−∫(VIN1−VIN2),
where VO is the voltage level at the output 316 (provided to the comparator 110), VIN1 is the voltage level at the first input 312 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 148), and VIN2 is the voltage level at the second input 314 (reference voltage). For each cycle, the VO is based on the VO of the previous cycle. That is, in a current cycle, the comparator 110 compares the voltage at the first input 112 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 144) with the voltage at the second input 114 (current VO). In the subsequent cycle, the voltage at the first input 112 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 144) is then provided to the integrator 310 as VIN1 to generate the VO of the subsequent cycle. Thus, over multiple iterations, VO will converge at approximately the reference voltage subtracted by VERR, and VIN1 (which corresponds to the actual trigger voltage in
At 1110, the output of the integration is provided continuously for the comparison in the cycle. For example, referring to
At 1112, the voltage of the first capacitive element is compared to an output of the integration in the cycle. At 1114, a first pulse of an oscillating signal is regenerated based on a result of the comparison in the cycle. For example, referring to
At 1116, a second capacitive element is charged in a subsequent cycle. For example, referring to
At 1118, the voltage of the first capacitive element is sampled and held continuously in the subsequent cycle. For example, referring to
At 1120, integration is performed based on the voltage of the first capacitive element and the reference voltage in the subsequent cycle. For example referring to
V
O
=V
IN2−∫(VIN1−VIN2),
Where VO is the voltage level at the output 316 (provided to the comparator 110), VIN1 is the voltage level at the first input 312 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 148), and VIN2 is the voltage level at the second input 314 (reference voltage). For each cycle, the VO is based on the VO of the previous cycle. That is, in a current cycle, the comparator 110 compares the voltage at the first input 112 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 144) with the voltage at the second input 114 (VO of current cycle). In the subsequent cycle, the voltage at the first input 112 (the voltage at the first capacitive element 120 or the voltage at the second capacitive element 130 provided by the switch 144) is then provided to the integrator 310 as VIN1 to generate the VO of the subsequent cycle. Thus, over multiple iterations, VO will converge at approximately the reference voltage subtracted by VERR, and VIN1 (which corresponds to the actual trigger voltage in
At 1122, the voltage of the second capacitive element is compared to the output of the integration in the subsequent cycle. At 1124, a second pulse of the oscillating signal based on the result of the comparison is generated in the subsequent cycle. For example referring to
The specific order or hierarchy of blocks in the method of operation described above is provided merely as an example. Based upon design preferences, the specific order or hierarchy of blocks in the method of operation may be re-arranged, amended, and/or modified. The accompanying method claims include various limitations related to a method of operation, but the recited limitations are not meant to be limited in any way by the specific order or hierarchy unless expressly stated in the claims.
It is understood that the specific order or hierarchy of steps in the processes disclosed is an illustration of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged. Further, some steps may be combined or omitted. The accompanying method claims present elements of the various steps in a sample order, and are not meant to be limited to the specific order or hierarchy presented.
The previous description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects. Thus, the claims are not intended to be limited to the aspects shown herein, but is to be accorded the full scope consistent with the language claims, wherein reference to an element in the singular is not intended to mean “one and only one” unless specifically so stated, but rather “one or more.” Unless specifically stated otherwise, the term “some” refers to one or more. All structural and functional equivalents to the elements of the various aspects described throughout this disclosure that are known or later come to be known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be encompassed by the claims. Moreover, nothing disclosed herein is intended to be dedicated to the public regardless of whether such disclosure is explicitly recited in the claims. No claim element is to be construed as a means plus function unless the element is expressly recited using the phrase “means for.”