Re: automatic gain control



On Thu, 14 Feb 2008 16:10:13 +0000, Vladimir Vassilevsky wrote:

Tim Wescott wrote:

On Thu, 14 Feb 2008 09:44:33 -0600, nwa wrote:


Hi,

i'm new in this area. I'm now using ADSP 21061 SHARC digital signal
processing. I want to ask about automatic gain control, how to compute
the signal power from the received signal? I want to use this signal
power to scalling my signal.

Cheers..


Square and average. AGC loops are multiplicative, so it's usually a
good idea to take the logarithm of the average power to linearize the
loop.

BTW they always recommend using a squaring detector which implies the
double numeric precision and requires the square root or log operation
which is quite expensive. In many cases you don't really need the exact
power but some sort of approximate measure of the signal. The averaged
absolute value works just as well as RMS for many practical cases. If
the peak detection is required, then the averager can have the different
fall and raise time constants.


Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant http://www.abvolt.com

A logarithm good enough for an AGC is cheap, particularly if you have a
chip with a normalizer. You take the log to the base 2: shift up until
the MSB is set -- that's the mantissa of your log. Then you take the
remainder and linearly interpolate it between where you are and the next
log up.

Averaging the magnitude works well and is less expensive unless you have
a DSP chip that can square quicker than it can take an absolute value.
For a wide-range AGC you can still do better with a log.

--
Tim Wescott
Control systems and communications consulting
http://www.wescottdesign.com

Need to learn how to apply control theory in your embedded system?
"Applied Control Theory for Embedded Systems" by Tim Wescott
Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html
.



Relevant Pages

  • Re: UK WAKES UP to the THREAT of MURDOCHIANISM - Whole World APPLAUDS !
    ... Government control of curricula lets the ... State use a compulsory education system as an organ of propaganda. ... The privatization of any key industry gives inordinate power to the ...
    (uk.philosophy.humanism)
  • Re: secret codes embedded in your printer output...
    ... >In every society you have those who exercise power and they generally ... introduce any law they wish with few constraints. ... and where there is no solid constitution and BoR to supervise them. ... >But I think there is an agenda to exert more and more control over ...
    (uk.politics.misc)
  • What is the New World Order? A System to Enslave the Masses for the
    ... victorious and proceeds to establish a single government of the world ... "Science has given us, in succession, power over inanimate nature, ... governments much more control over individual mentality than they now ... parts of the world will be probably a good deal nearer to the BRAVE ...
    (soc.culture.pakistan)
  • NW Order. Part 2.
    ... Steve Bonta- author of The Power E-ite & George ... France, In 1956, the House Committee on ... "It is well enough that people of the nation do ... They practically control both pol-tical ...
    (sci.skeptic)
  • Iranian Power Grab Debacle (a primer)
    ... positions of power over who and what lives or, more likely, dies. ... be unleashed upon Iran. ... control over, ... The USA gathers petroleum from around ...
    (alt.politics)