I. Field
The present disclosure relates generally to electronics, and more specifically to techniques for tuning resistors and capacitors.
II. Background
Resistors (R) and capacitors (C) are circuit components that are widely used in various types of circuits. For example, resistors and capacitors are commonly used in active RC filters, amplifiers, mixers, and so on. Resistors and capacitors are also fabricated on various integrated circuits (ICs) such as analog ICs and radio frequency ICs (RFICs).
Resistors and capacitors in a given circuit typically have specific values that are selected based on the requirements of the circuit. For example, in an active RC filter, the 3 dB bandwidth of the filter is determined by an RC product. Hence, the nominal values of resistors and capacitors in the filter are selected to achieve the RC product. However, the actual value of an on-chip resistor may vary by as much as 25% from the nominal R value, and the actual value of an on-chip capacitor may vary by as much as 15% from the nominal C value. The variations in resistance and capacitance are due to IC process manufacturing tolerance.
Large variations in resistance and capacitance may result in large variations in circuit characteristics and performance. As an example, the bandwidth of an active RC filter may vary by as much as −30% to +57% from the nominal bandwidth due to ±25% variation in resistance and ±15% variation in capacitance. This large variation in bandwidth is not tolerable for most applications, especially for higher order filters designed to meet stringent requirements.
Conventionally, large variations in resistance and capacitance are accounted for by adjusting only the capacitor. In one common tuning method, an RC time constant is formed by the product of an on-chip resistor and an on-chip adjustable capacitor. The RC time constant is tuned by varying the adjustable capacitor to achieve the desired RC time constant, which may be ascertained based on an accurate clock. For this tuning method, the adjustable capacitor compensates for the entire variation in resistance and capacitance, i.e., the entire spread in the RC product. To account for the worst case in which the resistor varies by −25% and the capacitor varies by −15%, the adjustable capacitor should be approximately 60% bigger than the size required if the resistor and capacitor had been constant over IC process.
Capacitors are very inefficient when fabricated in a standard silicon process since their density or capacitance per micron square is very low. Furthermore, most of the area of a circuit such as an active RC filter may be taken up by capacitors. Hence, tuning the active RC filter by adjusting only the capacitor may result in the filter area increasing by a large amount, e.g., about 60% for the example given above.
There is therefore a need in the art for techniques to account for large variations in resistance and capacitance in a more efficient manner.
A two-step tuning process for resistors and capacitors in an integrated circuit are described herein. In the first step of the tuning process, an adjustable resistor is tuned based on a first reference (e.g., an accurate external resistor) to obtain a tuned resistor. The value of the tuned resistor is accurate to within a target percentage determined by the first reference and the design of the adjustable resistor. In the second step, an adjustable capacitor is tuned based on the tuned resistor and a second reference (e.g., an accurate clock) to obtain a tuned capacitor having an accurate value. The adjustable capacitor may be tuned such that an RC time constant of the tuned resistor and the tune capacitor is accurate to within a target percentage determined by the second reference and the design of the adjustable capacitor. The adjustable resistor and the adjustable capacitor may be tuned as described below. For the two-step tuning process, the adjustable resistor accounts for variations in resistance, and the adjustable capacitor accounts for variations in capacitance as well as residual errors from the resistor tuning. The resistors and capacitors of other circuits on the integrated circuit may be adjusted based on the tuned resistor and the tuned capacitor, respectively.
Various aspects and embodiments of the invention are described in further detail below.
The features and nature of the present invention will become more apparent from the detailed description set forth below when taken in conjunction with the drawings in which like reference characters identify correspondingly throughout.
The word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any embodiment or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments or designs.
On the receive path, an RF signal is received by antenna 136, routed through duplexer 134, amplified by a low noise amplifier (LNA) 142, filtered by a bandpass filter 144, and downconverted from RF to baseband by a mixer 146. The downconverted signal is amplified by a VGA 148, filtered by a lowpass filter 150, and amplified by an amplifier 152 to obtain an analog input signal, which is provided to signal processor 110. A local oscillator (LO) generator 154 receives a reference clock from an oscillator 156 and generates a transmit LO signal used for frequency upconversion and a receive LO signal used for frequency downconversion. Oscillator 156 may be a crystal oscillator (XO) or some other oscillator that can provide an accurate clock.
In an aspect, a two-step tuning process is used to account for variations in resistance and capacitance on an integrated circuit. In the first step of the tuning process, an on-chip adjustable resistor is tuned to obtain a tuned resistor having a value that is close to a nominal resistor value. In the second step, an on-chip adjustable capacitor is tuned to obtain a tuned capacitor having a value that is close to a nominal capacitor value. The adjustable resistor may be tuned based on an accurate external resistor. The adjustable capacitor may be tuned based on the tuned resistor and an accurate clock.
The resistor tuning compensates for variations in resistance across IC process. The capacitor tuning compensates for variations in capacitance across IC process as well as residual errors in the resistor tuning. An adjustable capacitor that compensates for variations in capacitance may be much smaller than an adjustable capacitor that compensates for variations in both resistance and capacitance. For example, a capacitor that compensates for variations in capacitance may need to be 24% bigger whereas a capacitor that compensates for variations in both resistance and capacitance may need to be 60% bigger. The substantial reduction in capacitor size may result in smaller die area, lower cost, and other benefits.
In the embodiment shown in
Current sources 210 and 230 may provide the same Iref current to resistors 162 and 220, respectively. Alternatively, current sources 210 and 230 may provide different amounts of current if resistors 162 and 220 have different nominal values. In any case, the Vext voltage across resistor 162 is dependent on the value of resistor 162 and the Iref current. The Vadj voltage across resistor 220 is dependent on the value of resistor 220 and the Iref current. Comparator 240 compares the Vext and Vadj voltages. If resistor 220 is smaller than resistor 162, then Vadj is lower than Vext, comparator 240 provides a logic high, and control unit 250 selects a higher value for resistor 220. Conversely, if resistor 220 is larger than resistor 162, then Vadj is higher than Vext, comparator 240 provides a logic low, and control unit 250 selects a lower value for resistor 220. Control unit 250 selects different values for resistor 220 until Vadj is close to Vext.
For both adjustable resistor 220a in
Referring back to
RC tuner 170 implements an RC integrator and a switched capacitor integrator. The RC integrator is composed of resistor 410, capacitor 414, and amplifier 430. The switched capacitor integrator is composed of capacitors 414 and 420 and amplifier 430. The switches facilitate the operation of the two integrators. Resistor 410 is initially set to a value of Rtune, which is determined by the R code from R tuner 160 and is accurate to within a target percentage, e.g., 2 to 3%. Capacitor 414 has a value of Cfix, which does not need to be accurate. Adjustable capacitor 420 has a minimum value of Cmin and a maximum value of Cmax.
The RC tuning may be performed as follows. Initially, switch 416 is closed and capacitor 414 is discharged via switch 416. The RC integrator is then enabled for a predetermined time period Ton by closing switch 412 and opening all other switches. When the RC integrator is enabled, capacitor 414 is charged by Vref via resistor 410. At the end of the Ton charge-up period, the charge Qc accumulated by capacitor 414 may be expressed as:
where Vpeak is the voltage across capacitor 414 and also at the output of amplifier 430 at the end of the RC integration. Vpeak may be expressed as:
After charging capacitor 414 with the RC integrator, the charge collected on capacitor 414 is discharged via the switched capacitor integrator for M cycles, where M≧1. For each discharge cycle, switches 422 and 428 are initially closed, switches 424 and 426 are opened, and capacitor 420 is charged to Vref. Switches 422 and 428 are then opened, switches 424 and 426 are closed, and capacitor 420 discharges the charge on capacitor 414. The charge Qd transferred from capacitor 414 in each discharge cycle may be expressed as:
Qd=Cadj·Vref=Cfix·Vstep, Eq (3)
where Vstep is the drop in the voltage across capacitor 414 as well as the output of amplifier 430 after each discharge cycle. Vstep may be expressed as:
If capacitor 414 is completely discharged after M discharge cycles, then the following relationships are obtained:
Equation (7) indicates that the RC time constant for Rtune and Cadj is a function of Ton and M, which are well controlled quantities. M may be selected based on the sizes of capacitors 414 and 420. Ton may be determined based on an accurate clock, e.g., from a crystal oscillator. At the end of M discharge cycles, if the voltage Vout at the output of amplifier 430 is positive, then capacitor 420 is too small, and a larger value may be selected for capacitor 420. Conversely, if Vout is negative, then capacitor 420 is too large, and a smaller value may be selected for capacitor 420.
Control unit 450 may perform a linear search, a binary search, or some other search to tune adjustable capacitor 420 to achieve the desired RC time constant. For a linear search, control unit 450 either (1) increases the value of capacitor 420 in small steps until Vout is negative or (2) decreases the value of capacitor 420 in small steps until Vout is positive. Control unit 450 may set capacitor 420 to Cmin, charge and discharge capacitor 414 as described above, determine whether Vout is positive or negative, select the next larger value for capacitor 420 if Vout is positive, and repeat the tuning process until Vout is negative. For a binary search, control unit 450 adjusts capacitor 420 in progressively smaller steps until all bits are evaluated. Control unit 450 may initially set capacitor 420 to a mid value between Cmin and Cmax, charge and discharge capacitor 414, determine whether Vout is positive or negative, set capacitor 420 to a larger value if Vout is negative, set capacitor 420 to a smaller value if Vout is positive, and repeat the tuning process for the next bit. For both searches, after completing the search, control unit 450 provides a C code that indicates both the setting and the value of adjustable capacitor 420 for a tuned capacitor. The RC time constant for the tuned capacitor and the tuned resistor is close to the desired RC time constant.
In the embodiment shown in
For adjustable capacitor 420, the number of capacitors and the values of the capacitors may be selected based on the maximum variation in capacitance, the worst case residual error from the resistor tuning, the desired accuracy for the tuned capacitor, and the adjustable capacitor design (e.g., geometric progression, binary weighting, or thermometer decoding). For example, if the maximum variation in capacitance is 15%, the worst case residual error is 3%, and the desired capacitor accuracy is 2%, then adjustable capacitor 420 may be implemented with nine capacitors with geometric progression or four capacitors with binary weighting.
The resistors and capacitors in various circuits within transceiver 120 in
Resistor(s) 862, 866, 872 and/or 882 may be adjusted based on the R code from R tuner 160 and may be accurate to within the target percentage for the resistor(s). Capacitor(s) 864 and/or 874 may be adjusted based on the C code from RC tuner 170, and the RC time constant for filter 850 may be accurate to within the target percentage for the RC time constant.
Higher order active RC filters may be implemented with one or more filter sections. For example, a fifth order Chebyshev filter may be implemented with one first order filter section 810 and two second order filter sections 850. The real and complex poles may be designed to achieve the desired filter characteristics and may be obtained by adjusting the resistors and capacitors of the filter based on the R code and the C code, respectively. Active RC filter(s) 810 and/or 850 may be used for lowpass filter(s) 124 and/or 150 in
An adjustable capacitor is tuned based on the tuned resistor and an accurate clock (block 1020). For block 1020, a first resistor (e.g., resistor 410 in
The two-step tuning process described herein provides several key advantages. First, significant saving in die area may be realized since the adjustable capacitor only needs to compensate for variations in capacitance instead of variations in both resistance and capacitance. Second, improved noise performance may be achieved with the two-step tuning process. The noise in a filter is approximately KT/C, where K is Boltzman constant, T is absolute temperature, and C is a capacitor value used in the filter. The two-step tuning process reduces the range of values for C, which in turn reduces variations in the noise generated in the filter.
The tuning techniques and circuits described herein may be used for various applications such as communication, networking, computing, consumer electronics, and so on. The tuning techniques and circuits may also be used in wireless communication systems such as a Code Division Multiple Access (CDMA) system, a Time Division Multiple Access (TDMA) system, a Global System for Mobile Communications (GSM) system, an Advanced Mobile Phone System (AMPS) system, Global Positioning System (GPS), a multiple-input multiple-output (MIMO) system, an orthogonal frequency division multiplexing (OFDM) system, an orthogonal frequency division multiple access (OFDMA) system, a wireless local area network (WLAN), and so on.
The tuning techniques and circuits described herein may be implemented by various means. For example, the R tuner and RC tuner may be implemented within an IC, an RFIC, an analog IC, a digital IC, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a processor, an electronic device, and so on.
Certain portions of the tuning techniques may be implemented with firmware and/or software. The firmware and/or software codes may be stored in a memory (e.g., memory 112 in
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Number | Name | Date | Kind |
---|---|---|---|
4791379 | Hughes | Dec 1988 | A |
6259311 | Azimi et al. | Jul 2001 | B1 |
6417737 | Moloudi et al. | Jul 2002 | B1 |
6549066 | Martin | Apr 2003 | B1 |
6968167 | Wu et al. | Nov 2005 | B1 |
7031456 | Dyer et al. | Apr 2006 | B2 |
7078961 | Punzenberger et al. | Jul 2006 | B2 |
7324615 | Lourens et al. | Jan 2008 | B2 |
7425863 | Gatta et al. | Sep 2008 | B2 |
20050118980 | Pai et al. | Jun 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20070236281 A1 | Oct 2007 | US |