GAIN LINEARIZER FOR VARIABLE GAIN AMPLIFIERS

Abstract: Techniques to linearly (in dB) adjust the gains of variable gain elements (i.e., variable gain amplifiers or VGAs) in a receiver of transmitter. An input control signal is provided to a conditioning circuit that conditions the control signal to achieve various signal characteristics. The input control signal is limited to within a particular range of values, temperature compensated, scaled (or normalized) to the supply voltages, shifted with an offset, or manipulated in other fashions. The conditioned signal is then provided to an input stage of a linearizer that generates a set of exponentially related signals. This is achieved using, for example, a differential amplifier in which the conditioned control signal is applied to the inputs of the differential amplifier and the collector currents from the differential amplifier comprises the exponentially related signals. An output stage within the linearizer receives the exponentially related signals and, in response, generates a gain control signal. By approximately matching the output stage to a gain stage of the variable gain element and by using the gain control signal generated by output stage, the gain transfer function of the VGA approximates that of the exponentially related signals.

Description: GAIN LINEARIZER FOR VARIABLE GAIN AMPLIFIERS BACKGROUND OF THE INVENTION I. Field of the Invention The present invention relates to communications circuits. More particularly, the present invention relates to novel and improved techniques for adjusting the gain of variable gain amplifiers. II. Description of the Related Art Variable gain amplifiers (VGAs) are commonly used in communications receivers and transmitters to provide adjustable gain, and thus variable signal amplitude, depending on, for example, operating conditions, system requirements, or other factors. In particular, some transmitters are required to provide a range of adjustment in their output power. One application that requires this power adjustment is a Code Division Multiple Access (CDMA) communications system. In the CDMA system, the signal from each user is spectrally spread over the entire (e.g., 1.2288MHz) system bandwidth. Thus, the transmitted signal from each transmitting user acts as interference to those of other users in the system. To increase system capacity, the output power of each transmitting remote station is adjusted such that a required level of performance (e.g., a particular bit error rate) is maintained while minimizing interference to other users. The transmitted signal from the remote station is affected by various transmission phenomena, including path loss and fading. These phenomena, in combination with the need to control the transmit power, can impose a difficult specification on the required transmit power control range. In fact, for the CDMA system, each remote station transmitter is typically designed with the capability to adjust its output power over a range of greater than 85 dB. The power adjustment for CDMA remote stations is typically provided by one or more variable gain amplifiers in the transmit signal path. The power adjustment is normally performed in increments that are typically specified. For example, for CDMA remote stations that conform to the IS-95-A standard, the output power is adjusted in 0.5 dB increments. For ease of compliance with the power adjustment specification and for other system considerations, it is advantageous to be able to linearly adjust the gain (in dB) of at least one variable gain amplifier in the transmit signal path. Linear in dB gain versus control voltage corresponds to an exponential gain transfer function. For some VGA designs, the exponential gain is achieved with a differential amplifier stage that provides an output current that varies exponentially in response to a differential input control voltage. The transfer function for the differential amplifier is approximately linear in dB, but compresses at large control voltages. VGAs having transfer functions that are not linear in dB can cause degraded performance. For example, a "distorted" (i.e., not linear) transfer function can make it more difficult or challenging to accurately set the transmit output power to a particular level. In CDMA systems, this inaccuracy can result in degraded performance for a particular remote station (if the output power is set too low) or lower system capacity (if the output power is set too high). The distorted transfer function can also affect other circuits (e.g., the AGC loop) that depend on the gain slope of the VGA. For example, a non- linear gain versus control voltage can lead to large gain slopes, which allow noise to more easily transfer onto the transmitted signal. The large gain slopes can also disturb the stability of the AGC loop. Several advantages may be obtained by the use of VGAs that are linear in dB. For example, linear in dB VGAs may reduce the requirement for the RF calibration. Voltages from linear in dB VGAs can also be provided to an AGC loop to generate a log (amplitude) detector, which is useful in some applications. Accordingly, techniques that allow for linear (in dB) adjustment of a variable gain element are highly desirable. SUMMARY OF THE INVENTION The present invention provides techniques to linearly (in dB) adjust the gains of variable gain elements (i.e., variable gain amplifiers or VGAs) in a receiver or transmitter. An input control signal is provided to a conditioning circuit that conditions the control signal to achieve various signal characteristics. For example, the input control signal can be limited to within a particular range of values, temperature compensated, scaled (or normalized) to the supply voltages, shifted with an offset, or manipulated in other fashions. The conditioned signal is then provided to an input stage of a linearizer that generates a set of exponentially related signals. This can be achieved using, for example, a differential amplifier in which the conditioned control signal is applied to the inputs of the differential amplifier and the collector currents from the differential amplifier comprise the exponentially related signals. The differential amplifier can be implemented, for example, with a BJT differential pair. An output stage within the linearizer receives the exponentially related signals and, in response, generates a gain control signal. By approximately matching the output stage to a gain stage of the variable gain element and by using the gain control signal generated by output stage, the gain transfer function of the VGA can approximate that of the exponentially related signals. An embodiment of the invention provides a linearizer circuit for providing a control signal for a variable gain element. The linearizer includes a first circuit coupled to a second circuit. The first circuit is configured to receive an input signal and generate exponentially related signals. The second circuit is configured to receive the exponentially related signals and generate the control signal in response to the received exponentially related signals. The second circuit is approximately matched to a gain circuit within the variable gain element. In a specific implementation, the first circuit or the second circuit, or both, can each be implemented with a differential amplifier. For improved performance, the second circuit can be matched (as closely as possible) to the gain stage of the variable gain element. The input signal can also be conditioned to achieve various signal characteristics such as being limited to within a particular range of values, temperature compensated, continuously adjustable, adjustable in discrete steps, offset vertically in discrete steps, and others. Another embodiment of the invention provides a gain control circuit for providing a gain control signal for a variable gain element. The gain control circuit includes a conditioning circuit coupled to a linearizer circuit. The conditioning circuit is configured to receive and condition an input control signal to generate a conditioned control signal. The linearizer circuit is configured to receive and process the conditioned control signal to generate the gain control signal. The gain control signal, over a particular range of values, provides an approximately linear, in dB, gain transfer function in the variable gain element. The conditioning circuit can include zero or more of the following circuits: a clipping circuit, a temperature compensation circuit, a summing circuit, and other circuits. The clipping circuit is configured to receive the input signal and provide a clipped signal that is limited to a range of values defined by an upper limit and a lower Umit. The temperature compensation circuit is configured to receive an input signal and provide a temperature compensated signal such that the gain transfer function in the variable gain element is approximately invariant to temperature variations. The slimming circuit is configured to receive an input signal and a trim signal and to combine the signals to generate a combined signal. These circuits can be arranged in various orders. Yet another embodiment of the invention provides a circuit for processing an analog signal. The processing circuit includes at least one variable gain element coupled in series and operative to receive an analog signal. Each variable gain element provides a particular gain for the analog signal based on a respective gain control signal. The processing circuit further includes at least one gain control circuit coupled to the variable gain element(s). Typically, one gain control circuit is provided for each variable gain element. One or more of the gain control circuit(s) can be designed to include a linearizer circuit. The linearizer circuit is configured to receive and process an input control signal to generate the gain control signal. The gain control signal, over a particular range of values, provides an approximately linear (in dB) gain transfer function in the variable gain element operative to receive that gain control signal. The gain control circuit can also be designed to include a conditioning circuit coupled to the linearizer circuit. The conditioning circuit can include zero or more of the following circuits: a clipping circuit, a temperature compensation circuit, a summing circuit, and other circuits. The processing circuit can be included, for example, within a receiver or a transmitter that can be used, for example, in a cellular telephone. BRIEF DESCRIPTION OF THE DRAWINGS The features, nature, and advantages of the present invention will become more apparent from the detailed description set forth below when taken in conjunction with the drawings in which like reference characters identify correspondingly throughout and wherein: FIG. 1 shows a simplified block diagram of an embodiment of a transmitter; FIG. 2 shows a plot of a specific (and ideal) set of gain transfer functions for a variable gain amplifier (VGA); FIG. 3A shows a schematic diagram of a simplified differential amplifier that can be used to provide approximately exponential (or linear in dB) gain; FIG. 3B shows a plot of the logarithm of the transfer function of the differential amplifier in FIG.3A; FIG. 4 shows a block diagram of an embodiment of a gain control circuit for generating a gain control signal V G that allows for linear (in dB) adjustment of a variable gain amplifier; FIG. 5 shows a schematic diagram of a specific embodiment of two V-to-I converters, a clipping circuit, and a summer within the gain control circuit; FIG. 6A shows a schematic diagram of a simplified model of the clipping circuit FIG. 6B shows a plot of the transfer function of the clipping circuit; FIG. 7 shows a schematic diagram of a specific embodiment of an I-to-V converter within the gain control circuit; FIG. 8 shows a schematic diagram of a specific embodiment of the linearizer; Fig. 9 shows a schematic diagram of a simplified model of the linearizer and the VGA to be controlled by the linearizer; and FIG. 10 shows a schematic diagram that illustrates some techniques for matching the linearizer output differential amplifier to the differential amplifier of the VGA. DETAILED DESCRIPTION OF THE SPECIFIC EMBODIMENTS FIG. 1 shows a simplified block diagram of an embodiment of a transmitter 100. A digital processor 110 generates data, encodes and modulates the data, and converts the digitally processed data into an analog signal. The analog signal is provided to a baseband (BB) buffer 122 that buffers the signal and provides the buffered signal to a mixer 124. Mixer 124 also receives a local sinusoid at an intermediate frequency (IF LO), and upconverts the buffered baseband signal with the IF LO to generate an IF signal. The IF signal is provided to an IF variable gain amplifier (IF VGA) 126 that amplifies the signal with a gain determined by a gain control signal 128 from a gain control circuit 130. The amplified IF signal is provided to a filter 132 that filters the IF signal to remove out-of-band noise and undesired signals. The filtered IF signal is provided to an IF buffer 142 that buffers the signal and provides the buffered IF signal to a mixer 144. Mixer 144 also receives a local sinusoid at a radio frequency (RF LO), and upconverts the buffered IF signal with the RF LO to generate a RF signal. The RF signal is provided to a RF VGA 146 that amplifies the signal with a gain determined by a gain control signal 148 from gain control circuit 130. The amplified RF signal is provided to a power amplifier (PA) 150 that provides the required signal drive. The output of PA 150 couples to an antenna via an isolator and a duplexer (all three elements not shown in FIG. 1). FIG. 2 shows a plot of a specific (and ideal) set of gain transfer functions 210a through 210e for a variable gain amplifier. In an embodiment, each gain transfer functions has fixed gains at low and high control voltages and linear dB gain over intermediate control voltages. As shown in FIG. 2, gain transfer function 210a has a gain of A Vm . n for control voltages below V L0W , A Vmax for control voltages greater than V ffiGH , and {(A Vmax - A Vmin ) / (V fflGH - V LOW )} gain slope for control voltages between V L0W and V HIGH . In a specific embodiment, V LOW is set at one-sixth of full-scale voltage and V mGH is set at five-sixth of full-scale voltage. In actual implementations, gain transfer functions 210a through 210e are more rounded near V HIGH and V LOW . For improved noise and linearity performance, it is sometimes advantageous to be able to displace the gain transfer function vertically by discrete gain amounts. As shown in FIG. 2, the gain transfer functions are similar in shape, but are displaced up or down. FIG. 3 A shows a schematic diagram of a simplified differential amplifier 310 that can be used to provide an approximately exponential (or linear in dB) gain transfer function. Differential amplifier 310 includes a pair of transistors 310a and 310b coupled together at the emitter and to a current source 312. The differential input control voltages V ff and V IN are provided to the bases of transistors 310a and 310b, respectively. The output current I ouτ from the collector of transistor 310b varies with the control voltage and the transfer function of the differential amplifier can be expressed as: where V x = V j p - V m , and V τ is the thermal voltage that can be expressed as: kT V T = — , Eq. (2) 9 where k is the Boltzman constant, T is the temperature (in Kelvin), and q is the electron charge. V τ is a temperature dependent term and can be approximated as V τ = 26 mV at 300° Kelvin. FIG. 3B shows a plot of the logarithm of the transfer function in equation (1). For large positive control voltages (i.e., Y l » V τ ), the denominator in equation (1) approaches 1.0, and the gain of differential amplifier 310 is determined by the numerator and is approximately linear in dB. For large negative control voltages (i.e., V, « -V τ ), the exponential term in the denominator begins to dominate, and the gain of differential amplifier 310 compresses toward a gain of 1.0. Thus, the gain transfer function of the differential amplifier is approximately linear in dB over a limited range of control voltages. FIG. 4 shows a block diagram of an embodiment of a gain control circuit 400 for generating a gain control signal V G that allows for linear (in dB) adjustment of a variable gain amplifier (VGA). Referring to FIG. 1, the transmit signal path can include multiple VGAs. Typically, one gain control circuit is provided to generate a gain control signal for each VGA. Thus, gain control circuit 130 can include multiple gain control circuits 400 (i.e., one for each VGA), or any number of gain control circuits 400 in combination with other types of gain control circuits. Alternatively, the gain control signal can be shared by multiple VGAs. In the specific embodiment shown in FIG. 4, gain control circuit 400 includes a conditioning circuit 410 coupled in series with a linearizer 422. Conditioning circuit 410 receives and conditions an input control signal V CTRL to provide a conditioned control signal V c . The conditioned control signal can have various characteristics, depending on the particular design of conditioning circuit 410. For example, the conditioned control signal can be: (1) limited (i.e., clipped) to within a particular range of values, (2) adjustable upward or downward by a particular offset amount, (3) temperature compensated, (4) scaled (i.e., "normalized") according to the supply voltage, and so on. Linearizer 422 receives the conditioned control signal V c and generates a gain control signal V G that drives the VGA. Within conditioning circuit 410, the input control signal V CTRL is provided to a voltage-to-current (V-to-I) converter 412 that converts the control signal to a control current I CTRL . Similarly, an input trim signal V^^ is provided to a V-to- I converter 414 that converts the trim signal to a trim current I j -,^. The control current I cm is provided to a clipping circuit 416 that clips the current signal, as necessary, to maintain the signal within a particular range of values. The clipped current signal and the trim current 1^,^ are provided to a summer 418 that combines the currents to generate a combined current I SUM that is provided to a current-to-voltage (I-to-V) converter 420. Converter 420 generates the conditioned control signal V c based on the combined current I SUM and provides the conditioned control signal to linearizer 422. Converter 420 also performs temperature compensation for the control signal. Linearizer 422 is responsive to the conditioned control signal V c and generates a gain control signal V G that linearly (in dB) controls the gain of a VGA (not shown in Fig. 4). A reference generator 430 receives the supply voltage V DD , generates a set of bias currents and voltages using a temperature and supply compensated reference source (e.g., a bandgap reference circuit), and provides the bias currents and voltages to the respective circuits. FIG. 4 shows a specific embodiment of conditioning circuit 410. Different designs to provide different sets of signal characteristics can be implemented and are within the scope of the invention. Moreover, the linearizer can be operated without the conditioning circuit. FIG. 5 shows a schematic diagram of a specific embodiment of V-to-I converters 412 and 414, clipping circuit 416, and summer 418. The control signal V cm and the trim signal V^^ are provided to one end of resistors 512 and 514, respectively. The other end of resistors 512 and 514 couple to current sources 516 and 518, respectively. The resistors and current sources function to convert the control and trim voltages to control and trim currents. An amplifier 522 receives a midscale voltage V MID at the non-inverting input terminal. The output of amplifier 522 couples to the gates of N-channel transistors 526 and 528. The source of N-channel transistor 528 couples to the inverting input of amplifier 522 and forms a feedback path. The sources of N- channel transistors 526 and 528 couple to current sources 516 and 518, respectively. The drains of N-channel transistors 526 and 528 couple to the reference paths of current mirror circuits 532 and 534, respectively. Current mirror circuit 532 is formed by P-channel transistor 532a and 532b, and current mirror circuit 534 is formed by P-channel transistors 534a and 534b. In the embodiment shown in FIG. 5, the control signal V CTOL is single- ended and is compared to the midscale voltage V^ p by amplifier 522. The midscale voltage facilitates the generation of a differential signal (or complementary signals) from a single-ended signal. The midscale voltage can be generated by reference generator 430 noted above. For a differential control signal V CTRL (i.e., comprising V CTRL+ and V CTEL= ), one of the control signals can be provided to the non-inverting input of amplifier 522 or, alternatively, a differential input stage can be used. The control current I CTRL in the reference path (i.e., via P-channel transistor 534a) of current mirror circuit 534 is related to the control signal V^^. This control current I CTRL is then clipped, as necessary, by a subsequent clipping circuit. In the embodiment shown in Fig. 5, the clipping circuit comprises current sources 536 and 542 and current mirror circuits 538 and 544. The mirror path (i.e., via P-channel transistor 534b) of current mirror circuit 534 couples in series with current source 536 and in parallel with the reference path of current mirror circuit 538. The mirror path (i.e., via P-channel transistor 538b) of current mirror circuit 538 couples in series with current source 542 and in parallel with the reference path of current mirror circuit 544. The current in the mirror path (i.e., via P-channel transistor 544b) of current mirror circuit 544 is the clipped control current. FIG. 6A shows a schematic diagram of a simplified model of the clipping circuit. In this model, current sources 636, 642, and 650 correspond to current sources 536, 542, and 550 in Fig. 5, and current mirror circuits 638 and 644 correspond to current mirror circuits 538 and 544. The input current x is represented by a current source 634. When the input current x is greater than the current x α of current source 636, P-channel transistor 638a turns off and the current through P-channel transistor 638b is approximately zero. Alternatively, when the input current x is less than the current x 2 , the current through P- channel transistor 638b is y = f(x) = (x t - x), where is a scaling factor that is determined by the ratio of the sizes of P-channel transistors 638a and 638b. Similarly, when the current y is greater than the current y x of current source 642, P-channel transistor 644a turns off and the current through P- channel transistor 644b is approximately zero. Alternatively, when the current y is less than the current y v the current through P-channel transistor 642b is z = g(y) = β(Y ι " y)' where β is another scaling factor that is determined by the ratio of the sizes of P-channel transistors 644a and 644b. The transfer functions can be summarized as follows: Equations (3) and (4) can be combined and expressed as follows g o/ <x Eq(5) FIG. 6B shows a plot of the transfer function defined by equation (6). As noted from equation (5), the transfer function g of is: (1) equal to zero when the input signal x is less than (x x - V j /α), (2) equal to βy x when the input signal x is greater than x v and (3) has a slope of αβ when the input signal x is between the range of (X j - y o and x r The transfer function for the output current z is simply the transfer function g of shifted vertically by the offset provided by current source 650, and is expressed as: z = g of +offset . Eq(6) With four degrees of freedom, the upper current limit 1,^, the lower current limit 1^, the low input threshold current I L0W , and the high input threshold current I mGH can be set to any particular set of values by adjusting the five variables x t , γ v a, β, and offset. The variables x λ and y t correspond to the currents of current sources 636 and 642, respectively, which can be set by proper circuit design. The variables and β can be set by controlling the ratio of the transistor sizes in current mirror circuits 638 and 644, respectively. The offset is added to the current from P-channel transistor 644b, to shift the transfer function vertically. The offset can be fixed or programmable to provide the family of curves shown in Fig. 2. In accordance with an aspect of the invention, a piecewise-linear transfer function can be constructed by concatenating circuits similar to that described above. The five variables of each of the circuits can be adjusted to provide a linear function for a portion of the overall transfer function. Referring back to FIG. 5, the clipped control current (i.e., from P-channel transistor 544b), the trim current I TRIM (i.e., from P-channel transistor 532b), and the offset current I 0FFSET (i.e., from current source 550) are summed together at a summing node 546. The combined current I SUM is provided to the reference path of a current mirror circuit 548 comprised of N-channel transistors 548a, 548b, and 548c. The mirror path through N-channel transistor 548b is coupled to the reference path of a current mirror circuit 552 comprised of P-channel transistors 552a and 552b. The mirror path through N-channel transistor 548c is coupled to a current source 554. The output current signals I A and I B are provided via the mirror paths through transistors 552b and 548c, respectively. The current through P-channel transistor 552b is approximately equal in magnitude to the current through N-channel transistor 548c but differs in polarity (i.e., N-channel transistor 548c provides sinking current and P-channel transistor 552b provide sourcing current). However, the output current signal I B is the difference between the current I FS in current source 554 and the current through N-channel transistor 548c (e.g., I B = I FS - I 548C ). Thus, if I FS is set at fullscale, the current I A through N-channel transistor 548a and the current I B through P-channel transistor 552b are similar in magnitude but out of phase. I A and I B are complementary with an offset to ensure that the current stays greater than zero (i.e., I A > 0 and I B > 0). FIG. 7 shows a schematic diagram of a specific embodiment of I-to-V converter 420. Within converter 420, the current signals I A and I B from the output stage of the summing circuit are provided to the collectors of a differential amplifier 712 comprised of transistors 712a and 712b. The emitters of transistors 712a and 712b couple together and in series with a resistor 714. The collectors of transistors 712a and 712b couple to the bases of transistors 716a and 716b, respectively. The collectors of transistors 716a and 716b couple the supply voltage V DD , and the emitters of transistors 716a and 716b couple to the bases of transistors 712a and 712b, respectively, and further to current sources 718a and 718b, respectively. The outputs from the emitters of transistors 716a and 716b couple to the bases of transistors 722a and 722b, respectively. The collectors of transistors 722a and 722b couple to one end of resistors 724a and 724b, respectively, and comprise the conditioned control signals V cp and V CN , respectively. The other end of resistors 724a and 724b couple to the supply voltage V DD . The emitters of transistors 722a and 722b couple to a current source 728 designed to provide a current of 1^.^ proportional to the ratio of V τ and Rl (i.e., 1^,^ «= V T /R1). Converter 420 generates a differential control voltage V c in response to the input currents I A and I B . The circuit comprising transistors 712a, 712b, 716a, 716b, 722a, and 722b generates a differential output voltage based on a differential input current, and also provides temperature compensation. The circuit comprising transistors 812a and 812b generates a differential output currents that are an exponential function (linear in dB) of the differential input voltage. The transfer function for the I-to-V converter can be expressed as follows: where αV τ is related to the current from current source 728. From equation (7), it can be noted that the differential control voltage V c is temperature compensated. In particular, the control voltage is "predistorted" such that it is dependent on (i.e., scaled by) V τ in an inverse manner as the subsequent linearizer circuit to be described below. The scaling by V τ provides for a gain control mechanism that is, to a degree, temperature invariant. FIG. 8 shows a schematic diagram of a specific embodiment of linearizer 422. Linearizer 422 includes an input differential amplifier 812 coupled to an output differential amplifier 830. Differential amplifier 812 comprises a pair of transistors 812a and 812b coupled at the emitter, and differential amplifier 830 comprises a pair of transistors 830a and 830b coupled at the emitter. Within linearizer 422, the conditioned control signals V cp and V CN from converter 420 are provided to the inputs of differential amplifier 812. The emitters of transistors 812a and 812b couple together and to a current source 814. The collector of transistor 812a couples to the reference path of a current mirror circuit 820 comprised of P-channel transistors 820a and 820b. Similarly, the collector of transistor 812b couples to the reference path of a current mirror circuit 822 comprised of P-channel transistors 822a and 822b. The mirror path (i.e., via P-channel transistor 822b) of current mirror circuit 822 couples to the reference path of a current mirror circuit 824 comprised of N-channel transistors 824a and 824b. The mirror path (i.e., via P- channel transistor 820b) of current mirror circuit 820 couples to the collector of transistor 830a. The mirror path (i.e., via N-channel transistor 824b) of current mirror circuit 824 couples to the emitters of differential amplifier 830. The collector of transistor 830a also couples to the base of transistor 830a. The bases of transistors 830a and 830b provide the gain control signals V GP and V GN , respectively. The input stage of linearizer 422 receives the differential control signal V c and generates a set of current signals I x and I 2 that are exponentially related. The transfer function for the ratio of the currents can be expressed as: = e Vτ X Eq(8) In equation (8), it can be noted that the ratio of the currents (e.g., /l^ is an exponential function (i.e., linear in dB) with respect to the differential control voltage (e.g., V c = V CP - V CN ). It can also be noted that the ratio of the currents is a function of V τ . However, as shown above in equation (7), the differential control voltage V c is generated with temperature compensation such that V c includes a scaling factor of V τ . When V c is applied to equation (8), the V τ term in equations (7) and (8) cancels out and the ratio of the currents (I 2 /I α ) is, to a large extent, temperature invariant (i.e., not dependent on V τ ). The ratio of the currents (I j /I j ) is a function of the control signal V c , which is a conditioned signal based on the input control signal V,--^. As shown in Fig. 8, the current (I 2 ) from one path of input differential amplifier 812 is provided as the current for one path of output differential amplifier 830. The current (I j ) from the other path of input differential amplifier 812 is provided as the emitter current for output differential amplifier 830. Differential amplifier 830 generates a differential gain control voltage V G (V G = V GP - V GN ) based on the exponentially related currents signals I, and I r Fig. 9 shows a schematic diagram of a simplified model of the linearizer and the VGA to be controlled by the linearizer. Input differential amplifier 812 of the linearizer generates currents I. and I 2 that are exponentially related, as shown in equation (8). The output differential amplifier receives the exponentially related currents I x and I 2 and generates a differential gain control voltage V G that is based on, and corresponds to, the exponentially related currents I x and I 2 . The differential gain control voltage V G is provided to the VGA. The VGA includes a differential amplifier 930 comprised of transistors 930a and 930b that receive the differential gain control voltages V GP and V GN , respectively. Differential amplifier 930 generates an output current I ouτ that is linearly related to the input current 1^, but the gain is exponentially related to the control voltage. For improved performance, differential amplifier 930 is matched (as closely as possible) to differential amplifier 830 and current source 924 is matched to current source 824. Matching the differential amplifiers and current sources may be impractical because, for example, it may be desired to minimize the current consumption of the replica differential amplifier in the control circuit, but the current consumption of the VGA being controlled may be set by other performance requirements. In accordance with an aspect of the invention, resistors are used to improve operational matching of the circuits despite their operation at different current densities. Since both differential amplifiers 830 and 930 are controlled by the same differential gain control signal V G , and further because of the matching, the ratio of I our to 1^ is approximately equal to the ratio of the I 2 to I r The transfer function for the VGA can be expressed as: As shown by equation (9), with the linearizer of the invention, a linear (in dB) gain transfer function can be obtained for a differential amplifier in the VGA. It can be noted that differential amplifier 930 in FIG. 9 is similar in configuration to differential amplifier 310 in FIG. 3A. The linear (in dB) gain transfer function is obtained for differential amplifier 930 by "predistorting" the gain control voltage V G using the linearizer. In contrast, as shown by equation (1), an approximately linear (again in dB) gain transfer function is obtained over a limited range of values when the gain control voltage is not "predistorted." FIG. 10 shows a schematic diagram that illustrates some techniques for matching the linearizer output differential amplifier to the differential amplifier of the VGA. The linearizer differential amplifier is typically operated at low current to conserve power. In contrast, the VGA differential amplifier is typically operated at higher current to provide the required signal swing, linearity, and noise performance. For improved performance, the differential amplifiers are physically matched, for example, by designing the transistors with similar sizes and placing the transistors in the same vicinity and with similar orientations. However, some mismatch occurs because of other factors. For example, the VGA devices being controlled are typically operated at high current, and thus their dynamic resistance is small. (The dynamic resistance for a transistor is computed as r e = V τ /I c , where I c is the bias current for the transistor.) However, the parasitic resistance inherent in the construction of the devices does not change with operating current. The replica devices in the control circuit are operated at lower current, and their parasitic resistance is typically less significant compared to the dynamic resistance. Additional resistance can thus be added to the bases and emitters of the replica devices to approximate the effect of the relatively higher parasitic resistance in the devices being controlled. To match the emitter resistance, an external resistor R ex . can be placed between the emitter of the transistor and the current source such that the following is achieved: r pe2 ≡ r pΛ + R e . Eq(10) where r pe is the emitter parasitic resistance. Similarly, - to match the base resistance, an external resistor R b can be placed at the base of the transistor such that the following is achieved: r b2 ≡ r bl + R b . Eq(ll) In an embodiment, a buffer 840 having approximately unit gain is coupled between the collect and base of transistor 830a. Buffer 840 provides biasing for the bases of transistors 830a and 930a. For clarity, the invention has been described with differential amplifiers implemented using bipolar junction transistors (BJTs). The invention can also be implemented with other circuits including FETs, MOSFETs, MESFETs, HBTs, P-HEMTs, and others. As used herein, "transistor" generically refers to any active circuit, and is not limited to a BJT. The linearizer of the invention can be used in combination with various variable gain elements including variable gain amplifiers, attenuators (i.e., diodes), multipliers, and other circuits. Generally, the output stage of the linearizer can be designed to approximately match the gain stage of the variable gain element, and the input stage of the linearizer can be designed to generate exponentially related signals that provide the desired linear (in dB) gain transfer function. The linearizer can be used in a receiver or a transmitter. In fact, the linearizer of the invention can be used in any circuit designed to process an analog signal and including at least one variable gain element. In particular, the linearizer can be advantageously used in a transmitter designed to operate in accordance with one or more variants of IS-95 specifications. Various modifications can be made to the transmitter embodiment shown in FIG. 1. For example, fewer or additional filter, buffer, and amplifier stages can be provided in the transmit signal path. Moreover, the elements within the signal path can be arranged in different configurations. In addition, the variable gain in the transmit signal path can be provided by VGAs (as shown in FIG. 1), variable attenuators, multipliers, other variable gain elements, or a combination of the above. In a specific implementation, the transmit signal path from BB buffer 122 to PA 150 (possibly excluding filter 132) is implemented within one or more integrated circuits, although discrete elements can also be used. In . one specific transmitter embodiment, quadrature modulation is performed on an inphase (I) baseband signal and a quadrature (Q) baseband signal from the digital processor. In this design, a pair of BB buffers and mixers are used to buffer and upconvert the I and Q baseband signals with the inphase and quadrature IF LOs, respectively. The I and Q modulated signals are then combined to generate the IF signal. In another specific transmitter embodiment, quadrature modulation is performed digitally within the digital processor, and the modulated signal is then upconverted to IF or RF using one or more frequency upconversion stages. Transmitter 100 can be used in many communication applications, such as cellular communication systems. Examples of cellular communication systems include Code Division Multiple Access (CDMA) communications systems, Time Division Multiple Access (TDMA) communications systems, and analog FM conununications systems. CDMA systems are typically designed to conform to the "TIA/EIA/IS-95-A Mobile Station-Base Station Compatibility Standard for Dual-Mode Wideband Spread Spectrum Cellular System," hereinafter referred to as the IS-95-A standard. The IS-95-A standard requires the output power from a remote station to be adjustable over a range of 85 dB in specified (e.g., 0.5 dB) increments. Typical remote stations are designed to transmit from between approximately - 50 dBm to +23 dBm. (IS-95-A specifies the minimum and maximum output power levels of the remote stations.) In some transmitter embodiments, the output PA is designed with a fixed gain but variable drive capability. The variable drive can be provided by a PA design having multiple (i.e., parallel) drivers that can be selectively turned off when not required. As shown in FIG. 1, a bias control circuit 160a receives gain control signal 128 and can adjust the bias currents of IF buffer 142, mixer 144, and RF VGA 146 based on the received gain control signal. Similarly, a bias control circuit 160b receives gain control signals 128 and 148 and can adjust the bias current of PA 150 based on the received gain control signals. As shown in FIG. 1, gain control circuit 130 and bias control circuits 160a and 160b are implemented as individual circuits. However, these circuits can also be implemented within a single circuit, or integrated within other circuits such as digital processor 110. The control circuits can also be integrated within the integrated circuit that implements the circuits in the analog signal path. The foregoing description of the preferred embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without the use of the inventive faculty. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein. WE CLAIM:

Claims: CLAIMS 1. A linearizer circuit for providing a control signal for a variable gain element comprising: a first circuit configured to receive an input signal and generate exponentially related signals; and a second circuit coupled to the first circuit, the second circuit configured to receive the exponentially related signals and generate the control signal in response to the received exponentially related signals, wherein the second circuit is approximately matched to a gain circuit within the variable gain element. 2. The linearizer circuit of claim 1, wherein the first circuit comprises a differential amplifier. 3. The linearizer circuit of claim 2, wherein the differential amplifier comprises a pair of transistors, and wherein the exponentially related signals comprises a set of currents conducted via the pair of transistors. 4. The linearizer circuit of claim 1, wherein the second circuit comprises a differential amplifier. 5. The linearizer circuit of claim 4, wherein the differential amplifier comprises a pair of transistors coupled together at a common point, wherein one of the exponentially related signals is provided to one of the transistors and another of the exponentially related signals is provided to the common point. 6. The linearizer circuit of claim 5, wherein a base and a collector of the transistor provided with one of the exponentially related signals are coupled together. 7. The linearizer circuit of claim 6, wherein the second circuit further comprises a buffer coupled between the base and the collector of the transistor provided with one of the exponentially related signals. 8. The linearizer circuit of claim 4, wherein the second circuit further comprises a set of resistors coupled to the differential amplifier to match a resistance characteristic of the differential amplifier to that of the gain circuit within the variable gain element. 9. The linearizer circuit of claim 5, wherein the second circuit further comprises a set of resistors coupled to the bases of the pair of transistors. 10. The linearizer circuit of claim 5, wherein the second circuit further comprises a set of resistors coupled to the emitters of the pair of transistors. 11. The linearizer circuit of claim 1, wherein the input signal is conditioned to be within a range of values defined by an upper limit and a lower limit. 12. The linearizer circuit of claim 1, wherein the input signal is temperature compensated such that a ratio of the exponentially related signals is approximately invariant to temperature variations. 13. The linearizer circuit of claim 1, wherein the input signal is continuously adjustable. 14. The linearizer circuit of claim 13, wherein the input signal is further adjustable in discrete steps. 15. A linearizer circuit for providing a control signal for a variable gain element comprising: a plurality of stages of circuits, each stage including a first circuit configured to receive an input control signal or an output signal from a preceding stage and to generate exponentially related signals, and a second circuit coupled to the first circuit, the second circuit configured to receive the exponentially related signals and generate the output signal in response to the received exponentially related signals, wherein the second circuit is approximately matched to a gain circuit within the variable gain element, and wherein each stage is configured to provide a linear transfer function for a portion of an overall transfer function. 16. A gain control circuit for providing a gain control signal for a variable gain element comprising: a conditioning circuit configured to receive and condition an input control signal to generate a conditioned control signal; and a linearizer circuit coupled to the conditioning circuit, the linearizer circuit configured to receive and process the conditioned control signal to generate the gain control signal, wherein the gain control signal, over a particular range of values, provides an approximately linear, in dB, gain transfer function in the variable gain element. 17. The gain control circuit of claim 16, wherein the linearizer circuit comprises: a first differential amplifier configured to receive the conditioned control signal and generate a set of exponentially related signals; and a second differential amplifier coupled to the first differential amplifier, the second differential amplifier configured to receive the exponentially related signals and generate the gain control signal. 18. The gain control circuit of claim 16, wherein the conditioning circuit comprises: a clipping circuit configured to receive the input control signal and provide a clipped control signal, wherein the clipped control signal is limited to a range of values defined by an upper limit and a lower limit. 19. The gain control circuit of claim 16, wherein the conditioning circuit comprises: a temperature compensation circuit configured to receive the input control signal and provide a temperature compensated signal such that the gain transfer function in the variable gain element is approximately invariant to temperature variations. 20. The gain control circuit of claim 16, wherein the conditioning circuit comprises: a summing circuit configured to receive a trim signal and the input control signal, the summing circuit combining the signals to generate the conditioned control signal. 21. A circuit for processing an analog signal comprising: at least one variable gain element coupled in series and operative to receive the analog signal, each variable gain element providing a particular gain for the analog signal based on a respective gain control signal; at least one gain control circuit coupled to the at least one variable gain element, one or more of the at least one gain control circuit including a linearizer circuit configured to receive and process an input control signal to generate the gain control signal, wherein the gain control signal, over a particular range of values, provides an approximately linear, in dB, gain transfer function in the variable gain element operative to receive the gain control signal. 22. The circuit of claim 21, wherein one or more of the at least one variable gain element is a variable gain amplifier. 23. The circuit of claim 21, wherein the gain control circuit further includes a clipping circuit configured to receive the input control signal and generate a clipped control signal, and wherein the linearizer circuit is configured to receive and process the clipped control signal, and wherein the gain transfer function includes an upper gain when the input control signal exceed a high threshold value and a lower gain when the input control signal falls below a low threshold value. 24. The circuit of claim 21, wherein the gain control circuit further includes a summing circuit configured to receive the input control signal and a trim signal, the summing circuit combining the signals to generate a combined control signal, and wherein the linearizer circuit is configured to receive and process the combined control signal, and wherein the gain transfer function is adjustable in a vertical direction based on a value of the trim signal. 25. The circuit of claim 21, wherein the gain control circuit further includes a temperature compensation circuit configured to receive the input control signal and provide a temperature compensated signal, and wherein the linearizer circuit is configured to receive and process the temperature compensated signal, and wherein the gain transfer function is approximately invariant to temperature variations. 26. A transmitter comprising the processing circuit of claim 21. 27. A receiver comprising the processing circuit of claim 21. 28. A transmitter in a cellular telephone comprising: at least one variable gain element coupled in series and operative to receive an analog signal, each variable gain element providing a particular gain for the analog signal based on a respective gain control signal; at least one gain control circuit coupled to the at least one variable gain element, one or more of the at least one gain control circuit including a clipping circuit configured to receive an input control signal and generate a clipped control signal, a summing circuit configured to receive the clipped control signal and a trim signal, the summing circuit combining the signals to generate a combined control signal, and a linearizer circuit configured to receive and process the combined control signal to generate the gain control signal, wherein the gain control signal, over a particular range of values, provides an approximately linear, in dB, gain transfer function in the variable gain element operative to receive the gain control signal.

Inventors: SAHOTA GURKANWAL S, WALKER BRETT C, ZEISEL ERIC, SAHOTA, GURKANWAL, S., WALKER, BRETT, C., ZEISEL, ERIC
Applicants: QUALCOMM INC, QUALCOMM INCORPORATED
Application year: 2001
Main classification: H03G7
IPC codes: H03G3, H03G7