The present invention concerns an automatic gain control (AGC) circuit, a system including such circuit and a method for automatic gain control.
The present invention concerns more precisely an automatic gain control (AGC) circuit including:
When the received signal is coming for instance from a vibration sensor, the received signal can be an impulsive signal with variations in amplitude of several orders of magnitude.
Generally, low input gain and high resolution analog to digital converters (ADC) are used to convert such received signal. But when the received signal is an impulsive signal, it is necessary to tune an important margin between the ADC full scale input voltage range and the received signal maximum voltage. That is why most of time, the amplified signal has a very small amplitude and is noisy. Moreover, the use of high resolution ADC is costly.
Another way is to use an automatic gain control (AGC) circuit in front of the ADC. An AGC refers to a circuit which gain varies substantially depending on the magnitude of the received signal so as to maintain the amplified signal level substantially constant. As described is U.S. Pat. No. 5,606,284, the AGC circuit comprises at least one analog amplifier for the received signal which is automatically controlled by an analog feedback signal. Unfortunately amplified signal must be integrated in the feedback loop to produce the VGA gain control voltage. Thus, time constant must be sufficiently large and such AGC circuit is not well adapted to impulsive signals with lots of variations in amplitudes.
An object of the present invention is to solve this problem by providing an efficient circuit for automatic gain control that does not require an integrator circuit.
To this effect, the gain controller is adapted to:
Thanks to this regulation of the gain of the VGA, it is possible to anticipate received signal amplitude change even during first impulses and it is possible to get a constant signal-to-noise ration (SNR) in spite of change of received signal magnitude. Moreover, the cost of the VGA and the gain controller is relatively low and supposed lower than a high resolution ADC which has a variable quantization noise.
In preferred embodiments of the automatic gain control circuit proposed by the invention, one and/or the other of the following features may optionally be incorporated:
Another object of the invention is a system including an automatic gain control circuit, further including an analog to digital converter connected to said automatic gain control circuit for receiving said amplified signal from said variable gain amplifier.
The system may further include a vibration sensor connected to said variable gain amplifier, wherein said received signal is received by said variable gain amplifier from said vibration sensor.
Another object of the invention is to provide an efficient method for automatic gain control of a variable gain amplifier amplifying a received signal and outputting an amplified signal comprising the steps of:
Other features and advantages of the invention will be apparent from the following detailed description of one of its embodiments given by way of non-limitating example, with reference to the accompanying drawings. In the drawings:
In
For example, the ADC 20 may be a Texas Instruments PCM1803 which is a high-performance, low-cost, single-chip stereo analog to digital converter. In that case, the ADC 20 is able to give to the AGC circuit 10 a clock signal CLK for synchronization of serial audio digital data D and a left-right signal LRCLK for defining if current converted data D is from the left or right input channel. These additional signals are useful for the AGC circuit 10 to synchronize with ADC and to identify each sample.
The automatic gain control (AGC) circuit 10 is at least composed of a variable gain amplifier (VGA) 11 and a gain controller (GC) 12.
The VGA may be developed as exposed in
This kind of simple inverting amplifier permits to get a large range of gain by tuning its resistors values.
Second feedback resistor 16 is a programmable variable resistor, also called a digital potentiometer. An example of that kind of resistor is the Analog Devices AD5162 which is a dual 256-position Serial Peripheral Interface (SPI) digital potentiometer. The SPI bus is a 4-wire synchronous serial communications interface used by many microprocessor peripheral chips for connecting at a relatively low speed. This SPI bus can be used in the AGC to communicate a digital gain value G from the Gain Controller (GC) 12 to the Variable Gain Amplifier (VGA) 11.
In the case of a 8-bit digital potentiometer, like the AD5162, the digital gain value G can take any integer value between zero and 255. The resistance value Rb of the second feedback resistor 16 is given by a simple linear formula:
Where Re is the end to end resistance value (maximum resistance value) and Rw is the wiper contact resistance (the minimum resistance value).
The first feedback resistor 15 of the inverting amplifier 13 can help to compensate the wiper resistance Rw effect. Thus, it may be possible to have real evolutions of the gain of inverting amplifier 13 by factors of two, for instance:
The gain controller (GC) is detailed in
The signal comparator 17 is comparing the amplified signal A to a threshold T, and outputting the binary comparison signal C.
In the general case with a non centered amplified signal A, the comparator 17 is comparing the amplified signal A to thresholds T1 and T2. If amplified signal A is greater than threshold T1 or lower than threshold T2 the comparison signal C will be in the true state represented by a Vcc voltage of comparison signal C, otherwise the comparison signal C will be in the false state represented by a zero or ground voltage.
In practice, only one threshold T is used to define the comparison signal C. In case of a centered signal around zero volts, the comparison signal C is determined as in the general case above with T1 equal to T and T2 equal to −T. In case of a centered signal around Vcc/2 volts, the comparison signal C is determined as in the general case above with T1 equal to Vcc/2+T and T2 equal to Vcc/2−T.
The logic circuit 18 is using the comparison signal C and the ADC digital data D and ADC clock signal CLK to provide the said digital gain value G for the VGA 11 and to provide a completed digital data DOUT and a clock signal CLK to a user circuit (not shown) such as a microcontroller or a microprocessor or a digital signal processor (DSP).
The logic circuit 18 can be made by using several logic gate circuits connected together, or by using a Programmable Logic Device (PLD) such as a PAL device (Programmable Logic Array) or a GAL device (Generic Array Logic) or a CPLD device (Complex Programmable Logic Device) or a FPGA device (Field-Programmable Gate Array), or by using an Application Specific Integrated Circuit (ASIC), or any device of the like to implement all the bellow described logic. These PLD are programmed by using a language called Hardware Description Language (HDL). The ASIC can eventually integrate all or any of all the functions of the AGC circuit 10, e.g. including the signal SC circuit 2, the VGA circuit 11, the GC circuit 12 and the ADC circuit 20. Then, for high production volumes, ASIC design may be more cost effective than PLD design.
At initialisation, the logic circuit 18 is setting the gain value G of the VGA at the maximum value (e.g. 255, in case of a 8-bit digital potentiometer).
Then, the logic circuit 18 is determining an occurrence of a threshold event each time the amplified signal A has reached the predetermined threshold T, that is to say, each time the comparison signal C is equal to true state.
For each threshold event, the logic circuit 18 decreases the gain of the VGA by decreasing its output gain value G (e.g. the gain is decreased by a factor of two in changing the digital gain value G).
The logic circuit 18 also measures the delay since last threshold event. This can be done by simply counting samples since last true state of comparison signal C. In case of the use of PCM1803 stereo ADC, the logic circuit 18 only need to count the rising edges of left-right signal LRCLK.
If the gain of the VGA is not maximum (e.g. 255) and if the measured delay is greater than a specified value ΔT, the logic circuit 18 increases the gain of the VGA by increasing the digital gain value G (e.g. the gain is increased by a factor of two in changing the digital gain value G).
If a new threshold event happens before the measured delay becomes greater than said specified value ΔT, the logic circuit 18 decreases the gain of the VGA by decreasing its output gain value G and the delay is simply initialized to zero value. Then, the gain of the VGA can be increased a first time after a delay of ΔT if no threshold event occurs and a second time after a delay of 2.ΔT if no threshold event occurs. Another way to do this is to initialize the delay to a zero value when the gain of the VGA is firstly increased. In that case, if the gain of the VGA can be increased a second time after a delay of ΔT if no threshold event occurs (since last initialization of delay).
The logic circuit 18 is providing to a user circuit a completed digital data DOUT which is merging the digital data D from ADC and the digital gain value G of VGA, so that the user microprocessor circuit can calculate the real value of received signal R. In case of two channels (with two ADCs or a two channel ADC), the logic circuit 18 is also managing all these devices and providing a completed digital data DOUT merging the digital data D of left channel, gain value G of VGA of left channel, digital data D of right channel, gain value G of VGA of right channel, and providing a LRCLK signal for defining if current data in DOUT is from the left or right input channel.
In a second embodiment of the invention, the gain of the VGA 11 may be increased or decreased by a predetermined factor value, which could be for instance two or four or a multiple of two.
In a third embodiment of the invention, the logic circuit 18 is calculating the absolute difference DIFF between two successive digital data D from ADC 20, at each occurrence of a threshold event:
DIFF=abs(D(n)−D(n−1)) (3)
Where:
If the absolute difference DIFF is lower than a predetermined value the gain is decreased by a first factor, for example of two, else the gain is decreased by a second factor higher than said first factor, for example of four.
Thanks to this third embodiment of the invention, the gain of the VGA 11 is automatically decreased by a predetermined factor value and the gain of the VGA 11 is simply and well adapted to amplified signal A evolution.
For example, between A1 and A2 and between A3 and A4, the amplified signal A exceeds threshold level T, with a high risk of saturation and non linearity of amplifier.
The ACG of the invention is continuously adapting variable gain amplifier gain value to keep the signal bellow threshold and with a maximum amplification. That is why the signal-to-noise ration (SNR) of amplified signal is kept as constant and as high as possible. With these devices and method it is possible to get a precise analog-to-digital conversion of received signal, at a lower cost than with a high resolution analog to digital converter.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB2006/002988 | 10/25/2006 | WO | 00 | 7/31/2009 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2008/050171 | 5/2/2008 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
3997914 | White | Dec 1976 | A |
5606284 | Tamesue et al. | Feb 1997 | A |
5633940 | Wassink | May 1997 | A |
5955925 | Segawa et al. | Sep 1999 | A |
6420934 | Butler et al. | Jul 2002 | B1 |
6510188 | Isaksen et al. | Jan 2003 | B1 |
6597898 | Iwata et al. | Jul 2003 | B1 |
20020150266 | Hinkle et al. | Oct 2002 | A1 |
20030091126 | Rabii | May 2003 | A1 |
20030179046 | Lin et al. | Sep 2003 | A1 |
20050032496 | Saeki | Feb 2005 | A1 |
20060044065 | Ishida | Mar 2006 | A1 |
20080007543 | D'souza | Jan 2008 | A1 |
20090161888 | Okada | Jun 2009 | A1 |
Number | Date | Country |
---|---|---|
668243 | Apr 1996 | AU |
0 604 295 | Jun 1994 | EP |
0 803 977 | Oct 1997 | EP |
0 929 150 | Jul 1999 | EP |
1 427 102 | Jun 2004 | EP |
61263303 | Nov 1986 | JP |
61263304 | Nov 1986 | JP |
7-079124 | Mar 1995 | JP |
7263986 | Oct 1995 | JP |
11-251851 | Sep 1999 | JP |
2001274645 | Oct 2001 | JP |
2002534005 | Oct 2002 | JP |
2004153718 | May 2004 | JP |
WO-0030025 | May 2000 | WO |
WO-0038409 | Jun 2000 | WO |
WO-03005292 | Jan 2003 | WO |
WO-03067511 | Aug 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20100090763 A1 | Apr 2010 | US |