GAIN CONTROLLER FOR QUADRATURE TRANCEIVER

Abstract: In a radio circuit (299) that forwards a signal pair (I,Q) by a first channel (291, I) and by a second channel (292, Q), a gain controller (200) monitors differences between the overall gains (GI, GQ) in the channels and corrects a gain imbalance by feeding back a gain determining control signal (W) to one of the channels. The controller has first (221-224) and second (211-214) pluralities of single-bit comparators, operating at a high sampling rate, to monitor the signal pair at the channel inputs (281, 282) and at the channel outputs (283, 284), respectively, and to provide difference signals ( DELTA X, DELTA Y) to an integrator (280) that calculates the gain control signal (W) at a decimated sampling rate (FR).

Description: GAIN CONTROLLER FOR QUADRATURE TRANSCEIVER Field of the Invention The present invention generally relates to electronic circuits having in-phase and quadrature channels, and more particularly, to a gain controller for such circuits and to a method. Background of the Invention Receiver circuits and transmitter circuits (collectively "radio circuits") of the direct conversion type are often used for radio frequency (RF) filtering in communication devices such as mobile phones, television receivers or the like. Such a radio circuit uses signal pairs having an in-phase signal (I) and a quadrature signal (Q) . Both signals I and Q have a substantially equal carrier frequency. The Q signal is 90° phase shifted to the I signal. In other words, both signals are in quadrature to each other. The radio circuit has a first channel for the I signal and second channel for Q signal. Each channel independently forwards and processes its signal, for example by digital-to-analog converting and low-pass filtering. Other signal processing is also possible, for example, analog-to-digital converting. Exact processing of the I and Q signals require, among other things, that both signals have the same amplitude. However, differences in the gains (amplitude transfer function) of the channels commonly occur as a result of changes in temperature, frequency, manufacturing variations of the electrical components and other parameters. Small gain differences, ("mismatch") can result in distortions in further circuitry coupled to the radio circuit. Useful references can be found in United States Patents 5,604,929; 5,249,203; 5,230,099; 5,179,730; 5,095,536; 5,095,533; all to ooper; as well as in US 4,926,443 to Reich; US 4,633,315 to Kasperkovitz ; US 5,930,286 to alley; and US 4,799,212 to Mehrgardt . The present invention seeks to provide an improved gain controller and a method, which mitigate or avoid disadvantages and limitations of the prior art. Brief Description of the Drawings FIG. 1 illustrates a simplified time diagram of a signal pair with an in-phase signal and a quadrature signal; FIG. 2 illustrates a simplified block diagram of a circuit having in-phase and quadrature channels that is controlled by a gain controller according to the present invention; FIG. 3 illustrates a simplified time diagram of digital signals having first and second sampling rates; FIG. 4 illustrates a simplified block diagram of the gain controller of FIG. 2; FIG. 5 illustrates a simplified block diagram of the gain controller of FIG. 2 with more detail; FIG. 6 illustrates a simplified block diagram of a signal evaluator in the gain controller of FIG. 5 ; FIG. 7 illustrates, in combination, simplified time diagrams of signal component supplied to an analog comparator in the signal evaluator of FIG. 6 and of an intermediate signal provided by the analog comparator in an ideal case and as distorted by an offset; FIG. 8 illustrates a simplified block diagram of a further signal evaluator in the gain controller of FIG. 5; and FIG. 9 illustrates a simplified flow chart diagram of a method according to the present invention. Detailed Description of a Preferred Embodiment For convenience, a glossary of terms used here and their definition is provided prior to the claims. The following explanation uses abbreviations such as "A" for "analog", "D" for "digital"; "P" for "plus"; "M" for "minus"; and the ellipsis "..." collectively for either P or N. Arrows in signal lines of the block diagrams illustrate a preferred signal flow. FIG. 1 illustrates a simplified time diagram of the signal pair I,Q with the in-phase signal I (traces 311, 312) and - shifted by substantially 90° - the quadrature signal Q (traces 321, 322). The horizontal axis shows the time t, and the vertical axis shows a physical quantity of the signals, such as voltage, current or the like. FIG. 1 shows the signals conveniently as analog signals (index "A"); digital signals (index "D") can be defined similarly. Signals I A and Q A each are differential signals each with a first component (traces 311, 321) and a second component (dashed traces 312, 322). For convenience of further explanation, first and second components are referred to as "plus" (P) and "minus" (M) components: component I A (P) by trace 311, component I A (M) by trace 312, component Q A (P) by trace 321, and component Q A ( ) by trace 322. In the following discussion, common quantity offsets in the P and M components of each signal are neglected so that for each signal, both the P and N components are symmetric to the time axis. The sine shape of the signals is only intended to be a non-limiting example; any other shapes are possible. FIG. 2 illustrates a simplified block diagram of radio circuit 299 having an in-phase channel 291 (dashed frame) and an quadrature channel 292 (dashed frame) that is controlled by gain controller 200 according to the present invention. Explaining the present invention for two channels 291, 292 is convenient, but not necessary for the present invention. Persons of skill in the art are able, based on the description herein, to implement controller 200 also for applications with further channels without departing from the scope of the present invention. The term "in-phase" is therefore intended to be only a convenient abbreviation for signals and elements (like channel, input, output, etc.) in a "first" channel; and the term "quadrature" is an abbreviation for signals and elements in a "second" channel. Gain controller 200 can be used in a variety of telecommunication and other applications, for example, cellular phones operating according to international standards, such as for example CDMA (Code Division Multiple Access) and others. Gain controller 200 according to the present invention is therefore conveniently explained with the assumption that circuit 299 belongs to a radio receiver. By in-phase channel 291, circuit 299 forwards an in-phase input signal (e.g., signal I D ) to in-phase output signal (signal I A ) . By quadrature channel 292, circuit 299 forwards a quadrature input signal (e.g., signal Q D ) to quadrature output signal (e.g., signal Q A ) . As illustrated, input signals are digital signals; and output signals are analog signals. This is convenient, but not essential. Persons of skill in the art can modify circuit 299 (analog input, digital output, both analog, both digital) . In circuit 299, in-phase channel 291 comprises digital-to-analog converter (DAC) 293 and low-pass filter (LPF) 295 to convert digital in-phase signal I D present at digital in-phase input 281 to analog in-phase signal I A at analog in-phase output 283. Quadrature channel 292 comprises DAC 294 and LPF 296 to convert digital quadrature signal Q D present at digital quadrature input 282 to analog quadrature signal Q A at analog quadrature output 284. The overall gains Gi = I /ID and G Q = Q A /Q D in both channels 291 and 292, respectively, should substantially be equal. Gain controller 200 has input 201 coupled to input 281 to receive digital in-phase signal I D ; input 202 coupled to input 282 to receive digital quadrature signal Q D ; input 203 coupled to output 283 to receive analog in-phase signal I A ; and input 204 coupled to output 284 to receive analog quadrature signal Q A . Preferably, digital signals I D and Q D are represented by multiple bits. During processing, optional quantizers (details later) can reduce the number of bits, for example to one ("single-bit") . In a feedback arrangement, gain controller 200 obtains gain control signal W (available at output 206) . Preferably, signal W controls gain amplifier 205 that is coupled between digital quadrature input 282 and DAC 294. Multiplier controls the quantity of signal Q D that goes into DAC 294. The amplitude of signal Q D (before amplifier 205) is related to the amplitude of modified signal Q D MOD (after amplifier 205) by gain L (L = Q D MOD / Q D ) ■ In such a way, relative differences (G ΠI /G Q ) and absolute differences (G I -GQ) between overall gains Gi and G Q are avoided. Having amplifier 205 associated with quadrature channel 292 is convenient for explanation but not necessary for the present invention. Those of skill in the art are able, based on the description herein, to couple amplifier 205 also to in-phase channel 291 without departing from the scope of the present invention. Before explaining details of gain controller 200, sampling rates of digital signals are discussed. FIG. 3 illustrates a simplified time diagram of digital signal N D having a first sampling rate and digital signal V° having a second sampling rate. Digital signal V D has substantially constant magnitudes during first time intervals T (hereinafter "time slots"). In other words, signal V D is sampled at first sampling rate F = 1/T. Digital signal V D stands for digital signals like I D and Q D (FIG. 2) and X D , Y D , X A , Y A , ΔX, ΔY (cf. FIG. 5). When writing V D (r), time slots T are conveniently identified by indices r, r-1, r-2, ... r-R. Sampling rate F depends on the application of I and Q signals in circuit 299. For example, for a radio receiver employing baseband frequencies (cf . T SIG in FIG. 7) of about zero to 600 kHz, rate F = 5 MHz is an oversampling rate. Preferably, the oversampling ratio is between 4 and 16 of twice the baseband frequency. Internally, gain controller 200 also uses signals V° that have substantially constant magnitudes during second, longer time intervals T R = R*T (hereinafter "time frames") . In other words, such signals are sampled with the predetermined second, lower sampling rate F R = 1/T R = F/R. R is a sampling rate decimation ratio. Preferably, R is an integer, but real ratios can also be used. In other words, R indicates the number of time slots per time frame. Useful values for R are in the range between R MIN = 8 and R MAX = 64. Preferably, R is in the range between R MIN = 16 and = 32. For any time frame T R = R * T ending with a time slot identified by index r, an average V A ERAGE of V D (r) , can be defined, for example, as follows: 1 R-l (1) VJ ERAGE = — * ∑ V(r-j) R j=0 Controller 200 internally uses rate decimation where signals V D are converted to signals V° (e.g., Δx° , ΔY°, 1°, Q°, cf . FIG. 5) . For the application of sampling rate decimators, the following references are useful: Crochiere, R. E. and Rabiner, L. R. : "Interpolation and Decimation of Digital Signals - A Tutorial Review", Proceedings of the IEEE, vol. 69, No.3, March 1981; and Proakis, J. G. , Manolakis, D. G. : "Digital Signal Processing", Third Edition, Prentice Hall, Upper Saddle River, 1996, ISBN 0-13- 373762-4, sections 10.1 to 10.6 of chapter 10 "Multirate Digital Signal Processing" . FIG. 4 illustrates a simplified block diagram of gain controller 200 according to the present invention. Gain controller 200 provides control signal W at output 206 that (by varying L) adjusts the overall gain in either ("first") in-phase channel 291 or ("second") quadrature channel 292 of circuit 299 (cf . FIG. 5) . Gain controller 200 comprises a first plurality of comparators 221-224 (details FIG. 8), a second plurality of comparators 211-214 (details FIG. 6) , and signal processing circuit 290. In the first plurality of comparators, each comparator 221, 222, 223, 224 compares one of first (e.g., I D (P)) and second (e.g., I D (M)) components of the in-phase input signal (e.g., I D at input 201) to one of first (e.g., Q D (P)) and second (e.g., Q D (M)) components of the quadrature input signal (e.g., Q D at input 202). Each comparator 221, 222, 223, 224 provides a single-bit "input related" intermediate signal (e.g., C D (...,...)) at the first sampling rate F. In the second plurality of comparators, each comparator 211, 212, 213, 214 compares one of first (e.g., I A (P)) and second (e.g., I (M)) components of the in-phase output signal (e.g., I A at input 203) to one of first (e.g., Q A (P) ) and second (e.g., Q (M)) components of the quadrature output signal (e.g., Q A at output 204). Each comparator 211, 212, 213, 214 provides a single-bit "output related" intermediate signal (C A (... , ...) ) at first sampling rate F. Signal processing circuit 290 receives the "input related" single-bit intermediate signal (e.g., C D (... ,...)) from each of comparators 221, 222, 223, 224 (first plurality) and receives the "output related" single-bit intermediate signal (e.g., C A (...,...)) from each of comparators 211, 212, 213, 214 (second plurality) and integrates a predetermined combination of the single-bit intermediate signals (example explained later) to control signal W (output 206) at the second, lower sampling rate F R .. Using comparators that output single-bit signals is an important advantage of the present invention and avoids the use of precise multibit converters. In connection with the following figures, signal processing circuit 290 is explained with dedicated hardware elements such as, for example, combiners 217, 218, 227, 228, (in evaluators 210, 220), conditioners 230, 240, 250, 260, adders 271, 272, 273, multipliers 235, 245, and integrator 280. This is convenient for explanation, but not limited thereto. Persons of skill in the art are able, based on the description herein, to implement the function of processing circuit 290 by a digital signal processor (DSP) or other general purpose processor such as a microprocessor, without departing from the scope of the present invention. FIG. 5 illustrates a simplified block diagram of gain controller 200. Gain controller 200 comprises signal evaluator 210 (details in FIGS. 6-7), signal evaluator 220 (details in FIG. 8), signal conditioners 230, 240, 250, 260 (dashed frames), adders 271, 272, 273, multipliers 235, 245, and integrator 280. Signal conditioner 230 comprises averager 231 (symbol Σ) , decimator 232 (symbol -l) , quantizer 233, and delay stage 234. Signal conditioner 240 comprises averager 241, decimator 242, quantizer 243, and delay stage 244. Signal conditioner 250 comprises averager 251 and decimator 252. Signal conditioner 260 comprises averager 261 and decimator 262. Signal conditioner 230 receives digital in-phase signal I D having the sampling rate F at input 201 and provides conditioned in-phase signal 1° having the lower sampling rate F R (at output of stage 234) . Similarly, conditioner 240 receives digital quadrature signal Q D (sampling rate F, input 202) and provides conditioned quadrature signal Q° (sampling rate F R , output of stage 244) . Signal conditioners 250 and 260 condition difference signals ΔX (from adder 271, see below) and ΔY (from adder 272) to signals Δx° and ΔY°, respectively, by converting to rate F R . In other words, signals Δx° and ΔY° are F R rate representations of difference signals Δx° and ΔY° , respectively. For conditioning, the conditioners use averagers 231, 241, 251, 261 to provide averages (cf. equation (1)) and decimators 232, 242, 252, 262 to decimate from rate F to rate F R , and - optionally - quantizers 233, 243 to convert multi-bit signals, preferably, to single-bit signals; and delay stages 234, 244 for synchronization purposes . Signal evaluator 210 receives analog in-phase signal I A and analog quadrature signal Q A (at inputs 203, 204, respectively) and provides combination signals X A and Y A (at outputs 215, 216, respectively). Similarly, signal evaluator 220 receives digital in-phase signal I D and digital quadrature signal Q D (at inputs 201, 201, respectively) and provides combination signals X D and Y D (at outputs 225, 226, respectively). Preferably, signals X A , Y A , X D and Y D are at sampling rate F. Details on how signals X A , Y A , X D and Y D are obtained are explained in connection with FIGS. 6-8. Adder 271 provides difference signal ΔX by subtracting signal X D from signal X A ; adder 272 provides difference signal ΔY by subtracting signal Y D from signal Y A (cf . the minus symbols) . Preferably, signals ΔX and ΔY keep sampling rate F. Multiplier 235 receiving 1° and ΔX° forwards the intermediate product I°*ΔX° to adder 273; similarly, multiplier 245 receiving Q° and ΔY° forwards the intermediate product Q°*ΔY° to adder 273. Adder 273 forwards the difference I°*Δx° - Q°*ΔY° to integrator 280. Integrator 280 provides above mentioned gain control signal W at output 206 (cf . FIG. 2) . Signal controls amplifier 205 (cf. FIG. 2) such that quadrature signal Q D at input 282 (cf. FIG. 2) is forwarded to DAC 294 as Q D MOD with the gain L = 1 + W. Thereby, the feedback control loop from outputs 282, 284 to channels 291, 292 is formed. Details about signal W are explained later. FIG. 6 illustrates a simplified block diagram of signal evaluator 210 in gain controller 200 (cf. FIG. 5). Signal evaluator 210 comprises analog comparators 211, 212, 213, and 214 and combiners 217 and 218. Each of comparators 211, 212, 213, 214 has a first input to receive a component I A (...) from input 203 (cf . FIGS. 1,2,4,5), a second input to receive a component Q A (...) from input 204 (cf. FIGS. 1,2,4,5), and an output to provide the above mentioned single-bit intermediate signal C (... ,...). C A (...,...) is "output related" because it is derived from outputs 283 and 284 of circuit 299. Combiners 217 and 218 receive signals C A (...,...) and send above mentioned signals X A and Y A to output 215 and 216, respectively. Preferably, comparators 211, 212, 213, and 214 receive sample signal SAMPLE at rate F from input 219 to output an updated intermediate signal C A (...,...) once in each time slot T. Preferably, each analog comparator 211, 212, 213, and 214 is a single-bit analog-to-digital converter. In other words, intermediate signal C(...,...) can assume only two magnitudes, for example, "+1" and "-1", indicating a first and a second logical state, respectively. In an ideal case, each comparator outputs signal C A (...,...) in the first state when component I A (...) is larger than or equal to component Q A (...); and outputs signal C A (...,...) is the second state when component I A (...) is smaller than component Q (...) , that is C A (...,...) = "+1" for I A (...) - Q A (...) > 0 (2) C A (...,...) = "-1" for I A (...) - Q A (...) < 0 (4) However, in the non-ideal case, this statements are extended by introducing comparator offsets 0 A (...,...), for example: (6,8) C A (...,...) = "+1" for I A (...) - Q A (...) > 0 A (...,...) C A (...,...) = "-1" for I A (...) - Q A (...) < 0 A (...,...) Offsets 0 A (P,P), 0 A (P,M) , 0 A (M,P), and 0 A (M,M) may be different for each comparator 211, 212, 213, and 214, respectively, and can assume positive and negative values . The comparators receive the components and provide the output related single-bit signals as follows: Comparator 211 receives components I A (P) and Q (P) and provides signal C A (P,P); comparator 212 receives components I A (P) and Q A (M) and provides signal C A (P,M) ; comparator 213 receives components I A (M) and Q (P) and provides signal C A (M,P); comparator 214 receives components I A (M) and Q (M) and provides signal C A (M,M) . The function of combiners 217 and 218 will be explained later. FIG. 7 illustrates, in combination, • simplified time diagram 501 of a signal component (e.g., I A (P) , bold, trace 311 as in FIG. 1) of in-phase signal I and of a signal component (e.g., Q A (P) , trace 321 as in FIG. 1) of quadrature signal Q that are supplied to an analog comparator (e.g., to 211) in signal evaluator 210 (cf. FIG. 6), • simplified time diagram 502 of the intermediate single- bit signal (e.g., C A (P,P)) provided by the analog comparator (e.g., by comparator 211) in an ideal case, and • simplified time diagram 503 of that intermediate signal single-bit distorted by the comparator offset (e.g. 0(P,P)) . Similar as in FIG. 1, the sine form is only an example. Diagrams 501, 502 and 503 have a common horizontal time axis t with consecutive time points ti to t 6 as well as time points t 7 to tι 0 . The time points are useful for explanation and must not necessarily be synchronous to time slots T (cf . FIG. 3) . Since comparator 211 provides signal C A (P,P) at rate F that is an oversampling rate in respect to the signal period length T SIG ( e . g . , S ι G = t 5 -tι) , the generation of signal C A (P,P) is expected at any time point. As in diagram 501, component I A (P) starts with zero quantity at ti, reaches a positive maximum at t , again reaches zero at t 3 , reaches a negative maximum at t 4 , again reaches zero at t 5 , and reaches the positive maximum at t 6 . Component Q A (P) (that is 90° shifted) has the negative maximum at ti, reaches zero at t , reaches the positive maximum at t 3 , reaches zero at t , reaches the negative maximum at ts, and reaches zero at t 6 . The period length T S ι G is unchanged. Vertical arrows going from I A (P) to Q A (P) indicate the difference I A (P) - Q A (P) (cf. statements (2 ) (4) (6) (8) ) . Diagram 501 in combination with diagram 502 illustrates an ideal operation of comparator 211 without offset (cf. statements (2) (4)). Down-pointing arrows 511, 512, 515 and 516 at ti, t , ts, and t 6 , respectively, stand for signal C A (P,P) that is "+1" . Similarly, for up- pointing arrows 513 and 514 at t 3 and t , respectively, signal C A (P,P) is "-1". For time points t 7 and ts where the quantities of both components I A (P) and Q A (P) are substantially equal, the arrows are reduced to points 517 and 518, respectively, and signal C (P,P) is defined as "+1" (cf. (6), diagram 502). Hence, signal C A (P,P) is "+1" before t 7 (trace 531) and after t 8 (trace 533) and "-1" in the meantime (trace 532) . A signal changing rate is t 8 - t 7 = T SIG /2. Diagram 501 in combination with diagram 503 illustrates the operation of comparator 211 with offset 0(P,P). Down-pointing arrow 521 at t 9 represents the offset 0(P,P); signal C A (P,P) goes to "-1" at t 9 earlier than in the ideal case (traces 541, 542) . Up-pointing arrow 522 at tio again represents the offset 0(P,P); signal C A (P,P) returns to "-1" at t 10 later than in the ideal case (traces 542, 543) . Hence, the signal changing rate of C (P,P) becomes asymmetric (tι 0 - t 9 > T SIG /2). The offset 0(P,P) is also represented by the different length of the "+1" and "-1" intervals of C A (P,P) . As a person of skill in the art will understand without the need of further illustration, amplitude differences between components I A (P,P) and Q A (P,P) will also modify these interval lengths. Therefore, all the signals C A (P,P), C A (P,M), C A (M,P) and C A (M,M) of comparators 211, 212, 213 and 214, respectively, of signal evaluator 210 (cf. FIG. 6) carry information about the offsets 0(...,...) and the amplitude differences between the signal components. It is now explained how this information is further evaluated. Coming back to FIG. 6, combiner 217 receives signals C A (P,P), C A (P,M), C A (M,P) and C A (M,M) and provides signal X' A according to (10) X' A = {+ C A (P,P) + C A (P,M) - C A (M,P) - C A (M,M) } Hence, combiner 217 uses a first summation pattern (++--) , that, in the example, means combining the positive of C A (P,P), the positive of C A (P,M) , the negative of C A (M,P) and the negative of C A (M,M) . Taking into account any noise x A (lowercase) introduced, for example, by the comparators, and a constant scaling factor k, the signal X A that is available at output 215 is estimated as: X A k * X' A + x A (12) Combiner 218 also receives signals C A (P,P), C A (P,M), C A (M,P) and C A (M,M) and provides signal Y' A according to (14) Y' A = {+ C A (P,P) - C A (P,M) + C A (M,P) - C A (M,M) } Hence, combiner 218 uses a second summation pattern (+-+-) , that, in the example, means combining the positive of C A (P,P), the negative of C A (P,M) , the positive C A (M,P) and the negative of C A (M,M) . Again taking into account any noise y A (lowercase) , for example, introduced by the comparators, and the factor k, the signal Y A that is available at output 216 is estimated as: Y A = k * Y' A + y A (16) FIG. 8 illustrates a simplified block diagram of signal evaluator 220 of gain controller 200 (cf. FIG. 5). Signal evaluator 220 comprises digital comparators 221, 222, 223 and 224, combiners 227 and 228, and delay stages 207 and 208. Input signals of evaluator 220 are digital in-phase signal I D at input 201 and digital quadrature signal Q D at input 202; and output signals are signals X D at output 225 and Y D at output 226. Comparators 221, 222, 223, 224 are clocked by sample signal SAMPLE from input 229. Preferably, SAMPLE is the same as in evaluator 210 (cf. FIG. 6) . For convenience, signals I D and Q D are considered as differential signals each with a first component (P) and a second component (M) , wherein ID (M) = - I D (P) and (18) QD (M) = - Q D (P) . (20) The comparators receive the components I D (...), Q D (---) and provide single-bit signals QD(.■•#••■). QD(--.,---) are "input related" because they are derived from inputs 281, 282 of circuit 299. In detail, comparator 221 receives components I D (P) and Q D (P) and provides signal C D (P,P); comparator 222 receives components I D (P) and Q D (M) and provides signal C D (P,M); comparator 223 receives components ID(M) and Q D (P) and provides signal C D (M,P); comparator 224 receives components I D ( ) and Q D (M) and provides signal C D (M,M). Conveniently, the comparators provide the signals C D (...,...) according to the following definitions: C D (...,...) = "+1" for I A (...) - Q D (...) > 0 (22) C D (...,...) = "-1" for I D (...) - Q D (...) < 0 (24) In comparison to analog comparators 211, 212, 213, 214 , described above, digital comparators 221, 222, 223, 224 substantially avoid the offset. Combiner 227 receives signals C D (P,P), C D (P,M), C D (M,P) and C D (M,M) and provides signal X' D according to (26) X' D = (+ C D (P,P) + C D (P,M) - C D (M,P) - C D (M,M) } Hence, combiner 227 uses the above mentioned first summation pattern. Delay stage 207 forwards signal X' D with a delay of N time slots T. The symbol Z "N is an operator of a Z-transformation. Persons of skill in the art can implement delay stage 207 without the need of detailed explanation herein, for example, by a shift register. The delay of stage 207 conveniently corresponds to the intrinsic input-to-output delay introduced in in-phase channel 291 (e.g., by DAC 293, LPF 295). This is convenient. As explained in connection with FIG. 3, the "input related" signal X D is combined with the delayed "output related" X A . Taking further into account any noise x D (lowercase) introduced, for example, by comparators and delay stage 207, and the above mentioned scaling factor k, the signal X D forwarded to output 225 is estimated as: X D = k * X' D * Z ~N + x D (28) Combiner 228 receives signals C D (P,P), C D (P,M), C D (M,P) and C D (M,M) and provides signal Y' D according to (30) Y' D = (+ C D (P,P) - C D (P,M) + C D (M,P) - C D (M,M) } Hence, combiner 228 uses the above mentioned second summation pattern. Delay stage 208 forwards signal Y' D to output 226 with the delay of N time slots T. Taking also into account any noise y D (lowercase) introduced, for example, by the comparators and by delay stage 208, and the scaling factor k, the signal Y D forwarded to output 226 is estimated as : Y D = k* Y' D * Z _N + y D (32) N conveniently corresponds to the delay introduced in in-phase channel 292 (e.g., by DAC 294, LPF 296). Giving the above definitions of C D (...,...) with possible values "+1" and "-1", signals X D and Y D can be any numbers from the set "-4", "-3", "-2", "-1" , "0", "+1", "+2", "+3" and "+4" . The explanation now gives more details to FIG. 5. As mentioned above, adder 271 combines signal X A with the negative of signal X D to signal ΔX, that is: ΔX = X A - X D (34) ΔX = k * X' A + x A - (k* X' D *Z _N + x D ) (36) Assuming that the noise portions x A and x D substantially cancel each other, the last equation is simplified to: ΔX = k * (X' A - X'D *Z ~N ) (38) ΔX = k * X' D (G x - 1) (40) wherein gain G x is defined as X'A (42) Gx = X'D * Z "N Similarly, adder 272 combines signal Y A with the negative of signal Y D to signal ΔY, wherein noise portions y A and y D cancel, that is: ΔY = Y A - Y D (44) ΔY = k * Y' A + y A - (k* Y' D *Z ~N + y D ) (46) ΔY = k * (Y' A - Y' D *Z 'N ) (48) ΔY = k * X'D * Z "N (G γ - 1) (50) Y' A (52) G γ = (gain) Y' D * Z "N As mentioned above, adder 273 forwards the difference I°*ΔX° - Q°*ΔY° to gain integrator 280 that provides gain control signal W (cf. FIG. 2) according to: W = I I°*ΔX° - Q°*ΔY° dt (56) W = k * Z ~N * j I°* X' D *(G X - 1) - Q°* Y'D * (Gy - 1) dt (58) W = h * Z ~N * I Gx - G γ dt (60) where h is a constant, providing, for example, that W becomes dimensionless . As mentioned above, with gain control signal W supplied to amplifier 205, gain controller 200 provides a feedback loop that relates the gain L of amplifier 205 to W, preferably, according to: L = 1 + W (62) In an ideal case, gains G x and G γ are substantially equal so that W substantially becomes zero and the gain L becomes 1. In case of a difference between G x and G γ , L is either increased or decreased so that the difference G x - G γ is reduced again. Preferably, W assumes values between -0.3 and +0.3 so that L assumes values between 0.7 and 1.3. FIG. 9 illustrates a simplified flow chart diagram of method 400 for controlling the gain balance in circuit 299 between first channel 291 that forwards a first two- component input signal (e.g., I D (P), I D (M)) to a first two-component output signal (e.g., I A (P) , I A (M) ) and second channel 292 that forwards a second two-component input signal (e.g., Q D (P), Q D (M) ) to a second two- component output signal (e.g., Q A (P) , Q A (M) ) . Method 400 comprising the following steps: independently comparing 410 and 420 and integrating 430. Although illustrated in consecutive order, steps 410 and 420 are preferably performed simultaneously. In comparing step 410, all of four component combinations (e.g., I D (P),Q D (P); ID(P),Q D (M) ; I D (M) ,Q D (P) ; I D (M),Q D (M)) of the first and second input signals are independently (cf. separate comparators 221-224) compared to each other at sampling rate F. The result is represented by four single-bit input related signals (e.g., Q D (P,P); Q D (P,M); Q D (M,P); Q D (M,M)). In comparing step 420, all of four component combinations ( (I A (P) ,Q A (P) ; I A (P),Q A (M); I A (M) , Q A (P) ; I A (M) ,Q A (M) ) ) of the first and second output signals are independently compared (cf. comparators 211-214) to each other also at sampling rate F. The result is represented by single-bit output related signals ((Q A (P,P); Q A (P,M); Q A (M,P) ; Q A (M,M)) . In integrating step 430, a predetermined combination (cf. summation patterns, equations (28) to (56)) of the single-bit input and output related signals obtains control signal W at a second, lower sampling rate F R . Signal W adjusts the gain L in either channel 291 (cf . FIG. 2) or in channel 292. When, as mentioned above, the function of processing circuit 290 is implemented by a DSP or other processor, the method steps comprise software routines for the processor. Persons of skill in the art are able to write such routines . Gain controller 200 can be operated either when circuit 299 is operating with signals (I D / QΌ, IA Q A ) that actually carry information, or when circuit 299 receives reference signals (I D , Q D ) that are substantially equal in amplitude. Preferably, gain controller 200 is implemented together with circuit 299 on a single mono1ithic chip . Having described the present invention in detail, the present invention can also be summarized as follows: Gain controller 200 for correcting a gain imbalance in radio circuit 299 that forwards a signal pair I,Q by first channel 291 and second channel 292 monitors differences between the overall gains Gi, G Q in channels 191, 292 and feeds back gain determining control signal W to one of the channels (e.g., to channel 292) . First and second pluralities of single-bit comparators 221-224, 211-214 monitor the signal pair at channel inputs 281, 282 and at channel outputs 283, 284, respectively, at first sampling rate F and provide difference signals ΔX,ΔY. Integrator 280 receives the difference signals and calculates the gain control signal W in second, decimated sampling rate F R . While the invention has been described in terms of particular structures, devices and methods, those of skill in the art will understand based on the description herein that it is not limited merely to such examples and that the full scope of the invention is properly determined by the claims that follow. Glossary of Terms In the following, abbreviations, physical units, and writing conventions are listed alphabetically. This glossary is provided only for convenience. A analog C D ( .. • / • • • ) output signal of digital comparator c A ( .. . / .. . ) output signal of analog comparator ((......,, ......)) (P,P) (P,M) (M,P) or (M,M) origin of I and Q signal components, respectively, supplied to comparator inputs D digital F first sampling rate F R second, lower sampling rate Gi, GQ overall gains Gx gain G γ gain I A; I A (P) , I A (M) analog in-phase signal with P and M components I D , I D (P) ,I D (M) digital in-phase signal with P and M components 1° conditioned in-phase signal L gain j index (cf . (1) ) h constant k scaling factor 0 (...,...) comparator offset P plus Q A QA(P) , Q A (M) analog quadrature signal with P and M components Q D /QD(P) , Q D ( ) digital quadrature signal with P and M components QD MOD modified signal Q° conditioned quadrature signal M minus N delay duration by number of time slots T R sampling rate decimation ratio, number of time slots in time frame r index SAMPLE sample signal t time ti , t , ... time points T time slot τ R time frame TsiG signal period length V D digital signal at F V° digital signal at lower sampling rate F R V A VERAGE average W gain control signal XA/ XD combination signals provided by combiner XA / XD , Y A , Y Ό noise introduced by combiner ΔX, ΔX° difference signal YA , YD combination signal provided by combiner y noise introduced by combiner ΔY, ΔY° difference signal ,-N delay by N time slots T MHz Megahertz * multiplication / and — division Σ sum of multiple summands I integral

Claims: Claims 1. Gain controller (200) for a circuit (299) having a first channel (291) to forward an first input signal (I D ) to a first output signal (I A ) and a second channel (292) to forward a second input signal (Q D ) to a second output signal (Q A ) , said gain controller (200) providing a control signal (W) that adjusts the gain (L) in either said first channel (291) or said second channel (292), said gain controller (200) comprising: a first plurality of comparators (221-224) , each comparator to compare one of first (I D (P)) and second (I D (M)) components of said first input signal (I D ) to one of first (QD(P)) and second (Q D (M)) components of said second input signal (Q D ) , each comparator to provide a single-bit input related signal (C D (...,...) ) at a first sampling rate (F); a second plurality of comparators (211-214) , each comparator to compare one of first (I A (P)) and second (I A (M) ) components of said first output signal (I A ) to one of first (Q A (P)) and second (Q A (M) ) components of said second output signal (Q A ) , each comparator to provide a single-bit output related signal (C A (..., ...) ) at said first sampling rate (F) ; and a signal processing circuit (290) to receive said single-bit input related signal (C D (..., ...) ) from each of said comparators of said first plurality, to receive said single-bit output related signal (C A (... , ...) ) from each of said comparators of said second plurality, to integrate a predetermined combination of said single-bit signals to said control signal (W) at a second, lower sampling rate (FR) ■ The gain controller (200) according to claim 1, wherein said signal processing circuit (290) further receives said first input signal (I D ) and said second input signal (Q D ) . The gain controller (200) according to claim 1, wherein said signal processing circuit (290) uses decimators (232, 242, 252, 262) for rate converting. 4. The gain controller (200) according to claim 3, wherein said decimators convert from said first sampling rate (F) to said second sampling rate (F R ) in a decimation ratio (R) in the range between 8 and 64. 5. The gain controller (200) according to claim 1, wherein said first input signal (I D ) and said second input signal (Q D ) are digital signals. 6. The gain controller (200) according to claim 1, wherein said first output signal (I A ) and said second output signal (Q A ) are analog signals. The gain controller (200) according to claim 1, for a circuit where said first channel (291) is an in-phase channel and said second channel (292) is a quadrature channel, in said gain controller (200), said first input signal being an in-phase input signal (I D ) , said first output signal being an in-phase output signal (I A ) , said second input signal being a quadrature input signal (Q D ) , and said second output signal being a quadrature output signal (Q A ) . 8. The gain controller (200) according to claim 7, wherein in said first plurality of comparators, a first comparator (221) receives the first component (I D (P)) of the in-phase input signal (I D ) and the first component (QD(P)) of the quadrature input signal (Q D ) and provides a first single-bit input related signal (C D (P,P)); a second comparator (222) receives the first component (I D (P)) of the in-phase input signal (I D ) and the second component (Q D ( )) of the quadrature input signal (Q D ) and provides a second single-bit input related signal (C D (P,M)); a third comparator (223) receives the second component (I D (M)) of the in-phase input signal (I D ) and the first component (QD(P)) of the quadrature input signal (Q D ) and provides a third single-bit input related signal (C D (M,P)); and a fourth comparator (224) receives the second component (I D (M)) of the in-phase input signal (I D ) and the second component (Q D (M)) of the quadrature input signal (Q D ) and provides a fourth single-bit input related signal (C D (M,M)). The gain controller (200) according to claim 8, wherein in said signal processing circuit (290) , a first combiner (227) provides a first combination signal (X D ) by combining said first single-bit input related signal (C D (P,P)), said second single- bit input related signal (C D (P,M)), said third single-bit input related signal (C D (M,P)), and said fourth single-bit input related signal (C D (M,M)) according to a first summation pattern (++--) ; and a second combiner (228) provides a second combination signal (Y D ) by combining said first single-bit input related signal (C D (P,P)), said second single- bit input related signal (C D (P,M)), said third single-bit input related signal (C D (M,P)), and said fourth single-bit input related signal (C D (M,M)) according to a second summation pattern (+-+-) . 0. The gain controller (200) according to claim 9, wherein in said second plurality of comparators, a first comparator (211) receives the first component ((I A (P)) of the in-phase output signal (I A ) and the first component (Q A (P)) of the quadrature output signal (Q A ) and provides a first single-bit output related signal (C A (P,P)); a second comparator (212) receives the first component (I A (P) ) of the in-phase output signal (I A ) and the second component (Q A (M)) of the quadrature output signal (Q A ) and provides a second single-bit output related signal (C A (P,M)); a third comparator (213) receives the second component (I A (M) ) of the in-phase output signal (I A ) and the first component (Q (P) ) of the quadrature output signal (Q A ) and provides a third single-bit output related signal (C A (M,P)); and a fourth comparator (214) receives the second component (I A (M)) of the in-phase output signal (I A ) and the second component (Q A (M)) of the quadrature output signal (Q A ) and provides a fourth single-bit output related signal (C A (M,M)). 1. The gain controller (200) according to claim 10 wherein in said signal processing circuit (290) , a third combiner (217) provides a third combination signal (X A ) by combining said first single-bit output related signal (C A (P,P)), said second single-bit output related signal (C A (P,M)), said third single-bit output related signal (C A (M,P)), and said fourth single-bit output related signal signal (C A (M,M) ) according to said first summation pattern (++— ) ; a fourth combiner (218) provides a fourth combination signal (Y A ) by combining said first single-bit output related signal (C A (P,P)), said second single-bit output related signal (C A (P,M)), said third single-bit output related signal (C A (M,P)), and said fourth single-bit output related signal signal (C A (M,M) ) according to said second summation pattern (+-+-) . 12. The gain controller (200) according to claim 10 wherein in said signal processing circuit (290) , a first representation (ΔX°) of the difference (ΔX) between said third combination signal (X A ) and said first combination signal (X D ) is multiplied with a representation (1°) of said in-phase input signal (I D ) to a first intermediate product (I°*ΔX°) , a second representation (ΔY°) of the difference (ΔY) between said fourth combination signal (Y A ) and said second combination signal (Y D ) is multiplied with a representation (Q°) of said quadrature input signal (Q D ) to a second intermediate product (Q°*ΔY°), and the difference between said first and second intermediate products is integrated to said control signal (W) . 13. The gain controller (200) according to claim 12 wherein in said signal processing circuit (290) , said first (ΔX°) and second (ΔY°) representations are digital signals at said second sampling rate. 14. The gain controller (200) according to claim 11, wherein said first summation pattern (++--) means that said first (227) and third (217) combiners provide said first (X D ) and third (X A ) combination signals, respectively, by combining the positive of said first single-bit signal (C D (P,P), C A (P,P)), the positive of said second single-bit signal (C D (P,M), C A (P,M)), the negative of said third single-bit signal (C D (M,P), C A (M,P)), and the negative of said fourth single-bit signal signal (C D (M,M) , C A (M,M)). 15. The gain controller (200) according to claim 11, wherein said second summation pattern (+-+-) means that said second (228) and fourth (218) combiners provide said second (Y D ) and fourth (Y A ) combination signals, respectively, by combining the positive of said first single-bit signal (C D (P,P), C A (P,P)), the negative of said second single-bit signal (C D (P,M), C A (P,M) ) , the positive of said third single-bit signal (C D (M,P), C A (M,P)), and the negative of said fourth single-bit signal (C D (M,M), C A (M,M) ) . 16. Gain controller according to claim 1 wherein said signal processing circuit is implemented by a general purpose processor. 17. Gain controller according to claim 14 wherein said signal processing circuit is implemented by a digital signal processor (DSP) . 8. Method (400) for controlling the gain balance in a circuit (299) between a first channel (291) that forwards a first two-component input signal (I D (P), I D (M) ) to a first two-component output signal (I A (P) , I A (M)) and a second channel (292) that forwards a second two-component input signal (Q D (P), Q D (M)) to a second two-component output signal (Q (P) , Q A (M) ) , said method (400) comprising the following steps: independently comparing (410) all of four component combinations (I D (P) , Q D (P) ; I D (P),QD( ); I D (M),QD(P) ; I D (M) ,Q D (M)) of said first and second input signals and representing the comparison results by four single-bit input related signals (Q D (P,P); Q D (P,M); Q D (M,P) ; Q D (M,M)) at a first sampling rate; independently comparing (420) all of four component combinations ( (I A (P) , Q A (P) ; I A (P),Q A (M); I A (M) , Q A (P) ; I A (M) ,Q A (M) ) ) of said first and second output signals and representing the comparison results by four single-bit output related signals ((Q A (P,P); Q A (P,M) ; Q A (M,P); Q A (M,M))) at said first sampling rate; and integrating (430) a predetermined combination of said single-bit input and output related signals to obtain a control signal (W) at a second, lower sampling rate (F R ) that adjusts the gain (L) in either said first channel (291) or in said second channel (292) . 9. A gain controller (200) for correcting a gain imbalance in a radio circuit (299) that forwards a signal pair (I,Q) by first (291, I) and second (292, Q) channels, said gain controller monitoring differences between the overall gains (Gi, G Q ) in the channels and feeding back a gain determining control signal (W) to one of the channels, said gain controller characterized in that • first (221-224) and second (211-214) pluralities of single-bit comparators monitor the signal pair at the channel inputs (281, 282) and at the channel outputs (283, 284), respectively, at a first sampling rate (F) and provide difference signals (ΔX,ΔY), and • an integrator (280) receiving the difference signals calculates the gain control signal (W) in a second, decimated sampling rate (F R ) .

Inventors: KOIFMAN VLADIMIR, PAZ RONEN, ZARUBINSKY MICHAEL, KOIFMAN, VLADIMIR, PAZ, RONEN, ZARUBINSKY, MICHAEL
Applicants: MOTOROLA INC, MOTOROLA, INC.
Application year: 2001
Main classification: H04L27
IPC codes: H03C3, H03D3, H03G3, H04L27