This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMDSDSK6713: Confusions related to functions of AIC23 codec

Part Number: TMDSDSK6713
Other Parts Discussed in Thread: CCSTUDIO

Dear All

I am trying to learn about  dsp kit 6713 and AIC23 codec and i have came across an example program(code attached here in this question) but i am unable to understand functions related to AIC23 codec,i tried to google on this  topic but couldn't get much useful help

Please help me to understand,by sharing link of any webpage or document that discusses working of these functions realted to AIC23 codec especially the ones in below ones lines

Forexample what is the meaning & effect of following code lines and how are they working

DSK6713_AIC23_Config config

DSK6713_AIC23_CodecHandle hCodec;

hCodec = DSK6713_AIC23_openCodec(0, &config);

DSK6713_AIC23_setFreq(hCodec, DSK6713_AIC23_FREQ_8KHZ);

while (!DSK6713_AIC23_read(hCodec, &IN));

while (!DSK6713_AIC23_write(hCodec, OUT_L));

DSK6713_AIC23_closeCodec(hCodec);

#include<dsk6713.h>
#include<dsk6713_aic23.h>
#include<dsk6713_led.h>
#include<dsk6713_dip.h>
#include<math.h> // to configure codec
DSK6713_AIC23_Config config = {
0x0017, /* 0 - DSK6713_AIC23_LEFTINVOL Left line input channel volume */
0x0017, /* 1 - DSK6713_AIC23_RIGHTINVOL Right line input channel volume */
0x01f9, /* 2 - DSK6713_AIC23_LEFTHPVOL Left channel headphone volume */
0x01f9, /* 3 - DSK6713_AIC23_RIGHTHPVOL Right channel headphone volume */
0x0011, /* 4 DSK6713_AIC23_ANAPATH Analog audio path control */
0x0000, /* 5 DSK6713_AIC23_DIGPATH Digital audio path control */
0x0000, /* 6 DSK6713_AIC23_POWERDOWN Power down control */
0x0043, /* 7 DSK6713_AIC23_DIGIF Digital audio interface format */
0x0081, /* 8 DSK6713_AIC23_SAMPLERATE Sample rate control */
0x0001 /* 9 DSK6713_AIC23_DIGACT Digital interface activation */
};
void main(){
DSK6713_AIC23_CodecHandle hCodec;
Uint32 IN,OUT;
Uint16 OUT_L,OUT_R;
DSK6713_init(); // Initialize the DSK6713 board
DSK6713_LED_init();// Initialize the DSK6713 board leds
hCodec = DSK6713_AIC23_openCodec(0, &config); // Start the codec
DSK6713_AIC23_setFreq(hCodec, DSK6713_AIC23_FREQ_8KHZ); // Set codec frequency to 8KHz
while(1) {
/* Read 32 bit sample from the audio channel */
while (!DSK6713_AIC23_read(hCodec, &IN));
/*Typecasting */
OUT_L = IN;
OUT_R = IN;
/* Read 16-bit samples to right and left audio channel */
while (!DSK6713_AIC23_write(hCodec, OUT_L));
while (!DSK6713_AIC23_write(hCodec, OUT_R));
if(DSK6713_DIP_get(1)==0)
break;
}
/* Close the codec */
DSK6713_LED_on(1);
DSK6713_AIC23_closeCodec(hCodec);
}

  • Part Number: TMDSDSK6713

    Lets say,if we have

    DSK6713_AIC23_Config config = {
    0x0017, /* 0 - DSK6713_AIC23_LEFTINVOL Left line input channel volume */
    0x0017, /* 1 - DSK6713_AIC23_RIGHTINVOL Right line input channel volume */
    0x01f9, /* 2 - DSK6713_AIC23_LEFTHPVOL Left channel headphone volume */
    0x01f9, /* 3 - DSK6713_AIC23_RIGHTHPVOL Right channel headphone volume */
    0x0011, /* 4 DSK6713_AIC23_ANAPATH Analog audio path control */
    0x0000, /* 5 DSK6713_AIC23_DIGPATH Digital audio path control */
    0x0000, /* 6 DSK6713_AIC23_POWERDOWN Power down control */
    0x0043, /* 7 DSK6713_AIC23_DIGIF Digital audio interface format */
    0x0081, /* 8 DSK6713_AIC23_SAMPLERATE Sample rate control */
    0x0001 /* 9 DSK6713_AIC23_DIGACT Digital interface activation */
    };

    then 

    DSK6713_AIC23_openCodec(0, &config);

    What  is the meaning of this above instruction?especially the role of &config part?

  • Hello,

    Please only create one thread for your question. Multiple threads will not get a response any faster. I have combined your threads into one thread.

    Note that we only provide limited design support for TMS320C6713 as per the banner on the TMS320C6713 product page. So we will be limited in the assistance we can offer.

    Where did you get the code (and source code) you are looking at?

    It looks like there was at least some dsk6713 code packaged with CCStudio_v3.3 back in 2012, but I do not see any dsk6713 files in Code Composer Studio 10.2 (CCS). I am quickly going to pass this over to our CCS team to comment on which versions of CCS support TMS320C6713.

    Regards,

    Nick

  • Hello,

    All versions of CCS provide basic support C6713. But note that the C6713 has been deprecated in support for some time. For example, many C671x projects relied on DSP/BIOS, support which has also been deprecated in in recent years. The on-board XDS510 of the DSK is only support on CCS versions 8.3 or earlier. Much of the C6713DSK BSP code was provided and supported by a third party (Spectrum Digital) which is no longer available. CCS 3.3 does ship with some CSL files for the C6713. I believe this is that last version of CCS to ship with such files.

    Honestly, CCSv3.3 probably has the best support for C6713 and many of the more commonly known example projects are CCSv3.x project files.

    Hope this helps

    ki

  • Since the DSP code was not provided or supported by TI, I am not sure if there is much else we can do to help.

    As of June 7 2021, the spectrum digital website is still up at http://spectrumdigital.com/ . You might want to check their "Documentation and Drivers" page, and download anything that seems like it might be helpful. They do not indicate when they will turn the website off.

    Regards,

    Nick