For my first project i have ADSP-21488 (100pin) and i need 16b bus and control lines.
I need to get sequence like this:
// Set Right Data
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.