AnsweredAssumed Answered

16b bus from Digital Applications Interface

Question asked by Kilohercas on Jun 26, 2013
Latest reply on Aug 6, 2013 by Harshit.Gaharwar

Hello,
For my first project i have ADSP-21488 (100pin) and i need 16b bus and control lines.
I need to get sequence like this:

    //CS LOW                 

    //RS HIGH  

    // Set Right Data

    //WR LOW

    //WR HIGH  

    //CS HIGH

 

Idea to use FLAG0 as CS, FLAG1 as RS, and FLAG 2 as WR.
To enable that in c i should just make asm("bit set flags FLG0O|FLG1O|FLG2O;"); ? (PLL already configured for 400MHz clk )
and use set and reset commands to set levels like:

asm("bit clr FLG0;"); //CS LOW
ams("bit set FLG0;");//CS HIGH
But i get error that "Illegal instruction. Value expression in bit instruction must be integer type and not symbolic" hwo to fix taht, and so i need aditional c code to make it work ?


And most important question, how i can set 16b integer to DAI 1-16 pins , i really don't want to set each pin to right bit value, it will be just stoo slow for my project.
Can anyone show sample how to do that in C (config and set data to pins 1-16 to " i " value) ? that would be very helpful.

Attachments

Outcomes