I'm using the demo code attached below for ADSP SC589 ez board, and I got the required audio output. But, I'm unable to understand the pin configuration for audio IO (J16 and J6 on ADSPSC589 ez kit). From the schematic of ADSPSC589 ez board. I've figured out that J16 connectors (RCA outputs) are connected to few DAI pins on P1B and P3A connectors on ez board. That is DAI1_PIN01 - SPORT2-CLK etc. I'm unable to understand how the pins are configured in CCES example (demo code). I'm not sure where to look. Is it in fw_audioIO.c or sport.c or adi_ss_smap.h file? Kindly help with the pin configuration for RCA connectors.
Hi Sourab,In order to assist you better on this, can you please confirm that are you referring sigmastudio for SHARC examples or CCES examples. Regards,Anand Selvaraj
This demo example is from the target folder inside SigmaStudio for sharc (4.20).
Hi Anand Selvaraj, please reply. I've downloaded SPORT loopback and SPORT I2S CCES codes from this forum and i found out that sruSC589 file is missing in my demo code. In my demo code, I found few DAI pin macros in smap.h file, but I'm not sure if they are DAI0 or DAI1 and how these values are assigned. I'm not able to figure out out how/which pins are assigned as input/out and how the audio passes from J6 to J16 of SC589 ez kit. I've gone through the audioIO.c and sport.c fw files in the demo code but, i've seen the functions inside those codes being used anywhere. So, Please help me with this. Thank you.
I recommend you to go through hardware schematic for hardware components (ADC, DAC) and how the connection made with ADSP-SC589 processor. Also refer SigmaStudio framework support documents available in "C:\Analog Devices\SoftwareModules\SigmaStudioForSHARC-SH-Rel4.2.0\Docs" folder. If you need any help on Demo application project you can refer CCES help page. For example if you need information regarding Signal routing that you are looking for, simply search "SRU" in CCES help page. I have prepared simple document related to ADSP-SC589 Ez kit hardware and Software framework sequence for your understanding. I hope this document may help you how the audio signal flow from RCA to ADSP-SC589 processor. The DAI pin connected to ADC and DAC configured through "system.svc" file of Demo application project (SS_App_Core0).The SRU routing configuration shown in "system.svc" is default one and it can be modified based on input from SigmaStudio host.The SPORT configuration for I/O from ADC or DAC configured in SigmaStudio schematic IC control framework configuration window.
Thank you! The document that you have given has helped me a lot. But there are few queries left-
1) The direction of the DAI pins provided by you are different compared to how they are represented in schematics. The schematic shows pin 1 & pin 5 from ADSP amd the rest of the pins to ADSP; while the table shows pin 6 & 7 to ADSP and the rest are from ADSP.
2) For the SPORT configuration which can be done in framework configuration window in SigmaStudio schematic IC control hardware configuration, can i use any SPORT from B-data DAI1 group in DAI1 routing capabilities table shown below? Also, since schematic shows DAI1_PINxx connected, we have to go for DAI1 routing, right?
3) I've downloaded few audio_passthrough codes from net for reference and I've noticed that they have SRUSC589.h file and another frontend dsp.c file where for example, ping-pong (I'm not sure what this is yet) values are being transferred to ADC and DAC array and other frontend operation takes place.
My main question is - I'm unable to find these files in the demo example for sigmastudio for sharc, but somehow the input is taken, goes to the processor and some operation takes place (gets amplified in sigmastudio) and the output comes across RCA. How and where does this happen?