BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to transmit power control in cell phones and the like. 
     2. Prior Art 
     Power amplifiers for cell phones work over a wide range of power levels when broadcasting information. The power level is dictated by the base station, and depends on numerous factors. RF couplers and sensors, or sensor/detectors, are used in the feedback loop of RF power amplifiers for gain control. The transfer characteristic of the detector typically used, Vout vs. Pout, where Vout is the output of the sensor and Pout is the output power of the power amplifier, is approximately exponential. However it is highly desirable for the sensor/detector combination to have a linear transfer characteristic over the dynamic range of the power amplifier for the most accurate control of the power amplifier. In the prior art, a single coupler element was used. However, because of the non-linear characteristics of the detector within the dynamic range of interest, compensation electronics was heretofore required to adequately linearize the detector&#39;s response. 
     BRIEF SUMMARY OF THE INVENTION 
     Methods and apparatus for providing gain control feedback in rf amplifiers in such transmitting devices as cell phones are disclosed. In a cell phone application, the transmit level is set by the base station. In the cell phone, the transmit level command received from the base station is used to select the coupler sensing the output power of the power amplifier in the cell phone, as well as to set the power amplifier gain. This allows the selection of one coupler from multiple couplers to achieve the desired coupler/detector output sensitivity and linearity for any part of the power amplifier output power range. The choice of coupler may be made using the signal from the base station setting the output power of the amplifier, so that no new information is needed for the choice. Use of the invention can avoid the requirement of costly compensatory electronics that may be required to obtain the required linearity of a single coupler/detector across the power amplifier operating range. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         FIG. 1  is a block diagram of a preferred embodiment of the present invention. 
         FIG. 2  is a graph illustrating a typical detector output curve. 
         FIG. 3  is an illustration of blending of coupler outputs by combining the coupler outputs in RF before detection. 
         FIG. 4  is an illustration of blending of coupler outputs by combining coupler outputs after detection. 
         FIG. 5  is an illustration of an alternative coupling network design having successive coupling of the RF signal by cascaded couplers. 
         FIG. 6  is an illustration of an alternative coupling network design having successive coupling of the detector signals by cascaded detectors. 
     
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
       FIG. 1  is a block diagram of an exemplary embodiment of the present invention, namely a power amplifier and burst profile control system as may be used in cell phones. As shown therein, the power amplifier  20  receives the input signal P IN  and provides an output signal P OUT  (the transmit signal) of appropriate power for driving the cell phone broadcast antenna. In this particular embodiment, four couplers  22 ,  24 ,  26  and  28  each provide a measure of the output power of the amplifier  20 , with a multiplexer selecting one of the four coupler outputs under control of the microcontroller  30  for feedback through the detector  32  and control signal generating block  34  to control the gain of the power amplifier  20 . 
     The four couplers  22 ,  24 ,  26  and  28  each provide a different measure of the output power of the amplifier  20 , with each being designed with its own operating range of best linearity. By choosing these operating ranges of best linearity to be adjacent to each other, the desired coupler output linearity may be achieved anywhere over the full power amplifier output range without special compensation electronics by merely selecting, through the microcontroller, which of the four couplers to use for the output power commanded by the base station. In that regard, the same power selection signal from the base station used to determine the power amplifier output also determines the choice of coupler to use for that power setting. 
     The coupler/detector feedback loop of  FIG. 1  stabilizes the performance of the power amplifier over variable conditions which cause power amplifier performance to drift. Such. variables include changes in power amplifier characteristics as a function of time and/or temperature. Also, the burst profile for TDMA is controlled via the control signal generating block (CSGB) and the shape control signal VC as is well known in the art. 
     The signal or power level to the detector is a function of the output power level of the power amplifier and the lossiness of the coupler itself. It is desirable to stay on the high gain portion of the detector output curve as shown in  FIG. 2 , though this is normally difficult, as the power amplifier power level changes according to the requirements set by the base station which in turn requires large changes in the power amplifier operating point. Therefore, this embodiment uses a less lossy coupler when the power amplifier is operating at low power to maintain a sufficient coupler signal to keep the input range to the detector in the high gain regime of the detector transfer function. Conversely, a more lossy coupler is used in conjunction with high power amplifier output operation to prevent saturation of the feedback electronics. In the case of  FIG. 1 , two address lines from the system microcontroller are used to select 1 of 4 couplers via the multiplexer to the detector, with the address bits being generated from the base station power requirement control signal. 
     Typically, there are a few decibels power difference between consecutive power control levels in a wireless communications standard. The detector output for these consecutive power levels should be easily distinguishable for such consecutive power control levels. The detector output is either processed with analog circuitry or digitized by an analog to digital converter (ADC) to be processed digitally. The processing is done in the Control Signal Generating Block (CSGB). Sufficient resolution is necessary between detector output levels so that the system output power level is controllable with the required precision. In the case where the processing is done using analog circuitry, the noise level on the detector output signal should be smaller than the voltage difference between consecutive levels. When the processing is done digitally, the same condition applies. However, there is also the desensitizing factor of integral nonlinearity and differential nonlinearity imperfections of the ADC. Typically, it is desirable to have at least 2-3 least significant bits between consecutive power control levels over the dynamic range of the detector. 
     When the present invention is used in a wireless communications system, multiple consecutive output power levels are grouped to be controlled with a single coupler. In order to verify that this set of power control levels can be controlled with the given coupling loss, the following procedure can be utilized: First, for the given set of power control levels, the smallest set of power levels at which the power amplifier output should be controlled is determined. Note that these are not necessarily the smallest power control values. There can be smaller values at which the power amplifier output should be controlled during ramp up or ramp down. For this smallest power set, if there is enough resolution between detector output values for the closest power values, then the coupling loss is appropriate for the given set of power levels. Otherwise, a smaller coupling loss should be used for the smaller power control values. For the highest power control levels, the coupling loss of the selected coupler should be such that the highest power coupled to the detector is still within the dynamic range of the detector. 
     As an exemplary alternate embodiment, coupler outputs may be blended, such as by summing. This increases the total dynamic range of useful coupling ratios, and provides better resolution in terms of coupling ratios available. This also minimizes the necessary number of couplers to attain the higher dynamic range and high precision coupling. The concept is illustrated in the embodiments of  FIGS. 3 , and  4 . The coupling losses are typically chosen such that the desired precision and dynamic range is obtained. For example, in  FIGS. 3 and 4 , the coupling ratios can be chosen to be _, — /2,  — /4,  — /8,  — /16, . . . ,  — /2 N . This gives a precision of  — 2 N  and dynamic range 2_ for the coupling network. In these Figures, any one, all or any combination of gates may be turned on responsive to the selection control. 
     In these Figures, the outputs of the adder can be added in RF (FIG.  3 ), or at baseband after detection (FIG.  4 ). An alternative coupling network design includes the successive coupling of the RF signal by cascaded couplers as shown in  FIGS. 5 and 6 . This provides the benefits of high dynamic range and precision. However, the secondary couplers do not necessarily operate at high power. Detection may be done before ( FIG. 5 ) or after ( FIG. 6 ) detection, as in  FIGS. 3 and 4 , respectively. While only two couplers are shown to be cascaded in  FIGS. 5 and 6 , the successive coupling approach can be generalized to have any multiple number of cascaded couplers. Also the selectors may be multiplexers, or may be capable of selecting none, all or any combination of inputs provided thereto, as desired. 
     As previously described, the preferred embodiment uses the base station power control signals to also select the proper coupler sensor or combinations thereof for use in the feedback loop of the power amplifier. In the various embodiments disclosed, a detector output is provided as a feedback signal, the detector output being provided by the detection of a signal from a selected coupler, from selected couplers or from combinations of signals from multiple detectors. As a result, the detector feedback loop electronics are greatly simplified since they work over a smaller, more linear range of detector feedback signals. 
     While the present invention has been disclosed and described with respect to an exemplary embodiment thereof, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.
Methods and apparatus for providing gain control feedback in rf amplifiers in such transmitting devices as cell phones. In a cell phone application, the transmit level is set by the base station. In the cell phone, the transmit level received from the base station is used to select the coupler sensing the output power of the power amplifier in the cell phone, as well as to set the power amplifier gain. This allows the selection of couplers from multiple couplers to achieve the desired coupler output sensitivity and linearity for any part of the power amplifier output power range.