System and Method for Offset Voltage Calibration
20170117861 ยท 2017-04-27
Inventors
- Kent Jaeger (Cary, IL, US)
- Zhihang Zhang (Cary, NC)
- Matthew Miller (Arlington Heights, IL, US)
- Ramesh Chadalawada (Superior, CO, US)
Cpc classification
H03F2203/45528
ELECTRICITY
H03F2203/45526
ELECTRICITY
H03F2200/375
ELECTRICITY
H03F2203/45594
ELECTRICITY
H03F2203/45512
ELECTRICITY
H03G1/0088
ELECTRICITY
International classification
Abstract
An embodiment method includes measuring, by a calibration device, a first output voltage of a variable gain amplifier (VGA) when the VGA is set at a first gain setting and measuring, by a calibration device, a second output voltage of the VGA when the VGA is set at a second gain setting different from the first gain setting. The method further includes calculating, by the calibration device, an offset voltage of a signal path including the VGA using the first output voltage and the second output voltage and calculating, by the calibration device, an internal offset voltage of the VGA using the first output voltage and the second output voltage.
Claims
1. A method comprising: measuring, by a calibration device, a first output voltage of a variable gain amplifier (VGA) when the VGA is set at a first gain setting; measuring, by the calibration device, a second output voltage of the VGA when the VGA is set at a second gain setting different from the first gain setting; calculating, by the calibration device, an offset voltage of a signal path comprising the VGA using the first output voltage and the second output voltage; and calculating, by the calibration device, an internal offset voltage of the VGA using the first output voltage and the second output voltage.
2. The method of claim 1 further comprising calculating an offset correction voltage for each gain setting of the VGA using the offset voltage of the signal path and the internal offset voltage of the VGA.
3. The method of claim 2, further comprising programming, by the calibration device, a DC offset correction (DCOC) digital to analog convertor (DAC) with the offset correction voltage for different gain settings of the VGA.
4. The method of claim 3 further comprising applying, by the DCOC DAC, a same offset correction voltage to the VGA while measuring the first output voltage and measuring the second output voltage.
5. The method of claim 3 further comprising: applying, by the DCOC DAC, a first offset correction voltage to the VGA while measuring the first output voltage; and applying, by the DCOC DAC, a second offset correction voltage to the VGA while measuring the second output voltage, wherein the first offset correction voltage and the second offset correction voltage are different, and wherein calculating the offset voltage of the signal path and the internal offset voltage of the VGA are in accordance with the first offset correction voltage and the second offset correction voltage.
6. The method of claim 1, wherein measuring the first output voltage and measuring the second output voltage comprises measuring the first output voltage and measuring the second output voltage while the signal path is activated with no input signal.
7. The method of claim 1, wherein a feedback factor of the VGA varies across different gain settings of the VGA, and wherein calculating the offset voltage of the signal path and calculating the internal offset voltage of the VGA is in accordance with a first feedback factor corresponding to the first gain setting and a second feedback factor corresponding to the second gain setting.
8. The method of claim 1, wherein a feedback factor of the VGA is approximately constant across different gain settings of the VGA.
9. A method for calibrating a circuit comprising: activating a circuit path with no input signal, wherein the circuit path comprises a variable gain amplifier (VGA); setting, by a calibration device, the VGA to a first gain step; measuring, by the calibration device, a first output voltage of the VGA when the VGA is set to the first gain step; setting, by the calibration device, the VGA to a second gain step, wherein the first gain step and the second gain step are different; measuring, by the calibration device, a second output voltage of the VGA when the VGA is set to the second gain step; calculating, by the calibration device, a first offset voltage and a second offset voltage in accordance with the first output voltage, the second output voltage, the first gain step, and the second gain step, wherein the first offset voltage is an offset voltage caused by circuit elements in the circuit path prior to the VGA, and wherein the second offset voltage is an internal offset voltage of the VGA; calculating, by the calibration device, offset correction voltages for different gain steps of the VGA in accordance with the first offset voltage and the second offset voltage; and configuring, by the calibration device, a DC offset correction (DCOC) digital to analog convertor (DAC) with the offset correction voltages for the different gain steps of the VGA.
10. The method of claim 9, wherein a feedback factor of the VGA is approximately constant across the different gain steps of the VGA, and wherein the method further comprises calculating the first offset voltage and calculating the second offset voltage in accordance with
11. The method of claim 10 further comprising calculating the offset correction voltages for different gain steps of the VGA comprises calculating an offset correction voltage for a gain step in accordance with
12. The method of claim 9, wherein a feedback factor of the VGA varies across the different gain steps of the VGA, and wherein the method further comprises calculating the first offset voltage and calculating the second offset voltage in accordance with
13. The method of claim 12 further comprising calculating the offset correction voltages for different gain steps of the VGA comprises calculating an offset correction voltage for a gain step in accordance with
14. The method of claim 9, wherein the DCOC DAC applies a first calibration offset correction voltage while measuring the first output voltage and applies a second calibration offset correction voltage while measuring the second output voltage, wherein the first calibration offset correction voltage and the second calibration offset correction voltage are different, and wherein the method further comprises calculating the first offset voltage and calculating the second offset voltage in accordance with
15. The method of claim 9 further comprising taking no more than two output voltage measurements for each calibration process.
16. A calibration system comprising: a signal circuit comprising: a variable gain amplifier (VGA); and a DC offset correction (DCOC) digital to analog convertor (DAC) applying an offset correction voltage to the VGA; and a calibration circuit electrically connected to the signal circuit, wherein the calibration circuit: measures a first output voltage of a variable gain amplifier (VGA) when the VGA is set at a first gain setting; measures a second output voltage of the VGA when the VGA is set at a second gain setting different from the first gain setting; calculates an offset voltage of the signal circuit and an internal offset voltage of the VGA using the first output voltage and the second output voltage; and calculates offset correction voltages corresponding to different gain settings of the VGA in accordance with the offset voltage of the signal circuit and the internal offset voltage of the VGA.
17. The calibration system of claim 16, wherein the calibration circuit is further configured to program the DCOC DAC with the offset correction voltages corresponding to the different gain settings of the VGA.
18. The calibration system of claim 16, wherein the calibration circuit comprises a baseband chip.
19. The calibration system of claim 16, wherein the signal circuit comprises a low noise amplifier, a mixer, a trans-impedance amplifier, a low pass filter, or a combination thereof.
20. The calibration system of claim 16, wherein the signal circuit comprises an analog to digital convertor (ADC) connected to an output of the VGA, wherein the first output voltage and the second output voltage are measured using the ADC.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0009] For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
[0010]
[0011]
[0012]
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0013] The making and using of the presently preferred embodiments are discussed in detail below. It should be appreciated, however, that the present invention provides many applicable inventive concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative of specific ways to make and use the invention, and do not limit the scope of the invention.
[0014] Various embodiments are described within a specific context, namely DC offset voltage correction for a receiver (RX) circuit path in a transceiver device. However, various embodiment devices may be used in any integrated circuit where calibration is desired.
[0015] Various embodiments include a calibration system for DC offset voltage correction in a RX circuit path of a transceiver. The DC offset voltage correction may occur at a last stage of the RX path (e.g., at a variable gain amplifier (VGA)). During calibration, the VGA is set to two different gain settings (also referred to as gain steps), and the output of each setting is measured using an analog to digital convertor (ADC), for example. The offset voltage of the signal path (e.g., offset voltage to the signal caused by various elements along the RX path) as well as the internal offset voltage of the VGA is calculated in accordance with the two output measurements of the two gain settings. Knowing these offset voltages, a suitable offset correction voltage may be calculated for each gain step of the VGA. As the VGA gain is changed during operation of the transceiver, a suitable offset correction voltage can be applied by a DC offset voltage correction (DCOC) digital to analog convertor (DAC), which feeds into the VGA. Thus, the DC offset voltage calculation may be achieved by taking as few as two measurements, which allows for fast and accurate calibration of a circuit path.
[0016]
[0017] The input to VGA 112 (e.g., filtered signal 102D) is a differential signal that may include an offset voltage V.sub.OS1 generated at least in part by various elements in the RX lineup prior to VGA 112 (e.g., LNA 104, mixer 106, TIA 108, and LPF 110). Furthermore, VGA 112 may also contribute an internal offset voltage V.sub.OS2 to output voltage V.sub.out, which further increases the error of output signal 120. In order to counteract this error, an offset correction voltage may be applied in calibration portion 116 of RX path 100. In various embodiments, a DCOC DAC 114 applies an offset correction voltage V.sub.DCOC to a summing node of VGA 112. During operation of RX path 100, offset correction voltage V.sub.DCOC is selected in accordance with a selected gain setting of VGA 112, offset voltage V.sub.OS1 of the signal path, and internal offset voltage V.sub.OS2 of VGA 112.
[0018] In some embodiments, the output voltage V.sub.out of VGA 112 operating with DCOC DAC 114 can be modeled in accordance with Equation (1), below:
where G is the gain of VGA 112, V.sub.in is a function of offset voltage V.sub.OS1, V.sub.OSAMP is the input offset voltage internal to VGA 112, f is the feedback factor of passive components around VGA 112, and I.sub.DCOCR is the offset correction voltage V.sub.DCOC.
[0019] In an embodiment, feedback factor f is substantially constant over the different gain steps of VGA 112. In such embodiments, the internal offset voltage V.sub.OS2 of VGA 112 is constant and equals
for all gain steps of VGA 112. Thus, when feedback factor f is substantially constant, Equation (1) can also be expressed as:
V.sub.out=GV.sub.in+V.sub.OS2+I.sub.DCOCRG(2)
In such embodiments, feedback factor f may be approximated as substantially constant for all gain steps of VGA 112 In other embodiments, feedback factor f varies but is predictable for different gain steps of VGA 112 as will be described in greater detail below.
[0020] In the above embodiment, DCOC DAC 114 generates a current I.sub.DCOC, and R is the resistance by which current I.sub.DCOC creates voltage V.sub.DCOC (e.g., V.sub.DCOC=I.sub.DCOCR). In various embodiments, R may be configured to remain constant through all gain steps of VGA 112. Furthermore, V.sub.DCOC may adjust V.sub.out linearly over the current range of DCOC DAC 114, but V.sub.DCOC corrects V.sub.out in accordance with changes in the gain setting (e.g., gain G) of VGA 112. Thus, once offset voltages V.sub.O1 and V.sub.O2 from RX path 100 and VGA 112 are calibrated out of the output signal, changing the gain setting of VGA 112 will not require new calibration.
[0021]
[0022] To initiate calibration, RX path 100 is activated with no input signal. Circuit block 202 represents elements of RX path 100 (e.g., LNA 104, mixer 106, TIA 108, and LPF 110) prior to VGA 112. Because no input signal is activated, the output of circuit block 202 is equivalent to offset voltage V.sub.OS1 of the signal path (e.g., caused by elements in circuit block 202). Thus, during calibration, as illustrated by
V.sub.out=GV.sub.OS1+V.sub.OS2+I.sub.DCOCRG(3)
[0023] During calibration, a constant calibration offset correction voltage V.sub.DCOC may also be applied by DCOC DAC 114, and the calibration offset correction voltage V.sub.DCOC is known by the calibration mechanism (e.g., baseband chip 200). For example, DCOC DAC 114 may be configured to generate a known, calibration offset correction current I.sub.DCOC. In an embodiment, calibration offset correction current I.sub.DCOC may be set to center code, and an approximation for calibration current I.sub.DCOC would be 0 Amperes (A). However, in such embodiments, the center code may contribute half a least significant bit (LSB) of calibration offset current to the output voltage. In an embodiment, the calibration offset current can also be added to the below offset voltage calculations (e.g., as a constant) for improved accuracy. In other embodiments, the calibration offset correction may be omitted from the below calculations.
[0024] After activating the circuit (e.g., RX path 100), baseband chip 200 (or another calibration mechanism) measures the output voltage V.sub.out of VGA 112 at two different gain steps (e.g., two different values of gain G). For example, the output voltage V.sub.out may be measured using ADC 118 for each gain step. Baseband chip 200 may then calculate V.sub.OS1 and V.sub.OS2 in accordance with the two output voltage V.sub.out measurements. In an embodiment, the calculation may be in accordance with:
V.sub.out1=G.sub.1V.sub.OS1+V.sub.OS2+I.sub.DCOCRG.sub.1(4)
V.sub.out2=G.sub.2V.sub.OS1+V.sub.OS2+I.sub.DCOCRG.sub.2(5)
where G.sub.1 is a first selected gain step of VGA 112, and V.sub.out1 is the measured output voltage of VGA 112 when G.sub.1 is selected. G.sub.2 is a second selected gain step for VGA 112, and V.sub.out2 is the measured output voltage of VGA 112 when G.sub.2 is selected. Gains G.sub.1 and G.sub.2 may be selected using any suitable criteria. In an embodiment, gain G.sub.1 is selected to be about half way above a center gain setting of VGA 112 while gain G.sub.2 is selected to be about half way below the center gain setting of VGA 112. In such embodiments, gain settings at edges (e.g., minimum and maximum) of VGA 112's ranges are avoided during calibration for improved output voltage measurement accuracy. In another embodiment, gain G.sub.1 is selected to be a maximum gain setting of VGA 112 while gain G.sub.2 is selected to be a minimum gain setting of VGA 112. In such embodiments, the variance between gain settings of VGA 112 is maximized during calibration for improved tracking of offset voltages. Any other gain step within VGA 112's range may also be selected. Furthermore, as described above, I.sub.DCOCR for both equations is a known constant. Thus, offset voltages V.sub.OS1 and V.sub.OS2 can be calculated in accordance with Equations (4) and (5), above. The resulting equations for offset voltages V.sub.OS1 and V.sub.OS2 are:
[0025] After baseband chip 200 (or other calibration mechanism) calculates offset voltages V.sub.OS1 and V.sub.OS2, offset correction current I.sub.DCOC for any gain setting of VGA 112 can be calculated according to Equation (8), below:
[0026] Baseband chip 200 may then program DCOC DAC 114 with a corresponding offset correction voltage V.sub.DCOC or offset correction current I.sub.DCOC for each gain setting of VGA 112 based on the above Equation (8). During operation of the circuit, DCOC DAC 114 applies an appropriate offset correction current I.sub.DCOC based on the programming and the selected gain setting of VGA 112. By applying the appropriate offset correction current I.sub.DCOC, a suitable offset correction voltage V.sub.DCOC may be applied to VGA 112, which cancels or at least reduces the effect of offset voltages V.sub.OS1 (e.g., offset voltage of the signal path) and V.sub.OS2 (e.g., internal offset of VGA 112) on the output signal. Thus, as described above, baseband chip 200 (or other calibration mechanism) may calibrate an amplifier circuit (e.g., RX path 100) using two output voltage measurements, which allows for fast calibration of the circuit.
[0027] The above calculations are based on an assumption that feedback factor f for VGA 112 is constant. In another embodiment, feedback factor f may vary as the gain G of VGA 112 changes. In such embodiments, feedback factor f may be predictable and known for different gain steps. Calibration of the circuit may be similar to the steps described above. For example, the output voltages V.sub.out1 and V.sub.out2 can be measured for two different gain settings, G.sub.1 and G.sub.2, respectively. Feedback factors for the two different gains may be f.sub.1 for gain G.sub.1 and f.sub.2 for gain G.sub.2, where f.sub.1 and f.sub.2 are known but different. Calculations for offset voltages V.sub.OS1 and V.sub.OS2 may be in accordance with the following modified equations:
[0028] In such embodiments, offset voltages V.sub.OS1 and V.sub.OS2 can be calculated by the calibration mechanism (e.g., baseband chip 200) in accordance with Equations (11) and (12) below:
[0029] Once offset voltages V.sub.OS1 and V.sub.OS2 are calculated, offset correction current I.sub.DCOC for any gain setting of VGA 112 can be calculated according to:
DCOC DAC 114 may then be programmed with an offset correction current I.sub.DCOC for all gain settings of VGA 112 as described above.
[0030] The above calculations are based on an assumption that the value of the correction voltage applied by DCOC DAC 114 is constant during calibration. In another embodiment, the correction voltage may vary between the two calibration measurements. In such embodiments, the value I.sub.DCOC RG will be predictable and known for different gain steps. Calibration of the circuit may be similar to the steps described above. For example, the output voltages V.sub.out1 and V.sub.out2 can be measured for two different gain settings, G.sub.1 and G.sub.2, respectively. Correction values applied by DCOC DAC 114 for the two different gains may be I.sub.DCOC1 for the first gain G.sub.1 and I.sub.DCOC2 for the second gain G.sub.2, where the offset calibration currents I.sub.DCOC1 and I.sub.DCOC2 are known but different. In the below equations, the feedback factor f.sub.1 (corresponding to gain G.sub.1) and f.sub.2 (corresponding to gain G.sub.2) may be different or the same for the two different gain settings. Calculations for offset voltages V.sub.OS1 and V.sub.OS2 may be in accordance with the following modified equations:
[0031] In such embodiments, offset voltages V.sub.OS1 and V.sub.OS2 can be calculated by the calibration mechanism (e.g., baseband chip 200) in accordance with Equations (16) and (17) below:
[0032] Once offset voltages V.sub.OS1 and V.sub.OS2 are calculated, offset correction current I.sub.DCOC for any gain setting of VGA 112 can be calculated according to:
[0033] DCOC DAC 114 may then be programmed with an offset correction current I.sub.DCOC for all gain settings of VGA 112 as described above.
[0034]
[0035] As illustrated by
[0036] In circuit 300, the VGA comprises an operational amplifier (op amp) 302 and resistors R.sub.1, R.sub.2, R.sub.3, and R.sub.4. Resistors R.sub.1 and R.sub.2 may include one or more resistors, which includes at least one variable resistor that can be controlled to alter a gain setting (e.g., G) of the VGA. Resistors R.sub.3, and R.sub.4 may also be included in circuit 300 to help set the gain setting of the VGA. In some embodiments, gain G of the VGA in circuit 300 can be generally expressed as:
[0037] Capacitor C may also be optionally included in the VGA, for example, to create a feedforward zero in circuits with low-bandwidth op-amps. In other embodiments, capacitor C may be omitted. In some embodiments, a variable resistor R.sub.b in circuit 300 may also be included in order to maintain the feedback factor f of circuit 300 constant over different gain settings of the VGA. In other embodiments (e.g., when feedback factor f is variable), resistor R.sub.b may be omitted. Furthermore, in circuit 300, resistor R.sub.6 may be optionally included to provide a path for the biasing current of the DCOC DAC 304.
[0038] Furthermore, during normal operation mode, a DCOC DAC supplies an offset correction current I.sub.DCOC to a resistor R.sub.shunt, which applies a DC offset correction voltage V.sub.DCOC (e.g., I.sub.DCOCR) to inputs of op amp 302. During calibration mode, a DCOC DAC supplies a constant calibration offset correction current I.sub.DCOC to a resistor. In various embodiments, two current sources 304 configured in opposing directions are included in circuit 300 to provide a differential offset current I.sub.DCOC to the circuit. For example, when the differential offset current I.sub.DCOC is set to middle code (e.g., during calibration), both current sources 304 source the same amount of current into circuit 300, and the net differential offset current I.sub.DCOC equals OA. In another example, when the differential offset current I.sub.DCOC is set away from middle code, one current source 304 may source some current, and the other current source 304 may sink some current to result in a net non-zero differential offset current I.sub.DCOC being supplied to circuit 300. In circuit 300, resistors R.sub.5 may be included to help offset correction current I.sub.DCOC injected at the inputs of op amp 302 track with the gain setting of the VGA. In some embodiments resistors R.sub.5 may be about 40 k although other values for resistors R.sub.5 may be used in other embodiments. The various values of resistors in an embodiment circuit may be modified and selected based on device design as understood by one skilled in the art.
[0039] Resistor R.sub.shunt may be a variable resistor that is varied by DCOC DAC in accordance with the gain G of the VGA. For example, as described above, the resistance R (see equation 1) of the offset correction current I.sub.DCOC is modeled as constant across all gain settings of the VGA. In circuit 300, R.sub.shunt may be varied to provide an overall constant resistance for offset correction current I.sub.DCOC based on the gain G of the VGA. For example, the output voltage of circuit 300 is:
Comparing Equations (1), (14), and (20) above, resistor R.sub.shunt may be varied in accordance with a selected gain G of the VGA in order to apply a constant overall resistance R (see Equation (1)) to I.sub.DCOC across all gain settings of the VGA. In various embodiments, the DCOC DAC may control both the offset correction current I.sub.DCOC and R.sub.shunt in circuit 300 in order to provide a suitable offset correction voltage V.sub.DCOC to the VGA.
[0040]
[0041] After the offset voltages are determined, offset correction voltages (e.g., I.sub.DCOCR) for different gain settings of the VGA may be calculated in step 410. For example, the offset correction voltages may be calculated based in Equation (8) when the feedback factor is constant or based on equation (13) when the feedback factor varies. In step 412, a DCOC DAC is configured (e.g., programmed) in accordance with the different offset correction voltages determined in step 410. During normal operations of the device, the DCOC DAC may apply a suitable offset correction voltage based on this programming and a selected gain of the VGA.
[0042] Thus, as described above, various embodiments include a calibration system for offset voltage correction in a RX circuit path of a transceiver. The DC offset voltage correction may occur at a last stage of the RX path. For example, a DCOC DAC may apply a suitable offset correction voltage to a summing node of a VGA at the end of the RX path. During calibration, the VGA is set to two different gain settings (also referred to as gain steps) with no input signal being applied to the circuit path. The output voltage of each gain setting is measured. Based on the output voltages, an offset voltage of the signal path (e.g., offset voltage to the signal caused by various elements along the RX path) as well as the internal offset voltage of the VGA is calculated. Knowing these offset voltages, a suitable offset correction voltage may be calculated for each gain step of the VGA. As the VGA gain is changed during operation of the transceiver, a suitable offset correction voltage can be applied by a DC offset voltage correction (DCOC) digital to analog convertor (DAC), which feeds into the VGA. Thus, DC offset voltage calculation may be achieved by taking as few as two measurements, which allows for fast calibration of a circuit path.
[0043] While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.