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

Triggering on Power Up?

SigmaDSP & SigmaStudio mtbrider405 Apr 29, 2011 00:00 7 replies Original on forum ↗
Subscribe
mtbrider405 Question
Apr 29, 2011 00:00

Is there any way to trigger an action on power up only? I want to making an action take place only at power up and then never again until the next power up.

Thanks for any help,

Jason

ADIApproved Reply
Apr 29, 2011 00:00

Are you using self-boot? If so, you can use the manual EEPROM generation method and put your own custom write commands at the end of the sequence.

mtbrider405 Reply
Apr 29, 2011 00:00

Yes I am using self boot. Just need to be able to have the program know when power up happens, do somthing then and never again.

Any way to squecne different piecs of code? Like I want to have an initiallization step then run the main code until powerdown.

-Jason

ADIApproved Reply
Apr 29, 2011 00:00

Within SigmaStudio this would be tricky. The core is really meant for audio flow-based processing, not sequenced steps.

You could possibly put something together using cells from the logic library (one shot, zero cross detect, toggle, etc...) along with index selectable multiplexers to get some kind of sequenced processing together, but the core wasn't really designed to do that so it's not intuitive or easy.

I thing the EEPROM write sequence is probably your best bet.

For example, if you wanted a chime generator to activate on power up and never again, you could just include the chime activate command as the very last step in the selfboot sequence.

mtbrider405 Reply
May 3, 2011 00:00

Hey Brett, any way you could give me a couple of examples of what a custom write command would look like in the Sequence window.

I understand to right click and add write command, but I don' t understand how I find out what to write in the boxes of that new write command based on what I want to do.

This could be VERY helpful to me so any help you have would be much appreciated.

Thanks,

Jason

ADIApproved Reply
May 3, 2011 00:00

It's actually easier to do the following:

Clear the capture window.

Link-compile-download your project.

Click-drag the contents of the capture window to the sequencer window, as explained in the link I posted above.

Clear the capture window again.

Now, click the controls in the schematic tab to make them do what you want. For example, if I wanted to turn on a sine tone, I would click its checkbox so it turns on.

The write commands associated with this action will appear in the capture window.

Click-drag those write commands over to your sequencer window so they come at the end of the sequence you created.

Now follow the steps in the link above to export the EEPROM file and download it to your EEPROM.

mtbrider405 Reply
May 5, 2011 00:00

Thank a lot Brett. That makes total sense. I'll give it a go!

-Jason

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