1. Field of the Invention
The invention generally relates to electronics and in particular, to physical layer transceivers (including transmitter/receivers) with cascaded analog amplifiers.
2. Description of the Related Art
Many transceivers, such as a wireless radio frequency integrated circuit (RFIC), use multiple gain stages including open and closed loop amplifiers—each of which has multiple gain settings—to achieve an overall variable gain amplifier (VGA) with multiple gain settings.
Differential non-linearity (DNL) can be a problem with variable gain amplifiers. DNL refers to the deviation (from the ideal) in gain between two adjacent gain settings. The problem with DNL is typically most acute when more than one gain stage of a VGA is adjusted to switch between the two adjacent gain settings. For example, a particular gain stage can have a step size that is larger than the step size for the VGA as a whole, and when that gain stage is adjusted as part of a gain adjustment for the VGA, the DNL can be relatively high. When DNL is relatively high, gain adjustments can behave in unexpected ways, and can result in, for example, saturation of receiver stages, increases in bit error rates, etc.
It is desirable that the VGA as a whole has relatively small DNL in the total gain versus gain index curve. Absolute gain errors are usually not an issue because an automatic gain control (AGC) loop typically operates to establish the absolute gain of the system.
To illustrate, suppose the receiver or transmitter of a transceiver has two gain stages 602, 604 (
Typically, one 602 of the gain stages with gain G1 in this example, has relatively few but relatively large gain steps, and the other stage 604, with gain G2 in this example, has relatively many but relatively small gain steps. Mathematically, the gain steps then observe the relationships expressed in Equation 2.
When expressed as a logarithmic gain in decibels (dB), the total gain Gtotal with index n is as shown in Equation 3.
Gtotal[n]=G1[ƒ1(n)]+G2[ƒ2(n)] Equation 3
The functions ƒ1 and ƒ2 map the total gain index n to the gain required from each stage. Note that the index at which the larger step size gain stage 602 having gain G1 changes from lower to higher gain is referred to as index “B”. Note also that this is for purposes of illustration only and that the larger step size gain stage 602 with gain G1 can have any number of gain steps. The gain mapping can take the form illustrated with Equation 4.
To illustrate, consider the gain vectors in Equation 5.
To achieve an overall linear gain, assuming that the gain step for the larger step size gain stage 602 with gain G1 occurs at B=11, the gain mapping functions can be as shown in Equation 6.
An example of the individual gain characteristics of each gain stage 602, 604 having gains G1 and G2, respectively, and the total gain Gtotal versus the gain index is shown in
Transceivers can utilize multiple gain stages. In many cases, two or more gain stages of a transceiver are adjusted to adjust the overall gain. When gain is adjusted, differential non-linearity (DNL) can cause variability in the total gain. According to an embodiment of the invention, an attenuator stage is placed in the signal path to trim the gain to correct the DNL.
These drawings and the associated description herein are provided to illustrate specific embodiments of the invention and are not intended to be limiting.
Although particular embodiments are described herein, other embodiments of the invention, including embodiments that do not provide all of the benefits and features set forth herein, will be apparent to those of ordinary skill in the art.
Two problems typically exist when attempting to reduce differential non-linearity (DNL): (1) there is variability in the gain vectors (causing uncertainty in the gain steps), and (2) there is variability in power or amplitude measurements used for calibration. Equations illustrating variability are collectively labeled Equation 7.
In Equation 7, variable εP represents the variability of the power (or amplitude) measurement block, which is a function of the actual power or amplitude; and εkx is the variability of gain stage k setting x. For the case for which a gain stage is closed loop, the variability approaches zero (εkx→0) for that gain stage.
In an example in which the larger step size gain stage 602 with G1 is an RF open loop amplifier with ε1x≠0, there can be significant nonzero DNL as illustrated in
Furthermore, the gain step variability can be both non-zero and a function of time or temperature, or some other independent variable, that is, ε1x≠0=ƒ(time). An example of this is illustrated in
As a result of the sources of variability discussed earlier in connection with
In one embodiment, both calibration procedures are used. In an alternative embodiment, only the drift calibration is used, but the drift calibration can take some time to converge to a solution because of possible non-linearities in the gain curve.
The following describes the calibration of the transceiver gain in the context of a wireless radio frequency integrated circuit (RFIC) transmitter. However, transceiver gain paths of other devices can be similarly calibrated.
One embodiment of the invention provides relative gain calibration (a linear gain curve) without depending on the accuracy of the gain settings or the accuracy of the gain measurement block.
As illustrated in
With reference to
An example of an architecture useful for the initial gain calibration is illustrated in
In the illustrated embodiment, during initial calibration mode, a 1-bit DAC 608 generates a simple square wave to serve as a reference signal. A switch 610, which can be a multiplexer, permits a device to switch from the calibration signal 622 of the DAC 608 or from the normal signal 612, which can be coupled to an antenna. A square wave will suffice, but other reference signals can alternatively be used, such as, but not limited to, a tone generator, a noise generator, an oscillator, or the like. For the case of a wireless RFIC, the “Power Detector” 614 can be an envelope detector. In an alternative embodiment, the power detector 614 can be an amplitude detector. This power estimate is digitized with an ADC 616 (and can be averaged to reduce noise). The power estimate is used by the DSP Control 618 to decrease the DNL of the total gain. The DSP Control 618 can be a processor, a general-purpose digital signal processor, a microprocessor, a microcontroller, a licensable core, or the like. The DSP Control 618 is typically configured to execute instructions stored on a tangible medium.
Referring to
Calibration is achieved by using the relatively precise gain steps of the smaller step size gain stage 604 with gain G2 (and the attenuator stage 606 with gain G3) to establish a reference power measurement.
This allows the relatively accurate gain step G2 of the smaller step size gain stage 604 to serve as a reference for the relatively inaccurate gain step G1 of the larger step size gain stage 602.
Then, the gain G1 of the larger step size gain stage 602 is adjusted to its normal higher gain setting for index point B, and the smaller step size gain stage 604 with gain G2 and the attenuator stage 606 with G3 are adjusted until the new power estimate is equal to the earlier power estimate, as explained in detail later in connection with
If these measurements are made close enough in time so that drift in the power detector 614 is negligible, then the accuracy of the power detector 614 is not critical because the power detector 614 should see the same input signal level for both estimates. However, the power detector 614 should be able to provide repeatable data.
The various gain stages and attenuator stages are set in the state 802. A power estimate is generated from data retrieved from the power detector 614 via analog-to-digital converter (ADC) 616 in 804. For example, power readings can be average to filter noise.
The smaller step size gain stage 604 is then initialized to minimum gain in the state 806 before entering the first loop 808.
The first loop 808 determines an appropriate gain setting G2 for the smaller step size gain stage 604. Within the first loop 808, the gain stages and attenuator stages are set in a state 814. The attenuator 606 with gain G3 is set to minimum attenuation. Power sensed by the power detector 614 is obtained in a state 816.
In a decision block 818, the power readings obtained in the state 804 and in the state 816 are compared to a variable labeled “margin1” in
The second loop 810 determines an appropriate setting for the gain (loss) G3 of the attenuator stage 606 to further trim the gain setting. At the start of the second loop 810, a decision block 822 determines whether the power estimate from prior state 816 and prior state 804 are within a second threshold margin2, which should be significantly smaller than the threshold value margin1. If the power estimates are within the second threshold margin2, then no further trimming is needed and the process ends by proceeding to the state 812.
If the power estimates are outside the second threshold margin2, then the process proceeds from the decision block 822 to a state 824 in which the attenuator stage 806 with gain (loss) G3 is adjusted (higher or lower depending on the initial setting of the attenuator stage), and a new power estimate is retrieved in the state 826.
The process then proceeds to a decision block 828 to compare the power estimated in the state 826 to the power estimated in the state 804. If the power estimates are within the second threshold margin2, then the process is complete and proceeds to the state 812. Otherwise, the process returns to the state 824 to test additional values for the setting of the attenuator stage 806 with gain (loss) G3.
As described above, the gain G1 of the larger step size gain stage 602 can drift with time and/or temperature and so further calibration can be used. It is desirable for continuous operation to avoid switching to a special calibration signal 622 for gain drift calibration and so the preceding “initial calibration” procedure described earlier should not be used. Instead, the normal transceiver signal can be used during this “in use” calibration.
An additional block 902 (
Insensitivity to power detector 614 accuracy is also achieved with the relatively accurate gain step attenuator 902 with loss G4, which in the case of a wireless transmitter, can be an RF attenuator.
The gain (loss) G4 of the attenuator 902 is changed only before or after a total gain adjustment that includes a G1 gain step. In one embodiment, the attenuator 902 has two states: minimum attenuation and maximum attenuation, wherein the difference in attenuation between minimum attenuation and maximum attenuation corresponds to a particular set of one or more gain steps. In an alternative embodiment, the attenuator 902 has more than two states and the attenuation amounts referred to as minimum attenuation and maximum attenuation can be endpoints or intermediate points of attenuation. In
In one case (shown in
G4=Gt(x1)−Gt(x2) Equation 8
In the other case (not shown), as the index=x1 approaches index point B from a direction greater than the index point B, (from the right in
G4=Gt(x2)−Gt(x1) Equation 9
In either case, the attenuator 606 with gain G3 is adjusted at index x2 until the power estimate at x2 is equal to the power estimate at x1. The input to the power detector 614 is the same for both estimates, which provides insensitivity to the absolute accuracy of the power detector 614. An example of this is illustrated in
While the architecture and algorithm is shown in the context of a wireless transmitter, any transceiver gain path (using some open loop and some closed loop amplifiers) can be calibrated according to the principles described earlier.
Although only two gain stages 602, 604 with gains G1 and G2, respectively, are shown in the examples, any number of gain stages can be similarly calibrated.
Furthermore, although only 1 gain step is shown for the gain stage 602 with gain G1, any number of gain steps can be similarly calibrated.
In one embodiment, the gain stage 604 with gain G2 and the attenuator stage 606 with gain G3 can be considered to be a single stage in which adjustment of gain G2 is the “coarse” adjustment and adjustment of gain G3 is the “fine” adjustment.
Various embodiments have been described above. Although described with reference to these specific embodiments, the descriptions are intended to be illustrative and are not intended to be limiting. Various modifications and applications may occur to those skilled in the art.
Number | Name | Date | Kind |
---|---|---|---|
6819910 | Shi et al. | Nov 2004 | B2 |
6850119 | Arnott | Feb 2005 | B2 |
7212069 | Schell et al. | May 2007 | B2 |
7496338 | Groe et al. | Feb 2009 | B1 |
7616055 | Pan | Nov 2009 | B2 |
20060264192 | Kuo et al. | Nov 2006 | A1 |
20080096500 | Eilts et al. | Apr 2008 | A1 |
20100097144 | Rofougaran | Apr 2010 | A1 |