METHOD AND ARRANGEMENT RELATING TO ELECTRONIC COMPENSATION

Abstract: The invention addresses the problem of obtaining ways and means for providing a compensational gain, which can be used for gain compensation in connection with power amplifiers (1) and other devices. According to the invention a power splitter (11) splits a signal into two components. A phase shifter (15) introduces a frequency dependent phase shift in one the components. Means (17, 19) are provided for introducing a change of amplitude in one of the components. A combiner (13) combines the components. By selecting appropriately the frequency dependent phase and the change of amplitutde, a desired gain compensation characteristic is achieved.

Description: METHOD AND ARRANGEMENT RELATING TO ELECTRONIC COMPENSATION TECHNICAL FIELD OF THE INVENTION The present invention pertains to the field of methods and arrangements relating to electronic compensation, and more particularly to the part of this field concerning gain compensation. BACKGROUND AND RELATED ART It is common in the art with devices that receive an input power and in response to the received input power transmit an output power. The ratio between the output power and the input power is normally referred to as (power) gain. The gain is often frequency dependent. This may be desirable in some instances but in most cases undesirable. A power amplifier is a device which is used for amplifying a signal power. The power amplifier is used in many technical applications, e.g. broadcast radio and TV, wireless communications (such as cellular telephony) , cable TV, hi-fi audio equipment et cetera. For the power amplifier, the frequency dependence of the gain is often an important feature to consider. The construction of the power amplifier is often based on transistor technology, and the bipolar transistor is probably the most frequently used transistor element in power amplifiers. However, vacuum tubes, once considered obsolete, are still used today for some applications. The power amplifier can be built with discrete components or with components arranged on an integrated circuit. The power amplifier is normally designed to provide power amplification for signals in a predetermined operating frequency range. However, it is difficult to obtain a uniform (constant) gain over the whole of the operating range, especially for broadband ranges. Normally, the gain of the power amplifier decreases with increasing frequency. The frequency dependence of the gain of the power amplifier is troublesome in many technical applications. One such application is the so-called feed forward amplifying circuit. The feed forward amplifying circuit includes a main power amplifier, which operates in a non-linear mode. The feed forward amplifying circuit further includes a feed forward loop. The feed forward loop includes means for generating an indication signal which is indicative of distortion products due to the non-linearity of the main amplifier. The feed forward loop further includes an (linear) error amplifier which generates an error signal by amplifying the indication signal. The error amplifier is set so that the error signal corresponds as closely as possible to the distortion products generated in the main amplifier. The error signal is subtracted from an output signal from the main amplifier, thereby suppressing the distortion products. However, if the suppression of the distortion products is to be efficient, the gains of the main and error amplifier must not vary with frequency to any considerable extent. Another application, where the frequency dependence of the gain is troublesome, is cable TV transmissions, where the effect of lower gain at higher frequencies may lead to a loss of picture detail and colour saturation. Naturally, the power amplifier is not the only device for which the frequency dependence of the gain can be troublesome. The frequency dependency is also troublesome, for example, for couplers, transmission cables, stiplines, microstrips, mixers and radio frequency equipment in general. US Pat. No. 5656973 discloses an amplifying circuit, which includes an MMIC (Monolithic Microwave Integrated Circuit) power amplifier in combination with a compensation circuit. The compensation circuit is designed to have a frequency response which counteracts a frequency dependence of gain of the power amplifier. The compensation circuit is a resonant band-pass filter including a resistor, an inductor and a capacitor. This compensation circuit, however, has some drawbacks. The gain compensation associated with the compensation circuit cannot be easily tuned. A big "spread" in the actual compensation can be expected due to variations in component values. Furthermore, the compensation circuit is not suitable for providing minor corrections (±0.1 dB or so). US 5280346 discloses an equalising amplifying circuit, which is used for compensating for frequency dependent losses in a television cable. The circuit includes an equalising network and a variable amplifier for generating a correction signal, which compensates for the frequency dependence of the cable. In order to make the circuit more useful for different lengths of cable, the circuit includes a positive feedback loop having an attenuator. Because of the positive feedback, the circuit can be used with different lengths of cable . by appropriately controlling the variable amplifier. The circuit is, however, rather complicated and expensive. Another drawback is that the circuit can only be used for lower frequencies (base band) and not for higher frequencies (radio frequency) . SUMMARY OF THE INVENTION The present invention addresses mainly the problem of obtaining ways and means for providing frequency dependent gain compensation which is relatively simple and cheap and which can easily be adopted to varying conditions, such as different operating frequency ranges and different needs regarding amounts of gain compensation. The above-stated problem is solved with method in which a signal is split into two components. One of the components is provided with a frequency dependent phase shift. One of the components is provided with a change of amplitude. After the providing of the phase shift and the change of amplitude, the components are combined. The method provides a compensational gain, which is determined mainly by the frequency dependent phase shift and the change of amplitude. By properly selecting the frequency dependent phase shift and the change of amplitude, the compensational gain is easily adopted to various conditions, such as different operating frequency ranges and the different amounts of gain compensation needed. The invention includes also the use of the above method for providing a compensational gain to any device having a gain with an unwanted frequency dependence. The invention further includes a method for power amplification using a power amplifier having a non-flat gain, whereby the above method is used for providing a compensational gain, which compensates for the non-flat gain of the power amplifier. The above-stated problem is solved also with a compensation circuit. The compensation circuit comprises means for splitting a signal into two components. The compensation circuit comprises means for providing a frequency dependent phase shift into one of the components. The compensation circuit comprises means for providing one of the components with a change of amplitude. The compensation circuit comprises means for combining the components . The compensational gain of the compensation circuit is determined mainly by the frequency dependent phase shift and the change of amplitude. By properly selecting the phase shift and the change of amplitude provided in the compensation circuit, the compensational gain is easily adopted to various conditions, such as different operating frequency ranges and different amounts of gain compensation needed. The invention includes also the use of the above compensation circuit for providing compensational gain to any device having a gain with an unwanted frequency dependence. The invention includes also a power amplifying circuit with a power amplifier with having a non-flat gain, the above compensation circuit being included for providing a compensational gain, which compensates for the non-flat gain of the power amplifier. A main object of the invention is thus to provide frequency dependent gain compensation, and the invention includes methods as well as devices where this object is achieved. The invention has several advantages. With the invention, the frequency dependent compensational gain is provided easily and at relatively low cost. The compensational gain is easily provided for varying conditions, such as different operating frequency ranges and different amounts of gain compensation needed. The compensational gain can be provided for higher (radio frequency) frequency ranges. In particular, the compensational gain is advantageously provided for frequency ranges lying above 1 GHz . The invention will now be described further using preferred embodiments and referring to the drawings . BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a simple block diagram of a power amplifier. Figure 2 is a diagram illustrating real and ideal gain of the power amplifier. Figure 3 is a simple block diagram of a power amplifying circuit including a power amplifier and a compensation circuit according to the invention. Figure 4 is diagrammatic illustration of gain compensation according to the invention. Figure 5 is a block diagram of a first embodiment of a compensation circuit according to the invention. Figure 6 is a block diagram of second embodiment of a compensation circuit according to the invention. Figure 7 is a vector diagram. Figure 8 is a diagram with curves illustrating a gain of the compensation circuit in figure 5 as a function of a phase shift. Figure 9 is a diagram with a graph illustrating a frequency dependent phase shift introduced by a time delay. Figure 10 is a diagram with curves illustrating a gain of the compensation circuit in figure 5 as function of frequency. Figure 11 is a diagram with curves illustrating, by way of example, the gain of the compensation circuit in figure 5 for specific parameter selections. Figure 12 is a diagram with curves illustrating, by way of example, the gain of the compensation circuit in figure 5 for specific parameter selections. Figure 13 is a third embodiment of a compensation circuit according to the present invention. Figure 14 is a diagram with curves illustrating a gain of the compensation circuit in figure 13 as a function a phase shift. Figure 15 is a fourth embodiment of a compensation circuit according to the present invention. Figure 16 is flow chart illustrating a method of gain compensation according to the present invention. PREFERRED EMBODIMENTS Figure 1 is a simple block diagram of a power amplifier 1. The power amplifier 1 may be a transistor power amplifier, for example based on bipolar, LDMOS or GaAs transistors. The power amplifier 1 is arranged for receiving an input power P in via an input terminal and for delivering an output power P out at an output terminal. The power amplifier is designed for providing power amplification for signals in a predetermined operating frequency range [fl,f2] . In figure 2 is shown a diagram with a curve Ll which, schematically, illustrates how a gain G a of the power amplifier 1 varies with frequency f within the operating frequency range. The gain G a decreases with increasing frequency. Consequently, the curve Ll has a negative slope. As mentioned earlier, this is often undesirable. And it is instead desirable to have a gain which is independent of frequency, at least within the operating frequency range of the power amplifier 1. A curve L2 (dashed) in figure 2 illustrates this ideal situation. Since there is no dependency on frequency, the curve L2 is completely flat. Figures 3 and 4 illustrate the principle according to which the present invention provides a power amplification which is essentially frequency independent. Figure 3 is a block diagram of an amplifying circuit according to the invention. The circuit in figure 3 includes a power amplifier 1 and a compensation circuit 2, which is arranged in series with the power amplifier 1. In figure 3, the compensation circuit 2 is arranged before the power amplifier 1 but, alternatively, the compensation circuit 2 is instead arranged after the power amplifier 1. However, the efficiency of the power amplifying circuit is higher with the compensation circuit 2 being arranged before the power amplifier 1. The compensation circuit 2 has an associated gain G c . The gain G c of the compensation circuit 2 has a frequency dependence which is adopted to compensate for a frequency dependence in a gain G a of the power amplifier 1. This is illustrated in figure 4. A first diagram in figure 4 shows the gain versus frequency dependency of the power amplifier 1. The gain G a of the power amplifier 1 decreases with increasing frequency, resulting in a gain curve with a negative slope. A second diagram in figure 4 shows the gain versus frequency dependency of the compensation circuit 2. The gain G c of the compensation circuit 2 increases with increasing frequency in a manner which compensates for decreasing gain of the power amplifier 1. Consequently, the gain curve of the compensation circuit 2 has a positive slope which counteracts the negative slope of the gain curve of the power amplifier 1. A third diagram in figure 4 shows a frequency dependency of a total gain G of the power amplifying circuit in figure 3. The total gain G τ is the combined gains of the power amplifier 1 and the compensation circuit 2. The total gain G τ is essentially independent of frequency, due to the fact that the compensation circuit 2 compensates for the frequency dependent (non-flat) gain G a of the power amplifier 1. Figure 5 is a block diagram of a first embodiment of the compensation circuit 2 according to the present invention. The compensation circuit 2 in figure 5 comprises a power splitter 11 which includes an input for receiving a signal, i.e. a time varying power. In the particular example of figure 5, the received signal is harmonically oscillating according to sin(2πft) - for the sake of simplicity, an amplitude of the input signal is set to unity. The power splitter 11 is arranged for splitting the input signal into two components equal to (1 / 2) • sin(2πft). The compensation circuit 2 of figure 5 further comprises a combiner 13. A first output of the power splitter 11 is connected to a first input of the combiner 13 via a first signal branch. The combiner 13 receives via its first input one of the components (1 / 2) • sin(2πft) from the power splitter 11. A second input of the combiner 13 is connected to a second output of the power splitter 11 via a second signal branch. The second signal branch includes a phase shifter 15 and a variable attenuator 17, which are connected in series. The phase shifter 15 is arranged to produce a frequency dependent phase shift φ(f) . The attenuator 17 is used to produce a change of amplitude which is essentially independent of frequency, at least in the operating frequency range of the power amplifier. The phase shifter 15 and the attenuator 13 introduce a phase shift and a change of amplitude in the remaining component (1 / 2) • sin(2πft), which consequently is changed to (A / 2) • sin(2πft + (p(f) ) . Here A denotes an attenuation value in the range [0,1]. An attenuation value A of 0 corresponds to complete signal attenuation and an attenuation value A of 1 corresponds to zero signal attenuation. The combiner 13 receives the component (A / 2) • sin (2πft + φ(f) ) via the second input. The combiner 13 is arranged for generating a combined signal ( (1 / 2) • sin (2πft) + (A / 2) • sin (2πft + φ(f) ) ) by combining (adding) the components (1 / 2) • sin(2πft) and (A / 2) • sin(2πft + φ(f) ) received via the inputs. The combiner 13 is arranged for transmitting the combined signal via an output. Figure 7 is a vector diagram visualising the signal processing of the compensation circuit 2 in figure 5. A first vector vl represents the component (1 / 2) ■ sin(2πft) received via the first input of the combiner 13. A second vector v2 represents the component (A / 2) • sin(2πft + φ(f) ) received via the second input of the combiner 13. The second vector v2 has an amplitude which is A times the amplitude of the first vector vl . An angle between the first vector vl and the second vector v2 corresponds to the phase shift φ(f) introduced by the phase shifter 15. A vector sum of the first and the second vector vl and v2 is shown as a third vector v3 in figure 7. The third vector v3 represent the combined signal (1 / 2) • sin(2πft) + (A / 2) • sin(2πft + φ(f) ) . Using the geometry of the vector diagram in figure 7, it can be shown that the gain G c of the compensation circuit 2 in figure 5, as seen between the input of the power splitter 11 and the output of the combiner 13, can be written as G c = - l + A 2 + 2A cos (φ(f) ) . eq. (1) Figure 8 is a diagram with curves illustrating the gain G c as a function of the phase shift φ . Figure 8 includes gain curves for values of φ in the range [-π,π] . There are three curves for different selections of the attenuation value A (A=0, A=l/2 and A=l) . From figure 8 and equation (1) , it follows that the gain G c is an even function of the phase shift φ and has a period of 2π. The influence of the attenuation value A can be seen from figure 8. The gain curves become more flat, the smaller the attenuation value A - for A=0, the corresponding gain curve is completely flat. Figure 6 is block diagram of a second embodiment of the compensation circuit 2 according to the present invention. The embodiment in figure 6 differs from the one in figure 5 only in that the attenuator 17 is arranged in the first signal branch instead. However, equation (1) is valid also for the embodiment in figure 6. Since the phase shift φ (f) introduced by the phase shifter 15 is dependent on frequency, the gain G c of the compensation circuits 2 in figures 5 and 6 will depend on frequency as well. There are many ways to arrange the phase shifter 15 so that an appropriate frequency dependent phase shift φ (f) is obtained. A simple and useful way is to arrange the phase shifter 15 to introduce a time delay t^. For example, the phase shifter 15 may include a delay line. With a delay line having an effective length L, the corresponding time delay is L/c, where c denotes a signal propagation speed. As is well understood by the skilled person, the time delay t d is equivalent to a phase shift φ(f) which varies linearly with frequency according to φ (f) = -2πt d f. This relationship between the phase shift φ (f) and frequency f is illustrated with a diagram in figure 9, where the phase shift is given by its principal value, i.e. an equivalent value in the range ]-π,π] . A corresponding relationship between the gain G c and frequency f is illustrated with a diagram in figure 10. In the diagram of figure 10, the dependence on frequency f of the gain G c is shown for three selections of the attenuation value A (once again A=0, A=l/2 and A=l) . The gain curves in figure 10 are periodic, and a period of the gain G c depends on the time delay ta- As is indicated in figure 9, the phase shift φ changes from π to -π with a change of frequency equal to 1/ta. The period of the gain curves in figure 10 is thus 1/ta. The time delay ta is selected having regard to the predetermined operating frequency range of the power amplifier 1. The time delay ta is preferably selected so that the operating frequency range falls within a frequency range where the gain curves have positive slopes - provided of course that the gain G a of the power amplifier 1 decreases with increasing frequency. One approach is to first calculate a centre frequency f c of the operating frequency range [fl,f2] (f c = (f1+f2 ) /2) . The time delay ta is then selected so that the centre frequency f c is placed in a middle position of a positive slope of the gain curves. To do this for the embodiments in figures 5 and 6, the time delay t d should be selected so that the phase shift φ(f c ), which corresponds to the centre frequency f c , has a principal value of π/2, i.e. φ(f c ) = π/2 - n2π (n=l, 2 , 3, ...) . Possible values for the time delay ta, according to this approach, are given by t d = n ~ 1 / 4 eq. (2) fc The attenuation value A is preferably selected so that the compensation circuit 2 compensates as well as possible for the frequency dependence of the gain G a of the power amplifier 1. The selection of the attenuation value A may be done by calculation and/or experimentation. For example, let the operating frequency range be from 1950 MHz to 2350 MHz. The centre frequency f c is 2150 MHz. With n=l, the time delay t d is 0.35 ns . With a propagation speed c close to the speed of light, this time delay t d corresponds to a delay line having an effective length L of about 0.1 m. The phase shift φ(f c ) at the centre frequency f c is -1.5π. Gain curves corresponding to this selection of the time delay are shown in a diagram of figure 11. In figure 11 there are three gain curves, corresponding to three selections of the attenuation value A (A=0, A=0.25 and A=0.5). The attenuation value A determines the slopes of the curves . If stronger gain compensation (increased slope) is desired, two or more compensation circuits 2 can be used in combination. Alternatively, a higher value of n can be selected. For n=2 , the time delay ta is 0.81 ns, corresponding to a delay line having an effective length of about 0.24 m. In figure 12 there are three gain curves for this selection of the time delay t . The gain curves in figure 12 correspond to three different selections of the attenuation value A (A=0, A=0.25 and A=0.5) . Figure 13 is a block diagram of a third embodiment of the compensation circuit 2 according to the present invention. In the embodiments in the figures 5 and 6, a change in signal amplitude was obtained with the attenuator 17. In the embodiment of figure 13, signal reflection is used instead to obtain a change in signal amplitude. The compensation circuit 2 in figure 13 comprises a power splitter 11 which includes an input for receiving a signal. In the particular example of figure 13, the received signal is harmonically oscillating according to sin(2πft) - for the sake of simplicity, an amplitude of the input signal is set to unity. The power splitter 11 is arranged for splitting the input signal into two components equal to (1 / 2) ■ sin (2πft) . The compensation circuit 2 of figure 13 further comprises a combiner 13, and a first output of the power splitter 11 is connected to a first input of the combiner 13 via a first signal branch. The combiner 13 receives, via its first input, a first of the components (1 / 2) • sin(2πft) from the power splitter 11. The compensation circuit 2 in figure 13 includes also a second signal branch connecting the power splitter 11 and the combiner 13. The second signal branch includes a circulator 21 having three ports. The circulator 21 has the property that a signal received at a first port of the circulator 21 is transferred to a second port of the circulator 21 and a signal received at the second port is transferred to a third port of the circulator 21, and so on. A second output of the power splitter 11 is connected to the first port of the circulator 21. The second port of the circulator 21 is connected to a phase shifter 15 providing a frequency dependent phase shift φ(f) . The phase shifter 15 can, for example, include a delay line having an associated time delay t . The phase shifter 15 is also connected to a signal reflector 19. The signal reflector 19 has an associated reflection coefficient R in the range [-1,1]. In principle, the signal reflector 19 can be any arrangement having an impedance Z. If a signal line, leading up to the signal reflector 19, has a characteristic impedance Zo, the reflection coefficient R is equal to (Z-Z 0 ) / (Z+Z 0 ) . In radio applications the characteristic impedance Z 0 is often set to 50 Ω. The circulator 21 receives, via its first port, the remaining, second, component (1 / 2) • sin(2πft) from the power splitter 11. The second component is then transferred to the second port of the circulator 21 and passes the phase shifter 15 a first time. After passing the phase shifter 15, the second component is reflected by the signal reflector 19, the second component thereby passing the phase shifter 15 a second time. After passing the phase shifter 15 a second time, the second component is received at the second port of the circulator 21 and transferred to the third port of the circulator 21. The third port of the circulator 21 is connected to a second input of the combiner 13 , and the combiner 13 thus receives the second component via its second input . The signal reflector 19 and the phase shifter 15 influence the amplitude and the phase of the second component, and the second component, when received by the combiner 13, is therefore equal to (R / 2) ■ sin (2πft + 2φ(f) ) . The combiner 13 is arranged for generating a combined signal ( (1 / 2) • sin (2πft) + (R / 2) • sin(2πft + 2φ(f) )) by combining (adding) the components (1 / 2) • sin (2πft) and (R / 2) • sin (2πft + 2φ(f) ) received via the inputs. The combiner 13 is arranged for transmitting the combined signal via an output. Equation (1) can be used to calculate the gain G c of the compensation circuit in figure 13 by substituting the attenuation value A for the reflection coefficient R and by substituting φ(f) for 2φ(f). Figure 14 is a diagram illustrating the gain G c of the compensation circuit 2 in figure 13 as function of 2φ for five different selections of the reflection coefficient (R - 0, R = ±0.5 and R = ±1) . For positive values of the reflection coefficient R, the gain curves in figure 14 are similar to the gain curves in figure 8. For negative values of the reflection coefficient R, the gain curves are at their minimum for 2φ = 0 and at their maximum for 2φ = ±π, which is opposite to the behaviour of the gain curves for positive values of the reflection coefficient R. The approach set out above for selecting appropriate parameter values (A and ta) for the compensation circuits 2 in figures 5 and 6 can be used, mutatis mutandis, for selecting appropriate parameter values (R and ta) for the compensation circuit 2 in figure 13. In the embodiment in figure 13, the circulator 21 and the signal reflector 19 are arranged so that the phase shifter 15 is passed twice. Naturally, this is not necessary, and the circulator 21 and the signal reflector 19 are alternatively arranged so that the phase shifter 15 is passed only once. For example, the circulator 15 and the signal reflector 19 can be arranged in the first signal branch instead or be arranged in the second signal branch but after or before the phase shifter 15. In the embodiments of figures 5, 6 and 13, the power splitter 11 is arranged for splitting the input signal into two components of equal power. This will provide a maximal tuning range for the gain G c , which is beneficial in many instances. However, the invention is not limited to splitting the signal into components of equal power. Let Pi and p 2 represent amplitudes of the components relative to the amplitude of the received signal. Using a similar vector diagram as in figure 7 it can be shown that the gain G c of the compensation circuit 2 in this situation is given by Here X(f) is equal to φ(f) for the embodiments in figures 5 and 6 and equal to 2φ(f) for the embodiment in figure 13. Figure 15 is a block diagram of fourth embodiment of the compensation circuit 2 according to the present invention. The construction of the fourth embodiment is somewhat different from the embodiments in figures 5, 6 and 13. But nevertheless, the fourth embodiment operates according similar principles as the earlier embodiments. The embodiment in figure 15 is based on a 3 dB hybrid circuit 31, which includes four ports 33, 35, 37 and 39. The first port 31 is connected to an input terminal, which receives a signal . In the particular example of figure 15 , the received signal is harmonically oscillating according to sin(2πft) - for the sake of simplicity, an amplitude of the input signal is set to unity. The third port 37 is connected to a first pin diode 43a via a phase shifter in the form of a first delay line 41a. The fourth port 39 is, in a similar manner, connected to a second pin diode 43b via a phase shifter in the form of a second delay line 41b. The pin diodes 43a and 43b, which in turn are connected to ground, serve as signal reflectors. The pin diodes 43a and 43b behave as variable resistors, and resistance values associated with the pin diodes 43a and 43b determine the reflections produced by the pin diodes 43a and 43b. A resistance value of 0 Ω corresponds to a reflection coefficient R of -1 (full reflection with 180° phase shift) . If the characteristic impedance Z 0 is 50 Ω, then a resistance value of 50 Ω corresponds to a reflection coefficient R of 0 (no reflection) . A very large resistance, value corresponds to a reflection coefficient R of 1 (full reflection) . At the first port 33, the input signal is split into two components equal to 0.5 ■ sin(2πft). The first component is transferred directly from the first port 33 to the second port 35, which in turn is connected to an output terminal. The second component is transferred from the first port 33 to the second port 35 along a more complicated path. First the second component is transferred from the first port 33 to the third port 37 and from the third port 33 to the first pin diode 43a via the first delay line 41a. The first pin diode 43a reflects the second component, which consequently returns to the third port 37, thereby passing the first delay line 41a a second time. At the third port 37, half off the power of the second component is split off, and the second component is then transferred from the third port 37 to the fourth port 39. From the fourth port, the second component is transferred to the second pin diode 43b via the second delay line 41b. The second pin diode 43b reflects the second component, which consequently returns to the fourth port 39, thereby passing the second delay line 41b a second time. At the fourth port 39, half of the power of the second component is once again split off. From the fourth port 39, the second component is transferred to the second port 35. The 3 dB hybrid circuit 31, the pin diodes 43a and 43b and the delay lines 41a and 41b introduce a change of amplitude and a phase shift in the second component, and the second component, when received at the second port 35, is therefore equal to (0.5) 3 • R τ • sin(2πft + φ τ (f) ) . R τ is a total reflection coefficient, which is determined by the reflections produced by the pin diodes 43a and 43b. φ τ (f) is a total frequency dependent phase shift, which is mainly contributed to by the delay lines 41a and 41b. The 3 dB hybrid circuit 31 will also contribute to the total phase shift φ τ (f) to some extent. At the second port 35, the 3 dB hybrid circuit 31 is arranged to combine the first component 0.5 • sin(2πft) and the second component (0.5) 3 • R τ • sin (2πft + φ τ (f) ) , thereby generating a combined signal 0.5 • sin(2πft) + (0.5) 3 • R τ • sin(2πft + φ τ (f) ), which is delivered to the output terminal of the compensation circuit 2 in figure 15. Equation (1) can be used for calculating the gain G c of the compensation circuit in figure 15 by substituting A for (0.5) 2 • R τ and by substituting φ(f) for φ τ (f) • The resistances of the pin diodes 43a and 43b are mainly determined by direct currents flowing through the pin diodes 43a and 43b. The compensation circuit 2 in figure 15 comprises a current control circuit arranged for controlling the direct currents of the pin diodes 43a and 43b. In the particular example of figure 15, the current control circuit includes a voltage generator 44 and current dividing circuitry connected to the voltage generator 44. The current dividing circuitry includes a first and a second branch. The first branch includes a resistor 45a and an inductor 46a, which are connected in series so as to connect the voltage generator 44 with the second port 35 of the 3 dB hybrid circuit 31. The second branch includes similarly a resistor 45b and an inductor 46b, which are connected in series so as to connect the voltage generator 44 with the first port 33 of the 3 dB hybrid circuit 31. The inductors 46a and 46b serve as radio frequency blockers . The branches include also decoupling capacitors 47a and 47b, which prevent time varying signals from being transferred to the voltage generator 44. By varying a voltage from the voltage generator 44, direct currents flowing through the pin diodes 43a and 43b are varied, thereby controlling the resistances of the pin diodes 43a and 43b and, consequently, the reflective properties of the pin diodes 43a and 43b. Alternatively, the current control circuit includes instead two voltage generators, one for each branch. Thus allowing independent control of the direct currents of the pin diodes 43a and 43b. The direct currents of the pin diodes 43a and 43b can, for example, be controlled so that reflection coefficients associated with the pin diodes 43a and 43b obtain different signs. The above-suggested approach for selecting appropriate parameter values for the embodiments in figures 5 and 6 can be used, mutatis mutandis, for selecting appropriate resistance settings for the pin diodes 43a and 43b and for selecting appropriate lengths of the delay lines 41a and 41b. The signal reflector 19 in the embodiment of figure 13 may include a pin diode as resistive element for producing a reflection. The embodiment of figure 13 may in such a case also include a current control circuit for controlling a direct current of the pin diode . Naturally, the embodiments of the compensation circuit 2 disclosed and indicated above can be combined in any suitable way to form more complex compensation circuits. Moreover, the compensation circuits 2 according the present invention are not limited to providing a compensational gain to a power amplifier but can be used for providing a compensational gain to any device where this is suitable. For example, the compensation circuits according to the present invention can be used together with couplers, transmission cables, striplines, microstrips and radio frequency equipment in general. The compensation circuits according to the present invention can also be used together with small-signal amplifiers (for example based on field-effect transistor technology), e.g in a wireless receiver. Figure 16 is a flow chart of a method, according to the present invention, for providing a compensational gain. At a block 51, a signal is split into two components, preferably, but not necessarily, of equal power. At a block 53, a frequency dependent phase shift is provided in one of the components. The phase shift is preferably provided in the form of a predetermined time delay, although the invention is not limited to providing the phase shift in the form of a time delay. At a block 55, a change of amplitude is provided in one of the components. The change of amplitude can be obtained in many ways, e.g. by attenuating one of the components and/or by using on or more signal reflections to obtain the change of amplitude. At a block 57, the components are combined (added together) after providing the phase shift and the change of amplitude, thereby producing a combined signal . The method in figure 16 can be used for providing a compensational gain for compensating for a non-flat gain of a power amplifier or for providing a compensational gain to some other device.

Claims: CLAIMS 1. A method for providing a compensational gain, the method characterised by comprising: splitting (51) a signal into two components; providing (53) a frequency dependent phase shift in one of the components ; providing (55) a change of amplitude in one of the components ; and combining (57) the components after the providing of the phase shift and the change of amplitude. 2. A method according to claim 1, wherein the providing (53) of the frequency dependent phase shift includes introducing a pre- determined time delay. 3. A method according to claim 2, wherein the introducing of the time delay includes using at least one delay line. 4. A method according to any one of the claims 1 or 2 , wherein the providing (55) of a change of amplitude includes attenuating one of the components. 5. A method according to any one of the claims 1 to 4, wherein the providing (55) of the change of amplitude includes reflecting one of the components at least once. 6. A method according to any one of the claims 1 to 5, wherein the splitting (51) of the signal includes that the components obtain equal power. 7. Use of a method according to any one of the claims 1 to 6 for providing a compensational gain to a device having a gain with an unwanted frequency dependence. 8. A method for power amplification using a power amplifier (1) having a non-flat gain, the method comprising: providing a compensational gain which compensates for the non-flat gain of the power amplifier, characterised in that the providing of the compensational gain includes using a method according to any one of the claims 1 to 6. 9. A compensation circuit (2) for providing a compensational gain, characterised by comprising: means (11; 31) for splitting a signal into two components; means (15; 41a, 41b) for providing a frequency dependent phase shift in one of the components; means (17 ; 19 ; 43a, 43b) for providing a change of amplitude in one of the components; and means (13;31) for combining the components after providing the phase shift and the change of amplitude. 10. A compensation circuit according to claim 9, wherein the means (15 ; 41a, 41b) for providing the phase change includes means for introducing a predetermined time delay. 11. A compensation circuit according to claim 10, wherein the means for introducing the time delay includes at least one delay line (41a, 41b). 12. A compensation circuit according to any one of claims 9, 10 or 11, wherein the means for providing the change of amplitude includes at least one attenuator (17) . 13. A compensation circuit according to any one of claims 9 to 12, wherein the means for providing the change of amplitude includes at least one signal reflector (19 ;:43a, 43b) . 14. A compensation circuit according to any one of the claims 9 to 13, wherein the means for splitting (11; 31) is arranged so that the components obtain equal power. 15. A compensation circuit according to claim 9, wherein the compensation circuit comprises a 3 dB hybrid circuit (31) , the 3 dB hybrid circuit including: a first port (33) , the 3 dB hybrid circuit (31) being arranged for receiving the signal via the first port (33); a second port (35), the 3 dB circuit (31) being arranged for delivering the combined components via the second port (35); a third port (37), the third port (37) being connected to a first signal reflector (43a) ; and a fourth port (39) , the fourth port (39) being connected to a second reflector (43b) . 16. A compensation circuit according to claim 15, wherein at least one of the third and fourth port (37,39) is connected to the corresponding signal reflector (43a, 43b) via a corresponding phase shifter (41a, 41b) having a frequency dependent phase shift. 17. A compensation circuit according any one of claims 15 or 16, wherein at least one of the signal reflectors includes a pin diode (43a, 43b). 18. A compensation circuit according to claim ' 17, wherein the compensation circuit comprises means (44) for controlling a direct current of the or each pin diode (43a, 43b) . 19. Use of a compensation circuit according to any one of the claims 9 to 18 for providing a compensational gain to a device having a gain with an unwanted frequency dependence. 20. A power amplifying circuit, comprising: a power amplifier (1) having a non-flat gain; and compensational circuitry for compensating for the non-flat gain of the power amplifier (1) , characterised in that the compensational circuitry includes at least one compensation circuit (2) according to any one of the claims 9 to 18.

Inventors: WESSELINK REINIER, WESSELINK, REINIER
Applicants: ERICSSON TELEFON AB L M, WESSELINK REINIER, TELEFONAKTIEBOLAGET LM ERICSSON (PUBL), WESSELINK, REINIER
Application year: 2001
Main classification: H03G3
IPC codes: H03F1