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

beep frequency

SigmaDSP & SigmaStudio ahafez May 9, 2013 00:00 1 replies Original on forum ↗
Subscribe
ahafez Question
May 9, 2013 00:00

Dears

how i can change beep frequency using general purpose input or via (logic operation )

like if (a>b) then beep frequency = 2000 Hz , if (a<b) then beep frequency = 1ooo Hz

Regards

ADIApproved Reply
May 9, 2013 00:00

Since the beep cell does not have a control input, you will need to use two beep cells and then use a logic cell to choose which one is output.

The AB In / CD Out Condition cell should help accomplish this.

https://wiki.analog.com/resources/tools-software/sigmastudio/toolbox/basicdsp/abincdoutcondition

You can compare a GPIO input to a static DC value and use that to select which beep to output:

You can also compare two arbitrary values and choose which beep to output:

These are just a few examples, but with the flexibility of SigmaStudio, you can create many options for logic-controlled or GPIO-controlled signal flows.

ca9a289734aa14c4015ff004235c00c7.jpg
ca9a289734aa14c4015ff004235c00c7.jpg
ca9a289734aa14c4015ff004235c00c7.jpg-217x63.jpg
ca9a289734aa14c4015ff004235c00c7.jpg-217x63.jpg
875d58b94c254284d8a50a472f5b65ff.jpg
875d58b94c254284d8a50a472f5b65ff.jpg
875d58b94c254284d8a50a472f5b65ff.jpg-368x299.jpg
875d58b94c254284d8a50a472f5b65ff.jpg-368x299.jpg
8d73c8e833db34b7d4a64a24cafbe03f.jpg
8d73c8e833db34b7d4a64a24cafbe03f.jpg
8d73c8e833db34b7d4a64a24cafbe03f.jpg-446x307.jpg
8d73c8e833db34b7d4a64a24cafbe03f.jpg-446x307.jpg