I need to make an automatic volume control to be applied to a project.
The ZIP file contains a part created only for testing.
The current manual volume adjustment function must remain unchanged.
A switch will then be inserted that allows you to choose whether to use manual volume adjustment, or automatic.
I need to make sure that when the input signal SSB decreases, or the demodulated audio signal decreases, "I do not know if the control is better to do it on the SSB input or the demodulated audio", the listening volume level is always as close as possible to the maximum.
Currently the entire project uses 412 instructions on 512 available, my sample rate is 96,000 Hz, "the part here visible is only a test", possibly this volume AGC should consume few instructions, I still have to add other parts to the project and the saving of instructions is important.