1. Field of the Invention
This invention relates to a calibration apparatus and method for a quadrature modulation system, and more particularly to a digital-signal-processing based calibration apparatus with logarithmic envelope detectors, the apparatus and method being suitable for correcting imperfections in an analog quadrature modulator normally found in transmitters of communication systems.
2. Description of the Related Art
As shown in
To reduce these problems, a variety of calibration schemes have been proposed. Some of these schemes apply training signals to the quadrature modulation system (called TSM herein) and some do not (called NTSM herein). In the article by T. Louie Valena, “System Design of Modem IC for Wireless LAN: Compensation Algorithm for Impairment of Orthogonal Modulator”, Design Wave Magazine, December 2003 (Valena), a calibration system without training signals is described. The approach, however, cannot apply directly to a system that takes advantage of training signals to reduce computational cost. Furthermore, Valena also has poor performance in modulation schemes with little amplitude or phase variation.
Another class of calibration techniques uses training signals to apply a known input to a system and measure QM output with an envelope detector (ED). In practice, an ED specification provides its gain in the form of the slope of output vs. input curves, such as that shown in
U.S. Pat. No. 5,293,406 discloses a QMC with TSM. The problems of drifting ED gain and offset are considered for square-law ED's. Besides, U.S. Pat. No. 5,293,406 does not teach compensation for the drift of ED gain and offset. Furthermore, the method of U.S. Pat. No. 5,293,406 requires many changes of amplitude and phase in the testing sequence, and therefore has high computational cost.
Two methods are proposed by J. K. Cavers in “New Methods for Adaptation of Quadrature Modulators and Demodulators in Amplifier Linearization Circuits,” IEEE Trans. on Vehicular Technology, vol. 46, no. 3, August 1997, pp. 707-716, (Cavers) which is incorporated herein by reference in its entirety. One of these methods uses a set of training signals (TSM), and the other does not. As with Valena, mentioned above, the Cavers method without training signals (NTSM) performs poorly for modulation schemes with little variation in amplitude and angles. The system also has singularity problems. For both methods, compensation procedures for systems only with linear ED's are provided.
The calibration method with training signals can be performed either before QM starts normal transmission or between transmissions in systems such as a packet-switched system or a time division multiplexed system. Because the method incurs less computational cost, it takes less power and is more suitable for portable devices.
A QM with TSM and calibration circuitry as set forth in Cavers is shown in
However, the calibration procedure discussed in Cavers for a linear ED does not apply to circuitry equipped with logarithmic ED's. Because of the logarithmic mathematics, the methodology of linear approximation applied in Cavers does not result in a system of linear equations accurately modeling the ED gain, ED offset, QM offset, and QM phase/gain imbalance for the nonlinear system with logarithmic ED's. Solving nonlinear equations, however, requires numerical calculation methods, which might involve complicating issues such as stability, solvability, and convergence rate.
Accordingly, it is an object of the present invention to provide a calibration algorithm that is effective in achieving robust performance with low computational cost and fast convergence rate.
In one embodiment, a calibration apparatus for a quadrature modulation system comprises a logarithmic envelop detector, a quadrature modulation compensator configured to compensate non-idealities in the system based at least in part on compensation parameters, and
a calibration circuit configured to calculate compensation parameters based at least in part on one or more intermediate parameters defined by linear functions of gain and offset parameters of the logarithmic envelope detector.
In another embodiment, a method of calibrating a quadrature modulation system comprising a quadrature modulation compensator and a logarithmic envelop detector is provided. In this embodiment, the method comprises calculating a transformed offset of the envelop detector based at least in part on a first system output in response to a first training signal applied to the quadrature modulation compensator and calculating a transformed gain of the envelop detector based at least in part on the transformed offset and a second system output in response to a second training signal applied to the quadrature modulation compensator. A set of compensation parameters based at least in part on the transformed gain is calculated, and the performance of the quadrature modulation compensator is adjusted based at least in part on the compensation parameters.
In another embodiment, a method of calibrating a quadrature modulation system comprising a quadrature modulation compensator and a logarithmic envelop detector comprises: applying a first training signal having N phases to the quadrature modulation compensator and calculating a first value based at least in part on a system output comprising a response to each of the phases in the first training signal. The first transformed offset d is found by the following:
wherein m1(n) is the system output response to the nth phase, and
using {circumflex over (d)} in a computation of compensation parameters used for calibrating the quadrature modulation system.
In some embodiments, this method further includes storing {circumflex over (d)}, and applying additional K−1 training signals to the quadrature modulation compensator, wherein each of the K training signals has N phases and a different amplitude Vdk. A second value based at least in part on a system output in response to the K training signals, is found by the following:
wherein {tilde over (m)}*k=mk−{circumflex over (d)}l, and mk is a vector of system output corresponding to the kth training signal.
In further embodiments, this method further comprises calculating a first error vector based at least in part on the second value, wherein the first error vector {circumflex over (q)} is found by the following:
wherein Ωk=Sk→T{tilde over (m)}k, Sk is a 4×4 matrix, diag(0.5, 0.5, 1/Vdk, 1/Vdk), and Θ is an N×4 matrix, whose nth row is [cos(2θn), sin(2θn), cos(θn), sin(θn)].
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Note that the present invention is not limited to the following embodiments and can be modified as required.
The feedback loop comprises a logarithmic ED 20 configured to detect an output level of the QM 16 in accordance with the logarithmic characteristic of the logarithmic ED 20, an ADC 22 configured to convert an analog ED signal Ve1 to a digital ED signal Vm, and calibration circuitry 24 used to calibrate the QMC 12 in order to adjust the IQ balance of the QM 16.
In this embodiment, when the calibrations are executed the SW1 is set to the training signal side, the SW2 is set to the ED side, and the switch SW3 is closed. A set of training signals are input to the digital modem 10 and the modem 10 sends the complex training signals to the QM 16 through the QMC 12. The combined QMC 12 and QM 16 response is measured at the output of the logarithmic ED 20. The calibration circuitry 24 takes the measurements, computes the appropriate compensation parameters for the QMC 12, and provides the compensation parameters to the QMC 12 before the next set of training signals is sent. Ideally, the QMC 12 after receiving the compensation parameters will be an inverse function of the QM 16, such that the output of the QM 16 equals that of the modem 10.
The feedback loop comprises a logarithmic ED 20 configured to detect an output level of the QM 16 in accordance with the logarithmic characteristic of the logarithmic ED, an ADC 22 configured to convert an analog ED signal to a digital ED signal, calibration circuitry 24 used to calibrate the QMC 12 in order to adjust the IQ balance of the QM 16, DACs 14-1 and 14-2 configured to send analog compensation parameters to the QMC 12 of the I channel, DACs 14-6 and 14-7 configured to send analog compensation parameters to the QMC 12 of the Q channel, and a DAC 14-4 configured to send analog compensation parameters for the phase compensation.
The QMC 12 comprises gain compensators 30-1 and 30-2 configured to adjust the IQ gain balance of the QM 16, and offset compensators 32-1 and 32-2 configured to adjust the offset of the QM 16.
The QM 16 comprises a frequency synthesizer 36 configured to set a carrier wave of cos(ωct), a variable phase shifter 38 configured to generate an in-phase carrier of cos(ωct) and a quadrature carrier of −sin(ωct), mixers 34-1 and 34-2 configured to mix the IQ carriers and the IQ signals, and a combiner 40 to combine the in-phase RF signal and the quadrature RF signal.
In this embodiment, the compensation parameters of the QM 12 calculated by the calibration circuitry 24 are transferred via control signals to the analog circuitry. According to the control signals, the analog circuitry adjusts its tunable components such as gain stages 30-1 and 30-2, and offset controllers 32-1 and 32-2, to modify the signal before it is sent to the QM 16, where it is phase adjusted by the variable phase shifter 38 according to the control signals. Other operations may be similar to that of the QMC subsystem shown in
The calibration is carried out in S stages. In Stage s, the magnitude of the rings (excluding the outmost ring) is γ (γ<1) times the magnitude of the corresponding ring(s) in the previous Stage (s−1). The magnitude of the outmost ring is not changed through the stages. In Stage 1, testing rings with larger magnitude guarantees convergence of the algorithm even when the impairments are relatively severe. However, the error after calibration may not be very accurate if the analog chain is nonlinear. In Stage 2 the smaller ring(s) helps to further reduce the error without much sacrifice of convergence rate, owing to Stage 1, which brings QMC parameters close to the optimum values. Preferably, values of the parameters used are K=2, S=3, and γ=0.5.
The non-idealities of the QM include I/Q offset cp=[cp1 cp2]T, gain imbalance ═p/βp, and phase imbalance φp.
As shown in
V
q=Φp(Gpvc+cp), (1)
where Gp is a 2×2 matrix for the gain imbalance,
Φp is a 2×2 matrix for the phase imbalance,
and cp=[cp1 cp2]T is a length-2 vector of I/Q offset.
Similarly, we can express the complex-envelope response of the QMC as
The total response of the cascaded QMC and QM is given by substituting VC in Equation (1) by that in Equation (2),
v
q=ΦpGpGcΦcvd+ΦpGpGccc+Φpcp
Another vector q is defined as the total error generated by the cascaded QMC and QM. The vector q can be linearly approximated by the sum of qp and qc, i.e. q≈qc+qp.
The output of the logarithmic ED may be expressed by a real value ve1,
v
e1
=g
ED log(ve)+dED, (3)
where ve is the ideal ED output that reflects the actual envelope of the sinusoidal waveforms. The gED and dED denote the actual value of the ED's gain and dc offset, respectively. Hence the measurement at output of ADC is given by
v
m
=v
e1
+n
where n is a uniformly distributed random variable to model the quantization noise of the ADC.
The measurements corresponding to each set of training signals can be represented by a vector, denoted by m.
Equation (3) can be reformulated as
where g and d are defined as
g≡gED
d≡d
ED
+g
ED log(v0)
for some reference voltage v0.
The actual gain and offset of the ED are assumed unknown a-priori. They are also not necessarily calculated, but the parameters transformed gain and transformed offset, which are related to the actual gain and offset by a mathematical transformation, are jointly estimated with q by the calibration circuitry. The circuitry estimates the six parameters ĝ, {circumflex over (d)}, and the q parameters εp, Φp, cp1, and cp2 based on least-squared fit of the measurement m with reference to the linear approximation of the desired output, i.e.,
where mk is the vector of measurements for training signals of magnitude corresponding to the kth ring. Sk is a 4×4 matrix, diag(0.5, 0.5, 1/Vdk, 1/Vdk, where Vdk is the amplitude of the kth ring. Θ is an N×4 matrix, whose nth row is [cos(2θn), sin(2θn), cos(θn), sin(θn)].
The values of interest of the six parameters ĝ, {circumflex over (d)}, and the {circumflex over (q)} parameters εp, Φp, cp1, and cp2 are those which minimize the error and therefore minimize the expression E, which is defined as the terms inside min{•} in Equation (4). Since E is a convex function of the parameters, setting the partial derivatives of E with respect to each of ĝ, {circumflex over (d)}, and {circumflex over (q)} equal to zero will result in criteria for obtaining the correct parameter values to adjust the QMC. These criteria, ∂E/∂q=0, ∂E/∂g=0, and ∂E/∂d=0, are used to derive a set of relationships between the measurement m and variables to be estimated, {circumflex over (d)}, ĝ, and {circumflex over (q)}. Because the function of Equation (4) is a nonlinear function of the variables, {circumflex over (d)}, ĝ, and {circumflex over (q)}, the task is non-trivial. The resulting set of relationships, described below, facilitate a straightforward procedure to sequentially solve for the variables {circumflex over (d)}, ĝ, and {circumflex over (q)}.
The one variable at a time approach is reminiscent of the Gaussian elimination method used to solve a system of linear equations. As the calibration procedure is based on linear approximation of the QM and the QMC errors, a few iterations are expected for the algorithm to converge.
At the step S10, the switch SW1 is flipped at the modem 10 input to ‘Training Signal’. The switch SW2 is flipped to the ED input. The switch SW3 is closed, the QMC parameters are initialized with εc=φc=0, and cc=0 and the stage counter is initialized with s=0.
At the step S11, the stage counter is incremented by 1, that is, s=s+1. The proper set of training signals is selected according to the value of s.
At the step S13, the training signals on the innermost ring (i.e., k=1) are applied, one-by-one, to the QMC input with amplitude Vd1 and n phases θn, n=1, . . . N, uniformly distributed between 0 and 2π. The Vd1 can be chosen anywhere the ED is in linear region. The baseband system waits a period of settling time before making a measurement at the ADC output. The measurements for training points on k=1 are denoted by the vector m1
At the step S14, a first intermediate parameter {circumflex over (d)} is estimated with Equation 5 below. This parameter is sometimes referred to herein as a transformed ED offset parameter. This parameter is given by the mean of the elements in m1
At the step S16, another set of training signals is applied with the same set of phases θn, n=1, . . . N, but with a different amplitude Vd2. The corresponding measurements are denoted by m2.
If more iterations are desired at step S18, the step S16 is repeated for various amplitudes Vdk for k=2, 3, . . . K, according to the number of iterations desired.
At the step S20, a second intermediate parameter ĝ is estimated. This is sometimes referred to herein as the transformed ED gain. A value for the parameter ĝ is obtained by
with {circumflex over (d)} obtained in step S14.
At the step S22, the overall error vector is estimated. The error vector is calculated by substituting ĝ and {tilde over (m)}k in Step S20 into the following equation,
At the step S24, the compensation (also called correction) vector qc(l+1)=qc(l)−{circumflex over (q)} is updated in QMC. With the new value of qc=[εc φc cc1 cc2]T, the corresponding matrices/vectors for QMC are also updated, resulting in
At the step S26, the termination criterion f({circumflex over (q)})≦Threshold is checked. One choice of the termination criterion may look like
If true, go to the step S27. If not, go to step S13.
At step S27, it is checked whether or not the value of s reaches a predetermined maximum S. If s reaches S, go to step S28. If s does not reach S, go back to the step S11. At the step S28, the switch SW1 at the modem 10 input is flipped to ‘Data Signal’. The switch SW2 is flipped to the PA 18 input. The switch SW3 is opened. Then, transmitting the regular data is started.
The above mentioned procedure is performed with the following assumptions:
Computational complexity is analyzed for computing estimates of the variables:
can also be pre-stored in a lookup table, and thus the division can be replaced by a product. In summary, it takes K(N+1) sums and (K+1) products.
may be pre-calculated, and 1/ĝ requires one division.
In summary, the approximate computational cost for a single iteration is listed in
Two example embodiments are provided to help illustrate the method.
The ED and ADC selected here for this embodiment are Analog Devices AD8364 and AD7655 (16-bit), respectively.
Then, the gain and offset for ED actually estimated by the proposed procedure are
g=gED
d=g
ED
+d
ED log(v0) (7)
where the v0 is fixed for the ED used.
The output at the OUTP port of AD8364 is in the range of 1 to 5 volt, which is suitable for AD7655 input. The step size of AD7655 with operation range of 0 to 5 volt is Δ=5/216=7.63*10−5. In the following experiment, the ADC quantization error is modeled as a noise with uniform distribution, n˜U(˜Δ/2, Δ/2). The QMC non-idealities are summarized below,
εp=−0.05
φp=5°
cp1=cp2=5%
The Threshold used in this example is 10−5. For training signals, the number of test points per ring is 16 (N=16) and two rings (K=2) are applied in
To demonstrate the robustness of the method, the simulation setup of this example is the same as that used in example 1, except that an 8-bit ADC, such as AD7904, is used in this example instead of the 16-bit ADC used in example 1. The noise introduced by quantization error is larger, and is reflected in the variation of the number of iterations needed from trial to trial. Where 200 trials were performed for each N, the mean and 2σ values (where a is standard deviation) of the number of iterations needed are illustrated in
The performance is manageable because the mean and standard deviation decrease and the computational cost per iteration increases with N. Relative computational cost for each N is shown in
According to the presented embodiments, a simple procedure is provided for correcting the amplitude, phase, and offset non-idealities of the quadrature modulator in transmitter circuitry. The performance is manageable with modest computational cost.
While the above description has pointed out novel features of the invention as applied to various embodiments, the skilled person will understand that various omissions, substitutions, and changes in the form and details of the device or method illustrated may be made without departing from the scope of the invention. All variations coming within the meaning and range of equivalency of the claims are embraced within their scope.
This application is a continuation-in-part of U.S. application Ser. No. 11/298,072, filed on Nov. 29, 2005, entitled Calibration Apparatus and Method for Quadrature Modulation System.
Number | Date | Country | |
---|---|---|---|
Parent | 11289072 | Nov 2005 | US |
Child | 12101900 | US |