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

Threshold of limiter adjustment via GPIO?

SigmaDSP & SigmaStudio Robin Mar 5, 2011 00:00 2 replies Original on forum ↗
Subscribe
Robin Question
Mar 5, 2011 00:00

Hi guys,

I need the possibility to adjust the threshold of a limiter by an external source. Best would be to do this by a potentiometer connected to the ADC of a GPIO. Is there any chance to realize this?

Regards,

Robin

ADIApproved Reply
Mar 8, 2011 00:00

Currently this cell doesn't exist, but you could create your own using the low-level blocks in the library.

Here's one example of how to do it:

First, check the level of the audio signal. You can do this by using an envelope. For more info, check here: https://ez.analog.com/message/7669#7669

Then, use an Auxiliary ADC Input to get the level of your potentiometer input.

You can subtract the two signals to get the difference.

If the difference exceeds a certain threshold, you can raise a flag (using the AB in / CD out Conditional cell).

When that flag is high, you could calculate the gain that needs to be applied and use that as a control signal for a Slew Gain (External Input) cell.

That's just one way of doing it. You could also try an implementation making use of your system microcontroller:

In SigmaStudio, connect the Aux ADC input directly to a DSP Readback cell.

Your microcontroller could manually read this cell and then write to the Limiter cell to change the limiter level based on the ADC level.

There are several other options available. Just look through the library and hopefully you'll get some other ideas!

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