Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD AND APPARATUS RELATING TO SIGNAL CONTROL
Document Type and Number:
WIPO Patent Application WO/2011/081582
Kind Code:
A1
Abstract:
The present invention relates to an automatic gain control method and block 30 for controlling a signal level of a signal at a predetermined location in a signal path 17 of a receiver chain. The automatic gain controller 30 is comprising a local signal modifier device 42 for selecting based on an error signal eg (t)) an oscillator signal from a plurality of alternative oscillator signals aslo and providing the selected oscillator signal aslo to a signal mixer 18 located in the receiver chain upstream of said predetermined location for frequency translation of an input signal to said signal mixer.

Inventors:
SAHL STEFAN (SE)
Application Number:
PCT/SE2009/051513
Publication Date:
July 07, 2011
Filing Date:
December 30, 2009
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ERICSSON TELEFON AB L M (SE)
SAHL STEFAN (SE)
International Classes:
H03G3/20; H04B1/26; H03D7/12; H03G3/30
Domestic Patent References:
WO2007115014A12007-10-11
Foreign References:
US6072998A2000-06-06
GB2116794A1983-09-28
Other References:
See also references of EP 2520020A4
None
Attorney, Agent or Firm:
NILSSON, Charlotte (Patent Unit 3GTorshamnsgatan 21-23, S- Stockholm, SE)
Download PDF:
Claims:
CLAIMS

1. A method for controlling the signal level of a signal (s(t)) at a predetermined location in a signal path of a receiver chain in a receiver, comprising the steps of:

- measuring the signal level (g(t)) of the signal (s(t)) (step 100);

- generating an error signal (eg(t)) as the difference between the measured signal level (g(t)) and a target signal level (gref) (step 102);

- controlling said signal level by controlling a gain of said receiver chain based on said error signal;

said method is further characterized in that said step of controlling the gain comprises the steps of:

- selecting based on said error signal an alternative oscillator signal from a plurality of alternative oscillator signals (step 104a);

- providing the selected alternative oscillator signal to a signal mixer located in the receiver chain upstream of said predetermined location for frequency translation of an input signal to said signal mixer (step 104b).

2. The method according to claim 1 , wherein the method is further comprising the steps of:

- generating at least one alternative oscillator signal (asi0(t)) by modifying a local oscillator signal (LOiN(t)) having a first period and a first pulse width, wherein said at least one modified oscillator signal is comprised in said plurality of alternative oscillator signals.

3. The method according to claim 2, wherein said local oscillator signal is comprised in said set of plurality of alternative oscillator signals.

4. The method according to any of the preceding claims, wherein said generating step involves at least one of following signal feature modifications: modifying the period of the local oscillator signal or modifying the pulse width of said local oscillator signal.

5. The method according to claim 2, wherein the local oscillator signal comprises the operating frequency for the mixer to frequency translate the signal to correct frequency band. 6. The method according to claim 2, wherein the method involves repeating the measuring, generating and selecting steps.

7. An automatic gain control block (30) for controlling a signal level of a signal (s(t)) at a predetermined location in a signal path (17) of a receiver chain in a receiver, wherein detection and error generating units (34, 38) are configured to measure the signal level (g(t)) of the signal (s(t)) and to generate an error signal (eg(t)) as the difference between the measured signal level (g(t)) and a target signal level (gref), characterized in that the automatic gain controller (30) is comprising a local signal modifier (42)configured to select based on the error signal (eg(t)) an alternative oscillator signal (asi0(t)) from a plurality of alternative oscillator signals and to provide the selected alternative oscillator signal to a signal mixer ( 18) located in the signal path ( 17) of the receiver chain upstream of said predetermined location thereby achieving frequency translation of an input signal to said signal mixer. 8. The automatic gain control block (30) according to claim 7, wherein a local oscillator signal is comprised in said plurality of alternative oscillator signals.

9. The automatic gain control block (30) according to claim 7, wherein the local oscillator signal comprises the operating frequency for the mixer frequency to frequency translate the signal to correct frequency band.

10. The automatic gain control block (30) according to any of claims 8-9, wherein the LO signal modifier (42) is comprising an alternative signal generator block (48;50) configured to generate a plurality of alternative oscillator signals (asi0(t)) by modifying said local oscillator signal, and an alternative signal generator controller (46;52) for selecting one of said alternative oscillator signal (asi0(t)) from a plurality of alternative oscillator signals.

1 1. The automatic gain control block (30) according to claim 10, wherein the LO signal modifier (42) is comprising an alternative signal generator block (48; 50) for modifying at least one of the following local oscillation signal features: modifying the period of the local oscillator signal or modifying the pulse width of said local oscillator signal.

12. The automatic gain control block (30) according to claim 10 or 1 1 , wherein the alternative signal generator block (48) is adapted to generate a plurality of different alternative oscillator signals (asio(t)) of which one is selected and generated depending on a corresponding error signal.

13. The automatic gain control block (30) according to claim 10 or 1 1 , wherein the alternative signal generator block (48) is comprising at least one Alternative Oscillator Signal Modifier (AOSM) in which an alternative oscillator signal (asi0(t)) is generated.

14. The automatic gain control block (30) according to any of claims 10- 13, wherein the alternative signal generator controller (46;52) is configured to receive the error signal eg(t) and in dependence of said error signal select at least one oscillator signal of a plurality alternative oscillator signals generated in the ASG block 50.

15. The automatic gain control block (30) according to any of claims 7 - 14, wherein the said automatic gain control block (30) is further comprising a signal level detector (34) adapted for measuring the output signal level g(t) of the output signal (s(t)), a comparator (38) adapted for generating an error signal (eg(t)) as the difference between the measured signal level (g(t)) and a predetermined signal level

(gref)) -

Description:
METHOD AND APPARATUS RELATING TO SIGNAL CONTROL

TECHNICAL FIELD

The present invention relates to automatic gain control of electrical signals in a signal path. More specific, the present invention provides an Automatic Gain Control block and a method for controlling the signal level in the signal path of a receiver chain.

BACKGROUND

A radio receiver must be able to handle both weak and strong signals. Most often the amplitude detector in the final stage in the receiver must have its input signal at a specific amplitude for optimal performance. This problem is often solved according to prior art by inserting amplifiers having Automatic Gain Control, AGC, functionality into the signal path through the radio receiver. The AGC will change the gain of the amplifier when the strength, i.e. the level, of the input signal changes to keep the detector signal at a predetermined level. The gain change can be achieved in a continuous manner or in discrete steps.

Existing technologies for implementing AGC functions with discrete steps uses switches in some form to realize programmable gain amplifiers, PGA, or programmable attenuators. The switches are usually implemented in FET or MOS technologies or with PIN diodes. The switches can be used to switch in attenuator steps in the signal path, switch in more or less feedback in an amplifier or switching on and off whole amplifier stages. All those methods change the total gain in the receiver.

US patent publications US No. 2009/0079501 , denoted ref [ 1], and US No. 2009/0108931 , denoted ref [2], describe circuits with programmable gain implemented with switches.

Ref [ 1] teaches different automatic gain control designs. Further, a method to compensate the on resistance problem by having "dummy" switches that should track the ones in the feedback. This shows that on resistance is a problem when using switches. Also Ref [2] teaches automatic gain control comprising switches for setting the attenuation level.

The use of switches for implementing AGC functions has several

disadvantages, especially if the radio receiver is implemented at an integrated circuit, e.g. an ASIC, Application Specific Integrated Circuit.

Switches may be implemented in an ASIC by means of Positive Intrinsic Negative, PIN, diode technology, but said diodes are known for consuming a lot of current in some design conditions, and they are therefore not power efficient. When using PIN diodes as switching elements means they are either reversed biased, which will not consume any current, or forward biased, which will consume current. The current is usually large since the trans-conductance, g m , of the diode must be large, which is defined by the diode equation. The trans-conductance must be large to make the PIN-switch having a low on resistance. The following equations shows the relationship between trans-conductance and bias current ID.

g ~, 7 »

dV D kT I q

The use of Field Effect Transistor, FET, or Metal Oxide Semiconductor, MOS, technology for implementing the switches in the signal path of a receiver chain involves a trade-off between low resistance in on state and low capacitance in off state. Both FET and MOS transistors works with a channel. When they are used as switches the channel is completely open or closed.

To minimize the on resistance and parasitic capacitance the length of the transistor is made as small as the technology allows. Making the switch wide will lower the on resistance but will also increase the parasitic capacitance that will limit the high frequency performance.

FET and MOS switches have a maximum voltage they can handle. Often large signal amplitudes need to be handled. This can limit the usage of a FET or MOS switches.

As described, the use of amplifier circuits having automatic gain control functionality in the signal path of a receiver chain may introduce a number of problems to be solved or avoided. SUMMARY

One object of the present invention is to provide a solution to the above problems.

The present invention therefore provides an Automatic Gain Control and a method for controlling the signal level in the signal path of a receiver chain.

According to one embodiment of the present invention an automatic gain control block is provided for controlling a signal level of a signal at a predetermined location in a signal path of a receiver chain. The automatic gain controller is comprising detection and error generating units, which are configured to measure the signal level of the signal and to generate an error signal as the difference between the measured signal level and a target signal level, and a local signal modifier device for selecting based on an error signal an oscillator signal from a plurality of alternative oscillator signals and providing the selected oscillator signal to a signal mixer located in the receiver chain upstream of said predetermined location for frequency translation of an input signal to said signal mixer.

Further, the present invention is also providing a method for controlling the signal level of a signal at a predetermined location in a signal path of a receiver chain. The signal level of the signal is measured and an error signal is generated as the difference between the measured signal level and a target signal level. The signal level is controlled by means of an automatic gain controller of said receiver chain by selecting based on said error signal an oscillator signal from a set of plurality of alternative oscillator signals. The selected oscillator signal is provided to a signal mixer located in the receiver chain upstream of said predetermined location for frequency translation of an input signal to said signal mixer.

Further embodiments of the present invention is presented in the dependent claims.

One advantage with the present invention is that switching elements in the signal paths will be avoided.

Further one advantage is that the Automatic Gain Control block circuit according to the invention may be implemented as an ASIC (Application Specific Integrated Circuit) comprising electronic components that are power effective, i.e. not consuming a lot of current as e.g. PIN diodes. An additional advantage is that the present invention is capable of handling large signal amplitudes, which have to be handled in some receiver applications. The maximum signal amplitude is increased and becomes a non-critical feature by using an AGC according to the invention instead of a conventional AGC.

Further, the present invention provides a solution to the parasitic capacitance problem, which limits the high frequency performance as discussed in the background section above. The present invention offers increased high frequency performance by avoiding FET and MOS transistors and switches. BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing, and other, objects, features and advantages of the present invention will be more readily understood upon reading the following detailed description in conjunction with the drawings in which:

Figure 1 is a block diagram illustrating a super heterodyne receiver according to prior art.

Figure 2 is a block diagram illustrating an embodiment of an Automatic Gain Control, AGC, block according to the invention.

Figure 3 is a block diagram illustrating an embodiment of a Local Oscillator signal modifier of an AGC block according to the invention.

Figure 4 is a block diagram illustrating an alternative embodiment of a LO signal modifier of an AGC block according to the invention.

Figure 5 is a block diagram illustrating an alternative embodiment of a LO signal modifier of an AGC block according to the invention.

Figure 6 is a block diagram illustrating a logic circuit solution of an alternative oscillator signal modifier.

Figures 7a, 7b, 7c and 7d are time-to-amplitude signal graphs illustrating examples of alternative oscillator signals having different periods and pulse widths compared with the original LO signal from which they are modified.

Figure 8 is a flow chart illustrating an embodiment of a method according to the invention.

Figure 9 is a block diagram illustrating a receiver according comprising an automatic gain controller according to invention. DETAILED DESCRIPTION

In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular circuits, circuit components, techniques, etc. in order to provide a thorough understanding of the present invention. However, it will be apparent to one skilled in the art that the present invention may be practiced and other embodiments that depart from these specific details. In other instances, detailed descriptions of well known methods, devices, and circuits are omitted so as not to obscure the description of the present invention with unnecessary detail.

Figure 1 is a block diagram illustrating a super heterodyne receiver 10 according to prior art.

Said known receiver will now be briefly discussed. A signal is received by the antenna 1 which is connected to the input of the super heterodyne receiver 10. The information carried by the signal is modulated on a carrier radio wave in the radio frequency RF band and is therefore denoted RF signal. The received signal is amplified or attenuated by a RF amplifier block 2 such that the amplitude level of the received RF signal is adjusted to the operating level of the receiver. The amplifier block 2 is preferably equipped with an Automatic Gain Control, AGC, for said purpose. In the next step, the RF signal frequency is adjusted to a lower operating frequency, i.e. a down conversion or frequency shifting/translation is performed. The down conversion may also be performed in several steps, or stages, instead of one frequency step. In the figure, only one down conversion stage 3 is illustrated. Said stage 3 is comprising a signal mixer 4, a filter 6, preferably a band- pass filter, and an Intermediate Frequency, IF, amplifier block 7, which preferably is equipped with an AGC. The signal mixer 4 has two inputs, one for the RF signal and one for receiving the oscillator signal from the Local Oscillator, LO, 5. The oscillator signal has a fixed operating frequency, amplitude and shape. Said operating frequency has been set to a frequency that in combination with the RF signal frequency will produce an IF signal being lower than the RF signal. A lot of sideband harmonic signals is also generated in the mixing process. Said side band harmonic signals are cancelled by means of the filter 6. Said IF signal is then adjusted to the correct signal level for the next blocks in the receiver chain by the IF amplifier block 7 comprising an AGC. The next step may be a new down conversion stage for further frequency shifting to a new frequency band below the IF band, or a demodulator block 8 for separating the modulated signal from its carrier wave. If the signal content is in the audio/voice frequency band, said audio/voice content is amplified by an audio amplifier 9 before being presented by a loud speaker (not shown) . The AGC functionality in a receiver chain may be implemented in different known ways, e.g. by using AGC designs with switches as known from Ref. [ 1] and Ref. [2] .

In figure 1 , the design of the receiver chain of functional blocks in a super heterodyne receiver and the signal path through said receiver has been briefly described. By the following description, it will be appreciated by a person skilled in the art that the present invention, which relates to Automatic Gain Control methods and devices, will be applicable in any receiver design and receiver chain technology using down-conversion via a mixer.

The present invention relates to Automatic Gain Control of a signal level of a signal at a predetermined location in a signal path of a receiver chain. In the following different embodiments of an Automatic Gain Control, AGC, block according to the invention are described.

In figure 2 is illustrated an embodiment of an AGC block 30 according to the invention. The AGC 30 is comprising a signal mixer 18, a detection unit 34 connected to a signal sensing device 32, an error signal generating unit 38, a LO signal modifier 42 and a Local oscillator signal generating unit 20. The AGC 30 is also comprising a filter 22 connected to the signal path after the signal mixer 18.

The AGC 30 receives an input signal s(t) having an actual signal level P that has to be adjusted, i.e. attenuated, to a requested target signal level P T G- At a predetermined location on the signal path 17, downstream from the signal mixer 18, the AGC 30 measures the signal level P of the signal s(t) . Said measured value is denoted as the actual signal level Pis = g(t) . A detection unit 34 connected to a signal sensing device 32 is used for measuring said actual signal level Pis. Said actual signal level or a value corresponding to said value Pis is fed to the error signal generating unit 38. The unit 38 compares said value to a gain reference value gref , that corresponds to the requested target signal level PTG of the signal and generates an error signal e g (t) , which is indicative of how much Pis deviates from

The modifier 42 also receives the error signal e g (t) and in dependence of said error signal it selects a suitable alternative oscillator signal as L o(t) for compensating for the difference in signal levels Pi S and PTG ·

The LO signal modifier 42 is configured to generate a plurality of different alternative oscillator signals. The LO signal modifier 42 receives from the local oscillator 20 a sinusoidal signal or a pulse shaped signal LOI via a pulse shaper circuit 44. Said modifier 42 modifies at least one feature of the received local oscillator signal LOI N , e.g. the signal's period or pulse width. The received local oscillator signal as well as each of the plurality of alternative oscillator signals will comprise the operating frequency to which the signal mixer is set to operate for the frequency translation.

The following criteria may be used in the generation and selection of the alternative oscillator signals:

1) Each alternative oscillator signal is a pulse train, preferably rectangular or square shaped;

2) The pulse width and pulse period of a pulse train are such that the pulse train will comprise a harmonic with a frequency which is equal with the operation frequency of the mixer. Said harmonic has a (non-zero) signal level, e.g. amplitude or power, which is used in the signal mixer as factor when multiplied the signal level of the input signal, e.g. an RF signal. This multiplication results in a down conversion and an attenuation of the input signal.

The generated and selected alternative oscillator signal is fed to the signal mixer 18, which will perform the frequency translation of the input signal s(t) . The signal mixer 18 is comparable with a multiplication unit. The multiplication of the input signal and the alternative oscillator signal will result in an output signal s*(t) that is the product of the fundamental signal and all the harmonics constituting the alternative oscillator signal and the input signal. The LO signal modifier 42 is controlled to generate at least one alternative oscillator signal asi 0 (t) comprising a harmonic signal that when mixed with the input signal to the signal mixer results in an output signal s(t) = s CO rr(t) having the correct target signal level and frequency and will pass the filter 22, preferably a band-pass filter, which will cancel all other output signals from the mixer stage.

In figure 3 is an embodiment of a LO signal modifier 42 of an AGC block illustrated. The LO signal modifier 42 comprises an Alternative Signal Generator, ASG, block 48 and an ASG controller 46. The ASG controller is configured to receive the error signal e g (t) and in dependence of said error signal generate an ASG control signal c c tri(t) to the ASG block 48. The ASG block is capable to generate a plurality of different alternative oscillator signals asio(t) and which of the alternative oscillator signals that is generated by the ASG 48 is depending on the control signal Cctri(t), which is depending on the error signal level, e.g. amplitude, to the ASG controller 46. The ASG 48 receives from a local oscillator 20 a sinusoidal signal or a pulse shaped signal via a pulse shaper circuit 44. In dependence of the present error signal, the ASG 48 will modify at least one of the received local oscillator signal features, e.g. the signal's period or pulse width. The received local oscillator signal as well as each of the plurality of alternative oscillator signals will comprise the operating frequency to which the signal mixer is set to operate for the frequency translation.

The ASG controller 46 may be implemented as a digital processor unit comprising a Look-Up Table, LUT. In said LUT, the variable error signal e g (t) may be used as input value. In the LUT, c c tri signals are listed which corresponds to different error signals. The ASG controller 46 is adapted to for a given error input signal look up the corresponding c c tri signal in the LUT. The selected control signal Cctri corresponds to one alternative oscillator signal asio of the plurality of alternative oscillator signals that is possible to generate by means of the ASG block 48. The selected control signal c c tri is generated and fed to the ASG block 48 for controlling the generation of the selected alternative oscillator signal asio to be fed to the signal mixer 18. The ASG 48 may be implemented by means of a suitable hardware or software controlled circuit that is capable of modifying the received LOi n signal into a plurality of alternative oscillator signals and select one of in dependence of the received control signal c c tri- In figure 4, an alternative embodiment of a LO signal modifier 42 of an AGC block is illustrated. The LO signal modifier 42 comprises an Alternative Signal Generator, ASG, block 50 and an ASG controller 52. The ASG controller 52 is configured to receive the error signal e g (t) and in dependence of said error signal select at least one oscillator signal of a set of a plurality alternative oscillator signals generated in the ASG block 50. In this embodiment, the ASG controller 52 receives an error signal e g (t), but said controller 52 will not generate an ASG control signal c c tri(t) to the ASG block in dependence of said error signal, as in the embodiment described above and illustrated in figure 3. In the embodiment according to figure 4, a set of alternative oscillator signals is generated and fed on separate connections 51 to the ASG controller 52. The ASG controller 52 is equipped with a selector unit 53 and a number of selectable input ports 51 : 1 , 51 :2, 51 :3, ... ; 51 :n from which the ASG controller 52 selects by means of the selector block 53 at least one of the input ports on which a suitable alternative oscillator signal is present. Said selected alternative oscillator signal asio is fed to the signal mixer 18.

The ASG controller 50 may be implemented as a digital processor unit comprising a Look-Up Table, LUT. In said LUT, the variable error signal e g (t) may be used as input value. In the LUT, said selectable input ports 51 : 1 , 51 :2, 51 :3, ... ; 51 :n are listed and each input port corresponds to one alternative oscillator signal asio. Hence, in this way one error signal is corresponding to one selectable alternative oscillator signal . The ASG controller 52 is adapted to for a given error input signal look up the corresponding input port 51 in the LUT and control the selector block 53 to select the listed input port that will provide the selected alternative oscillator signal asio of the plurality of alternative oscillator signals that is generated by means of the ASG block 50. The selected alternative oscillator signal asio is fed to the signal mixer 18.

The ASG block 50 receives from a local oscillator 20 a sinusoidal signal or a pulse shaped signal via a pulse shaper circuit 44. If a sinusoidal signal is received, the ASG block 50 have to include said pulse shaper circuit 44.

In figure 5, an embodiment of the ASG block 50 in a LO signal modifier according to the invention is illustrated. The LO signal modifier 42 comprises an Alternative Signal Generator, ASG, block 50 and an ASG controller 52. The ASG controller has already been described in connection with the preceding embodiment in figure 4.

The ASG block 50 of this embodiment comprises a number of Alternative Oscillator Signal Modifiers, AOSMs, for generating a set of a plurality of alternative signals. An AOSM may be designed to provide more than one alternative oscillator signal to the ASG controller 50. Each AOSM receives the pulse shaped signal LOI from a local oscillator unit 20. Known methods and hardware circuit designs may be used for implementing AOSMs that provide the different alternative oscillator pulse trains.

The embodiment of an ASG block 50 illustrated in figure 5 comprises four alternative oscillator signal modifiers 54, 56, 58 and 60. The AOSM 1 54 is configured to modify the LOI to an alternative oscillator signal asi o i having the same pulse width and period as the LOI signal. Thus, the ASG block 50 and the LO signal modifier 42 may provide the LO signal LOI N as received and not modified to be selected to the signal mixer of an automatic gain controller. The AOSM3 56 is configured to modify the LOIN to an alternative oscillator signals asi 0 3- The alternative oscillator signal asi 0 3 comprises a harmonic signal that has 1 /3 of the pulse frequency of the LOI N signal. The AOSM5 58 is configured to modify the LOI N to an alternative oscillator signal asi o s having a harmonic signal that has one fifth of the pulse frequency of the LOI N signal. The AOSM7 60 is configured to modify the LOI N to an alternative oscillator signal asi 0 7 having a harmonic signal that has 1 /7 th of the pulse frequency. These alternative oscillator signals will constitute a set of a plurality of alternative oscillator signals. Each of said alternative oscillator signals is fed to a separate input port 51 of ASG controller 52

It must be pointed out that the AGC block 50 may comprise fewer modifier units or more modifier units than illustrated in figure 5. In said figure, the modifier unit AOSM3 56 is configured to provide two alternative oscillator signals, and an embodiment of said AOSM will now be described in more detail with reference to figure 6.

In figure 6 is a logic circuit solution of the alternative oscillator signal modifier 56 illustrated. It comprises four latches 62 that is connected in such a way that one alternative oscillator signal asi o 3 will be available on the outputs of the AOSM3. Said alternative oscillator signal is illustrated in figure 7b. The modifier unit 56 receives a pulse train signal LOI having a certain pulse period and pulse width. Two of the latches receive the input pulse train LOI on their clock inputs CLK and two of the latches receive an inverted signal of the input pulse train LOI on their clock inputs. Said inverted signal is achieved by an inverter 66 to which the input signal LOI N is connected. Each latch 62 has beside the CLK pulse input a signal input D and two outputs of which one is an inverting output Q and one non-inverting output Q. By connecting the outputs and inputs of the different latches and by using an AND-gate 70 and an OR-gate 68, it is possible to modify the period and pulse width of the input signal LOI N to achieve at least one requested alternative oscillator signal on an output port of a modifier unit. The embodiment of a modifier illustrated in figure 6 is only showing an example that latches, delay elements and different logical circuits may be used for implementing the separate alternative oscillator signal modifiers.

In the drawings figures 7a, 7b, 7c and 7d are illustrated examples of LO signals and from said LO signals generated alternative oscillator signals having different periods and pulse widths compared with the original LO signal.

In figure 7a is a square shaped pulse train LO signal LOI N illustrated. The pulse train is configured of the fundamental angular frequency COLO and its odd numbered harmonics 3COLO, 5COLO, 7 COLO, ... , wherein the angular frequency COLO = 2π • fix> · If said signal LOIN is fed into the AOSM3 56 illustrated in figures 5 and 6, respectively, an alternative oscillator signal asi o 3 is generated.

In figure 7b, said alternative oscillator signal asi 0 3 is illustrated. It is a rectangular pulse train having a pulse width that is three times the pulse width of the LOI N signal and three times the pulse period of the LOI N signal.

In figures 7c and 7d are another kind of pulse trains to be used as LOI N signals. This kind of pulse trains are called quarter phase pulse trains. The pulse width in said pulse train is a quarter of the period. The LOI N signal comprises three levels + 1 , 0 and - 1. It can be implemented by one pulse train of positive pulses and one pulse train of negative pulses which is phase shifted. Between the quarter pulses, an intermediate level of nil exists. During the positive and negative pulses the mixer will generate an output signal that is the input signal multiplied with + 1 or - 1 , respectively. During the nil time the mixer output will be 0. If said signal LOI signal of figure 7c is fed into a circuit AOSM3 56 provided with two outputs, one for the negative pulse train and one for the positive pulse train, respectively, an alternative oscillator signal asi o 3 is generated according to figure 7d. In figure 7d, said alternative oscillator signal asi o 3 is a rectangular pulse train having a pulse width that is three times the pulse width of the LOI signal and three times the pulse period of the LOI signal. The kind of pulse trains illustrated in figure 7c and 7d is especially useful in receivers when splitting the received signal in one in- phase and one quadrature phase paths.

Theoretical explanation

A signal mixer has a specific conversion gain that depends on the Local Oscillator signal period and pulse width. The invention changes the LO signal period and pulse width into different alternative oscillation signals to the mixer to realize different conversion gains of the mixer.

An LO signal is a repetitive signal that can be described by a Fourier series. All the harmonics in the Fourier series have different amplitudes. By using different harmonics for different gain settings a programmable gain amplifier or attenuator is implemented.

A signal mixer is implementing a mathematical multiplication of two signals in the time domain. In a radio receiver those two signals are the received signal and the LO signal. Typical the LO signal is a square wave with amplitude +/- 1. That signal can with Fourier series theory be described with the following sum.

The signal mixer will multiply the received signal with all of the LO harmonics with respective amplitude. If the fundamental harmonic is used the multiplication is done by 4/π . If the third harmonic is used the multiplication is done by 4/ (3π ) and so on.

The received signal can mathematical be described by r(t) = a(t) - cos{co rf t + φ(ί))

Where a(t) and φ(ΐ) is the amplitude and phase modulation of the signal. This description is called polar description.

Multiplying the received signal with the fundamental harmonic of a square wave LO signal gives the following down converter IF, intermediate frequency, signal. The product-to-sum identity for cosine has been used.

Vl f O ) (t) = ^ - Os(cD lo t) ( = · ΐ (

v if (t) = a(tfcos((co rf - ω 1ο t + φ(ή)+ cos((co rf + ω 1ο t + φ(ή)]

From the equations it can be seen that the received signal has been frequency translated to two sidebands with a scale factor of 2/π. The modulation has been kept. If the upper sideband is removed by a filter the down converted signal exists.

The invention uses the fact that different alternative oscillator signal shapes, i.e. pulse width and period, comprise different harmonics and gives different conversion gain. Changing the harmonic and/ or the shape of the LO signal a PGA is implemented without any switching element in the signal chain of a receiver.

If the changing of gain is done by using a different harmonic the frequency of the LO is reduced. For example the LO frequency could be 1/3 of the original one. Then the third harmonic of this lower frequency will down-convert the wanted frequency band. That down-conversion will be done at 1 /3 amplitude and a lower gain of 1 /3 is achieved. 1 /3 is equivalent with 20*lg(l /3) = -9.5dB.

There is no limitation of which harmonic to use. Higher harmonics will have lower Fourier coefficients that will give more gain reductions. For a square wave the following gain reductions can be achieved.

Possible gain reductions for a square wave LO

Harmonic Gain reduction (dB)

1 0

3 9.5

5 14.0

7 16.9

9 19.1

1 1 20.8 There is no limitation to only using a square wave alternative oscillator signals. Also other signal shapes can be used as long as they have harmonics of higher orders than the fundamental one.

There is no limitation that the same LO signal shape is used for all harmonics. For example, a 1 /2 period can be used for the fundamental LO and 1 /4 period for the third harmonic. This will give a different gain reduction compared to only using a 1 /2 period.

An embodiment of the method will now be presented with reference to a flowchart in figure 8. In a first step, step 100, of the embodiment the signal level g(t) of the signal s(t) is measured by a measuring means. In the following step 102 and by means of the measured signal level g(t) and a target signal level g re f , an error signal e g (t) is generated as, e.g. the difference between said two signals.

The error signal is used, in step 104, to control and adjust said signal level to the target signal level. Said step 104 may be considered to comprise a number of sub- steps, such as selecting based on said error signal one of a plurality of alternative oscillator signals, step 104a, and then, providing the selected oscillator signal to a signal mixer located in the receiver chain upstream of said predetermined location for frequency translation of an input signal to said signal mixer (step 104b).

The method involves repeating the measuring, generating and controlling steps.

The Automatic Gain Control operating according to the above described method comprises a mixer 18, which may have a specific conversion gain that depends on the Local Oscillator signal shape. The AGC 30 may change the LO signal shape to the mixer to realize different conversion gains of the mixer. A plurality of alternative oscillator signals are possible to generate in a LO signal modifier 42 which selects, based on a generated error signal as described above, one alternative oscillator signal as input signal to the local oscillator signal input of the signal mixer 18. Thus, the generated alternative oscillator signal is fed to the signal mixer 18, which will perform the frequency translation of the input signal. The multiplication of the input signal and the alternative oscillator signal will result in an output signal that is the product of the fundamental signal and all the harmonics constituting the alternative oscillator signal and the input signal. The LO signal modifier 42 is controlled to generate at least one alternative oscillator signal comprising a harmonic signal that when mixed with the input signal to the signal mixer 18 results in an output signal having the correct target signal level and frequency.

In one embodiment of the invented method, a plurality of modified oscillator signal asi 0 (t) are generated by modifying a fundamental local oscillator signal LOi (t) having a first period and a first pulse width.

The local oscillator signal LOI comprises the operating frequency for the mixer to frequency translate the signal to correct frequency band. In another embodiment of the invention, a set of a plurality of alternative oscillator signals are simultaneously generated by modifying a fundamental local oscillator signal LOi (t) having a first period and a first pulse width. The selecting step is then performed by selecting one alternative oscillator signal from said set of a plurality of alternative oscillator signals.

In further embodiments, said local oscillator signal is comprised in said plurality of alternative oscillator signals.

In yet further embodiments, said generating step involves at least one of following signal feature modifications: modifying the period of the local oscillator signal or modifying the pulse width of said local oscillator signal.

Figure 9 is illustrating a receiver comprising a receiver chain comprising an automatic gain controller according to the invention.

A signal is received by the antenna 1 which is connected to the input IN of the super heterodyne receiver 10. The information carried by the signal is modulated on a carrier radio wave in the radio frequency RF band. The received signal RF signal is amplified or attenuated by a RF amplifier block 2 such that the amplitude level of the received RF signal is adjusted to the operating level of the receiver 10. The RF signal frequency is adjusted to a lower operating frequency, i.e. a down conversion or frequency shifting/ translation is performed from the radio frequency to an Intermediate Frequency, IF. The Intermediate frequency is lower than the radio frequency band but higher than the audio frequency band. The down conversion may also be performed in several steps, or stages, instead of one frequency step. In figure 9, only one down conversion step is performed. The down conversion is performed by means of the signal mixer 18 of the Automatic Gain Control block, AGC, 30 which is comprising said signal mixer 18, a signal sensing device 32 connected to detection and error signal generating units 34, 38

(illustrated as one block), a LO signal modifier 42 and a Local oscillator signal generating unit 20. The AGC 30 is also comprising a filter 22 connected to the signal path after the signal mixer 18. Thus, the AGC block 30 according to the invention may be used as a mixer block for frequency shifting. Said block 30 has the advantage over the down conversion block 3 in figure 1 in that it does not need an amplifier block 7 for achieving automatic gain control in the signal path 17 in the receiver chain between the antenna 1 and the final amplifier 9. The solution according to the present invention in figure 9 eliminates switches in the signal chain 17. The AGC block 30 may be configured according to any of the above described embodiments of the invention, and to operate according any of the embodiments of the invented method.

A number of embodiments of the present invention have been described. It will be understood that various modifications may be made without departing from the scope of the invention. Therefore, other implementations are within the scope of the following claims defining the invention.