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

How can I change the gain with timer in sigma studio?

SigmaDSP & SigmaStudio Longyu Jan 31, 2023 00:00 1 replies Original on forum ↗
Subscribe
Longyu Question
Jan 31, 2023 00:00

Hi, I want to change the gain coefficient("Learning Rate") after 5 seconds.

Can it be changed by timer?

software

ADAU1787

Sigma Studio 4.6

timer

Integrated/Special Purpose A/D Converters

gain

ADAU 1787

SigmaStudio 4.6

ADAU1787 evaluation board

Audio CODECs

Show More

pastedimage1675151584905v2.png
pastedimage1675151584905v2.png
Harishgowtham Reply
Jan 31, 2023 00:00

Hello Longyu,

Sorry, I was not quite sure about what you exactly need. But the thing you asked can be done using timers.

Longyu said:
Hi, I want to change the gain coefficient("Learning Rate") after 5 seconds.

Do you want to switch between two gain values, one to another after some time? Or do you want it like a loop?

Could you please explain a bit about how you want your circuit from input to output?

Look at the below simple circuit. where I have a switch block and switching the audio inputs between two gains. when the switch is turned Off, gainA will be applied to the signal. when the switch is turned On, after 5 seconds gainB will be applied to the signal. This is to show you how you can use timers to create a delay.

The number format will be 5.23 for your processor. You might need to shift based on that. I can help you with that if you tell me the program flow and how you want your circuit to function.

If you can tell me a bit more info of your program flow then I could able to create a project and send it to you.

Regards,

Harish

timer.png
timer.png