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

GPIO Input to ADAU1701

SigmaDSP & SigmaStudio ShyamN Jun 14, 2011 00:00 2 replies Original on forum ↗
Subscribe
ShyamN Question
Jun 14, 2011 00:00

Hi,

I need to accept a TTL High / Low logic level on GPIO_2 on ADAU1701EVAL Board, and select either of two ADC inputs based on the received logic level. Is there a block in ADAU1701 toolbox that can do this?

Index Selectable Multiplexer block has a control input that can select either of two inputs connected to the block. However, this control input can be from Index Lookup Table, RMS Table or DC Input only. It is unable to take a GPIO_2 as input.

Thanks,

Shyam.

Audio Signal Processors

SigmaDSP Audio Processors

gpio

adau1701

ShyamN Reply
Jun 14, 2011 00:00

I used "AB in CD out" Condition Block to select either of two ADC inputs (C and D) by comparing GPIO_2 Input (A) with a DC Input (B).

-Shyam.

ADIApproved Reply
Jun 16, 2011 00:00

Hi Shyam,

Sorry I missed this question on Tuesday. I think this is a good approach. You could also do some signal scaling and turn that GPIO input value into an index, but in the end it will take the same number of instructions, so your approach ends up beind just as efficient.