AnsweredAssumed Answered

DAI as Simple GPIO Input SRU Setup ADSP-21489

Question asked by epalaima on Jul 31, 2017
Latest reply on Aug 8, 2017 by Jithul_Janardhanan

Hi, I am attempting to set up GPIO inputs and outputs for a project using the ADSP-21489 (with the ADSP-21489 Ez-Kit Development Platform). After doing some reading it appears that setting up the DAI as a GPIO output is fairly simple and can be achieved as follows:



SRU (HIGH, PBENxx_I); // Set Pin Buffer Enable to High, Turning on Pin Buffer Output


Set Low / High:


SRU (LOW, DAI_PBxx_I); //Set Output Low

SRU (HIGH, DAI_PBxx_I); //Set Output High


I was then wondering how one might go about reading the input to a pin buffer. There is plenty of information on how to route the pin to any of various serial peripherals, but nothing so simple as simply setting up an input buffer that can be read as high or low. Can anyone tell me how to do this?


I am looking for something like this:


SRU (LOW, PBENxx_I); //Disable Pin Buffer Output

SRU(DAI_Pxx_O, ????????); //Connect Pin Buffer Output to some sort of simple input register

<-----Read Input register---->