Post Go back to editing

ADZS-SC589-MINI Sport Pins

Category: Software
Product Number: ADSP-SC589
Software Version: CCES 2.12.0
Good day, Sir or Madam.
 
My name is Dmytro, and I have an ongoing project that involves ADI parts, one of which is the ADSP-SC589
 
I have been struggling with this device for a while now since I cannot figure out how to use SPORT pins. I have asked the Application engineer responsible for this device for help but unfortunately, I still could not comprehend how to set up SPORT and use it for my project.
 
In short, I want to plug in the guitar into the Project Fin and send the guitar signal wirelessly to the ADF7242 as a receiver, using the other ADF7242 as a transmitter. ADF7242 and ADZS-SC589-MINI can communicate via SPORTs, while SPI is used by a microcontroller to communicate with the transceiver. 
 
I have looked through the 4,000 pages hardware manual of the SHARC, found many other links that speak about how SPORT is great but could never find how to actually implement it.
 
I am using the CCES to communicate with the DSP. And I have a Project fin connected. I soldered some wires on top of some of the DAI pins because that's where SPORT should be... 
I have previously installed the Bare Metal framework and was able to run the example code with 10 various guitar effects, it works perfectly fine.
However, I cannot find the SPORT configurations anywhere... I have previously been told to add these lines to my code:
void SPORT_FOR_ADF7242()
{
      *pREG_PADS0_DAI0_IE=(unsigned int)0x1FFFFF;
      *pREG_PADS0_DAI1_IE=(unsigned int)0x1FFFFF;

      SRU2(HIGH, DAI1_PBEN03_I);
      SRU2(HIGH, DAI1_PBEN04_I);
      SRU2(HIGH, DAI1_PBEN01_I);
      SRU2(LOW, DAI1_PBEN02_I);

      SRU2(SPT4_ACLK_O, DAI1_PB03_I);
      SRU2(SPT4_AFS_O, DAI1_PB04_I);
      SRU2(SPT4_AD0_O, DAI1_PB01_I);
      SRU2(DAI1_PB02_O, SPT4_BD0_I);

      SRU2(SPT4_ACLK_O, SPT4_BCLK_I);
      SRU2(SPT4_AFS_O, SPT4_BFS_I);
}
And then asked to do the following:
"When you configure the SPORT 4 as host to generate clock and FS you can probe the DAI1_PIN03 and DAI1_PIN04 signals to verify the outputs. Did you configure the SPORT also in your code? Only configuring SRU you won't see anything on the pins"

And that is something I do not understand how to do and something I cannot find any examples on...

I have only found some examples in ADSP-2156x_EZ-KIT-Rel1.0.1 (unrelated to my SHARC) and I am not sure that piece of code is portable to SC589...
Could you please clarify how to "configure SPORT"? And if necessary, how to route the AUDIO IN to SPORT?
 
Thank you very much in advance.

Thread Notes