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

Does anybody have an example of how to use/read a SPST in order to handle a multiplexer in Sigma Studio?

SigmaDSP & SigmaStudio ipalomera Sep 8, 2015 00:00 3 replies Original on forum ↗
Subscribe
ipalomera Question
Sep 8, 2015 00:00

Hello everybody, I am using the ADAU1701MINIZ with SigmaStudio, I have read the AN-951 regarding the use of hardware controls with GPIO pins, there are several example implementations of GPIO in software, but it is missing an example using SINGLE-POLE SWITCH INPUT, does anybody have an example of how to use/read a single-pole-single-throw switch in order to handle a multiplexer in Sigma Studio?

In advance thank you

Ivan

KJBob Reply
Sep 9, 2015 00:00

Hello Ivan,

Starting with Figure 1 from App Note AN-951, substitute your SPST switch for the pushbutton:

In SigmaStudio, go to the Hardware Configuration window and select the IC1 -- 1701 \ 1401 Register Control tab. All the MP pins default to GPIO digital inputs, so you're all set here. You could choose to invert the logic if desired (I didn't).

Your schematic might appear like this one. Here I'm using MP3, which is wired to the center pushbutton switch S3 on your Eval-1701MINIZ board. As shown this project selects between ADC input and a tone oscillator:

Perhaps the most important part (and the one we beginners often forget) is the Buffer Gate (labeled "Integer Buffer" above). What comes out of the GPIO into the schematic is a decimal value, either 0 or 1.000 . This 1.000 value is a binary 1 with 23 zeros following. The Multiplexers expect an integer input, where a "1" is just a binary 1 by itself. A decimal 1.000 is 2^23 times too large for the Mux! Thus, we need to convert decimal to integer when driving the Mux. The Buffer Gate performs this function.

Best regards,

Bob

f48f79598aead9cabed0b142dea28d8f.png
f48f79598aead9cabed0b142dea28d8f.png
f48f79598aead9cabed0b142dea28d8f.png-346x166.png
f48f79598aead9cabed0b142dea28d8f.png-346x166.png
a499eb91ed436a8db68dc36286f9e8bc.png
a499eb91ed436a8db68dc36286f9e8bc.png
a499eb91ed436a8db68dc36286f9e8bc.png-260x272.png
a499eb91ed436a8db68dc36286f9e8bc.png-260x272.png
595bbed84933f40dceaa802aab703980.png
595bbed84933f40dceaa802aab703980.png
595bbed84933f40dceaa802aab703980.png-543x288.png
595bbed84933f40dceaa802aab703980.png-543x288.png
ADIApproved Reply
Sep 9, 2015 00:00

Hi Ivan (and Bob):

There is new SigmaStudio Beta that will be released within the next week or two, that includes an algorithm for Routing signals. You can think of it as a digital patch bay. Using this new element can save a number of instructions and improve usability of complex designs. They will have Voltage control versions (Index selectable) as well as version where users can download the different routing coefficients from a uC.

Hope this helps and simplifies some of your designs.

Regards

Miguel

ipalomera Reply
Sep 9, 2015 00:00

thank you Bob, I will try it

Ivan