Hi Everyone,
Can use a push button that when pressed and released will change the input signal, and when pressed and held for about 3 seconds will change the output signal.
Thank!!
ADAU1401
Obsolete
The ADAU1401 is a complete single-chip audio system with a 28-/56-bit audio DSP, ADCs, DACs, and microcontroller-like control interfaces. Signal processing...
Datasheet
ADAU1401 on Analog.com
Hi Everyone,
Can use a push button that when pressed and released will change the input signal, and when pressed and held for about 3 seconds will change the output signal.
Thank!!
Hello DaNhanCach,
Please try the attached project. You have to do some work though. Since I have the sigma350 core in my desk, I made the project for sigma3xx processors. However, I made this project by only using the blocks which are available on ADAU1401, I avoided using shifter like blocks which is not available and needs additional logics to implement shifting operations in sigma200 core.
So, you have to change to 28.0 format wherever I used 32.0.
I quickly prepared this project, just change the settings to get the correct hold time. I believe it will give you an idea, but I haven't tested this completely due to time constraints, maybe I will update it tomorrow if anything is needed.

This was working perfectly with sigma3xx core since it has a pulse counter with interval block. (sigma300 core users can use this)

Change input output signal by push button v2.dspproj
Please copy this project for your ADAU1401.
Any other ideas from forum users/experts are always welcome.
Thank you for your interest in my question. I saw your project. it's still not what I want. I want when the output changes the input should not change.
I edited it but it looks too complicated. Hope someone has a simpler idea.

Hello,
My attempt to simplify this application saves a few instructions by eliminating the Divide block. It runs on a ADAU1701MINIZ board, which has its middle button wired to MP3. Since the button grounds MP3 when pressed, I inverted MP3 in the Register settings. A short button press (between 0.5 -- 2 seconds) switches between two tones, a longer press moves the sound between left and right channels. Any change occurs when the button is released:

Best regards,
Bob