ΣSigmaStudio Ask AI Русский Log in

Automatic Gain Control

SigmaDSP & SigmaStudio Cubyte Nov 8, 2009 00:00 4 replies Original on forum ↗
Subscribe
Cubyte Question
Nov 8, 2009 00:00

Hi i'm new to the world of DSP and i'm using the ADAU1701 is it possible to create a automatic gain control.

if so how do i start?

Audio Signal Processors

SigmaDSP Audio Processors

adau1701

ADIApproved Reply
Nov 9, 2009 00:00

Hi Steve,

The simplest implementation of an ALC is using a dynamics processor to emphasize the signal range of interest. It can vary a lot based on the application, but here are some rules of thumb and a few tips.

Route the input signal to a dynamics processor, preferably through a crossover network. This way you can have separate detection and processing for multiple bands, which should improve the overall quality of the ALC.

Here's an example of a mono, dual-band ALC.

https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/396/f41be9438a9ce7398ced837929e70b67.bin

The crossover in my example is configured with a crossover point of 300 Hz.

https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/396/e86f5f0d1345ed0bd9fa04fe0fa87112.bin

Set up an ALC curve to emphasize the gain region of interest.

https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/396/3515f68743fc6c23a843d344a77aea71.bin

These are very broad suggestions. The actual implementation and tuning of the dynamics processors depends highly on different system factors.

Note that our ADAU1761 has a built-in hardware ALC, which would be a simpler solution and doesn't require DSP. Refer to its datasheet for more info.

Cubyte Reply
Nov 9, 2009 00:00

is there away to maintain a constant level even if the original input signal was very low in one case and loud in another?

ADIApproved Reply
Nov 11, 2009 00:00

If you use the dynamics processor to boost the level of quiet signals and reduce the level of loud signals, a more constant level will be output. This is just applying compression on both the high-level and low-level signals to compress the dynamic range of the signal.

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin