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

ADAU1701 PUSHBUTTON

SigmaDSP & SigmaStudio piero Dec 11, 2012 00:00 5 replies Original on forum ↗
Subscribe
piero Question
Dec 11, 2012 00:00

As it is possible to change the state of GPO_1 And GPO_10 through a connected button on GPI_9. to the but the state of GPO_1 has to be low and the state of GP0_10 it has to be hight, pressing the button the two signals they are had to reverse and to stay so up to when the button remains pressed, to the release of the button the two GPOs return to the preceding state.

Thanks

Audio Signal Processors

sigma_studio

SigmaDSP Audio Processors

gpio

sigmastdio

adau1701

Show More

piero Reply
Dec 12, 2012 00:00

Thanks Bob, has been very kind

Piero

KJBob Reply
Dec 12, 2012 00:00

Hi Piero,

The circuit below has LED D5 (GPIO_1) normally low and D6 (GPIO_10) normally high. Press and hold button S6 (GPIO_9) to flip the outputs:

The ADAU1701's MP pins can be programmed for many functions as described in the data sheet. Out of the box, SigmaStudio sets GPIO_1 and GPIO_10 as inputs, thus they cannot drive the LEDs. Thus, in addition to drawing the schematic, you need to set the ADAU1701's control register to make these pins outputs.

To do this, click the Hardware Configuration tab atop your schematic window.

Then, choose the IC1 - 170x \ 140x Register Control tab under the window.

Next, set the drop-down box for each MP pin as shown below. These settings make all GPIOs compatible with the hardware on your ADAU1701MINZ board. The circled ones are those critical to your present project.

Once you have all this set, your button and LEDs will work as desired.

Best regards,

Bob

b5a70cd7f6b3e161b265d7481a0b843e.jpg
b5a70cd7f6b3e161b265d7481a0b843e.jpg
b5a70cd7f6b3e161b265d7481a0b843e.jpg-450x300.jpg
b5a70cd7f6b3e161b265d7481a0b843e.jpg-450x300.jpg
6ae2ae451457a92b70a709ad2b16e79a.jpg
6ae2ae451457a92b70a709ad2b16e79a.jpg
6ae2ae451457a92b70a709ad2b16e79a.jpg-300x300.jpg
6ae2ae451457a92b70a709ad2b16e79a.jpg-300x300.jpg
piero Reply
Dec 13, 2012 00:00

New problem to manage a function of the button ADAU 1701

Before every thing excused my errors of grammar

This small project ago a simple thing, the used bord is
EVAL-ADAU1701MINIZ
To the but it is present to the DAC2 a frequency of 10000 hZ and the led D5 is set in on
Pressing the pulsating S6 the led D5 is set in off and the led D6 is set in on, releasing
the button everything returns in the preceding condition.
Pressing in sequence or contemporarily the pulsating S4 and S6 the frequency changes
in exit to the DAC2 to 20000 hZ, this it becomes it happens in sequential way.
I have need to add 2 functions
1) Only pressing the pulsating S4 I have to set in off the led D5 and to set in on the led D6
and releasing the button this state has to be active for 2 minutes, then everything has to
automatically return to the precedent state.
2) If during this time he presses one any of the two buttons everything has to return to the
preceding state or led D5 on and led D6 off

I am learning to use SigmaStudio and I have some problem

Thanks

097a7e22d096ddcb86763aaced10c1f4.jpg
097a7e22d096ddcb86763aaced10c1f4.jpg
097a7e22d096ddcb86763aaced10c1f4.jpg-450x237.jpg
097a7e22d096ddcb86763aaced10c1f4.jpg-450x237.jpg
KJBob Reply
Dec 15, 2012 00:00

Piero,

Please test the attached circuit to see if it works as desired. Select any block and press F1 for help. Presently it uses 248 of the approx. 500 instructions available when operating at 96KHz.

Best regards,

Bob

piero Reply
Dec 16, 2012 00:00

HI Bob,

Everything perfectly works, you are a genius, thanks

Piero