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.

need Audio code for c6713 dsk

hi everybody,

          I am trying to implement audio in/out using mcbsp in ccs 3.1 first, i initialized codec, and set freq, and read data's through mcbsp. But, i am unable to hear my voice. the code is,

  #include "imagescfg.h"
#include "dsk6713.h"
#include "dsk6713_aic23.h"
DSK6713_AIC23_Config config={0x0017,0x0017,0x00d8,0x00d8,0x0000,0x0000,0x0011,0x0043,0x0081,0x0001};
/*void main()
{
    DSK6713_AIC23_CodecHandle hcodec;
    int l_input,r_input,l_output,r_output;
    DSK6713_init();
    hcodec = DSK6713_AIC23_openCodec(0, &config);
    DSK6713_AIC23_setFreq=DSK6713_AIC23_Freq_48KHZ;
        while(1)
            {
                while(!DSK6713_AIC23_read(hcodec,&l_input));
                while(!DSK6713_AIC23_read(hcodec,&r_input));
                r_output=r_input;
                l_output=l_input;
                while(!DSK6713_AIC23_write(hcodec,l_output));
                while(!DSK6713_AIC23_write(hcodec,r_output));
            }
                DSK6713_AIC23_closeCodec(hcodec);
            }

also, what configuration. is that right  or need to modify?  please, suggest some ideas friends.

 suggestions will be greatful.

regards,

chinny

  • Chinny,

    The DSK6713 comes with examples to do simple audio pass-through. Please start with one of those so you will start with something that is known to work well. Check all board settings and connections to make sure everything is correct.

    Also, you can go to the TI Wiki Pages and search for "C6713 training" (no quotes) to find online training material from one of our archived workshops. The online material includes labs and solutions that do audio input/output.

    Please reply back to let us know if you find adequate information, or if you have further problems with these examples.

    Regards,
    RandyP