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.

help with c6713 for echo_control and fir4types project

Hi there,

    This semester we got to work with CCS5 for DSK6713 boards.

     I am using CCS v5.2. I have installed the board using the disk provided in the box. was able to successfully upload and run program called sin8_LED provided by disk in the book "Digital Signal Processing and Applications with the C6713 and C6416 DSK". But when I try to run the example of Echo_control and fir4Types, I find no output.

I added all the required  C files (namely dsk6713init.C, echo_control.C, Vector_intr.C) library files(rts6700, csl6713, dsk6713bsl, dsk67xx) & header files (dskc6713.h, dsk6713_aic23.h).

I have also changed the input to from line_in to  Mic_in. And also changed the the predefined processor as CHIP_6713.

When I build the projects  I do not get any errors just a warning about function declared implicitily.

But after I load the program to the board it does not show required output.

I have attached the screen shot of my projects below,

I have attached gel files for both the projects,

//echo_control.gel
menuitem "echo control"
slider gain(0,18,1,1,gain_parameter)
{
  gain = gain_parameter*0.05;
}
slider delay(1,20,1,1,delay_parameter)
{
  buflength = delay_parameter*100;
}
/*FIR4types.gel Gel file for 4 different filters: LP,HP,BP,BS*/
menuitem "Filter Characteristics"
slider Filter(0,3,1,1,filterparameter) /*from 0 to 3,incr by 1*/
{
FIR_number = filterparameter;     /*for 4 FIR filters*/
}

Please let me know if you need any further details and help me solve this issue.

Thanks and Regards,

Vanitha

  • Hi Vanitha,

    Would you please tell us the name of the TI package which encloses this source code or the webpage from which you downloaded the source code? If you try out the source code which is given in the text book, forum community members cannot validate it. ( They may not be aware of the text book you are using right?... It may not be possible to identify the problem to help you) It is good to start with some officially released software packages.

    You can download the working example code for DSK C6713 from this link: http://c6000.spectrumdigital.com/dsk6713/revc/

    From your first snapshot, I do not see any output files generated after your build completion.

     

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi Shankari,

    Thank you for your response. I have downloaded the files from http://e2e.ti.com/group/universityprogram/educators/f/776/t/223996.aspx  ...post from Donald.

    And the projects have been downloaded from the book cd-rom shown below.

    http://www.amazon.com/Processing-Applications-TMS320C6713-TMS320C6416-ebook/dp/B006C2C14I

    I have attached the c and gel files for both the projects below,

    //echo_control.gel

     

    menuitem "echo control"

     

    slider gain(0,18,1,1,gain_parameter)

    {

      gain = gain_parameter*0.05;

    }

     

    slider delay(1,20,1,1,delay_parameter)

    {

      buflength = delay_parameter*100;

    }

    //echo_control.c echo with variable delay and feedback

    #include "DSK6713_AIC23.h"                    // codec support

    Uint32 fs=DSK6713_AIC23_FREQ_8KHZ;          // set sampling rate

    #define DSK6713_AIC23_INPUT_MIC 0x0015

    #define DSK6713_AIC23_INPUT_LINE 0x0011

    Uint16 inputsource=DSK6713_AIC23_INPUT_MIC; // select input

     

    #define MAX_BUF_SIZE 8000       // this sets maximum length of delay

    float gain = 0.5;

    short buflength = 1000;

    short buffer[MAX_BUF_SIZE];     // storage for previous samples

    short input,output,delayed;

    int i = 0;                      // index into buffer

     

    interrupt void c_int11()          // interrupt service routine

    {

      input = input_left_sample();  // read new input sample from ADC

      delayed = buffer[i];          // read delayed value from buffer

      output = input + delayed;     // output sum of input and delayed values

      output_left_sample(output);    

      buffer[i] = input + delayed*gain; // store new input and a fraction

                                    // of the delayed value in buffer

      if(++i >= MAX_BUF_SIZE)       // test for end of buffer

        i = MAX_BUF_SIZE - buflength;

      return;                       // return from ISR

    }

     

    void main()

    {

      for(i=0 ; i<MAX_BUF_SIZE ; i++)   // clear buffer

        buffer[i] = 0;

      comm_intr();                  // init DSK, codec, McBSP

      while(1);                     //infinite loop

     

    /*FIR4types.gel Gel file for 4 different filters: LP,HP,BP,BS*/

     

    menuitem "Filter Characteristics"

     

    slider Filter(0,3,1,1,filterparameter) /*from 0 to 3,incr by 1*/

    {

           FIR_number = filterparameter;     /*for 4 FIR filters*/

    }

     

    //Fir4types.c  Four FIR filters: Lowpass, Highpass, bandpass, Bandstop

     

    #include "DSK6713_AIC23.h"

    Uint32 fs=DSK6713_AIC23_FREQ_8KHZ;

    #define DSK6713_AIC23_INPUT_MIC 0x0015

    #define DSK6713_AIC23_INPUT_LINE 0x0011

    Uint16 inputsource=DSK6713_AIC23_INPUT_LINE; // select line in

    #include "lp1500.cof"                     //coeff file LP @ 1500 Hz

    #include "hp2200.cof"                     //coeff file HP @ 2200 Hz

    #include "bp1750.cof"                     //coeff file BP @ 1750 Hz

    #include "bs790.cof"                      //coeff file BS @  790 Hz

    short FIR_number = 0;                      //start with 1st LP filter

    int yn = 0;                                     //initialize filter's output

    short dly[N];                              //delay samples

    short h[4][N];                             //filter characteristics 3xN

     

    interrupt void c_int11()                  //ISR

       {

          short i;

     

          dly[0] = input_left_sample();              //newest input @ top of buffer

          yn = 0;                              //initialize filter output

          for (i = 0; i< N; i++)

                yn +=(h[FIR_number][i]*dly[i]); //y(n) += h(LP#,i)*x(n-i)

          for (i = N-1; i > 0; i--)            //starting @ bottom of buffer

                dly[i] = dly[i-1];            //update delays with data move

          output_left_sample(yn >> 15);       //output filter

          return;                                  //return from interrupt

       }

     

    void main()

    {

          short i;

          for (i=0; i<N; i++)

             {

                dly[i] = 0;             //init buffer

                h[0][i] = hlp[i];             //start addr of lp1500 coeff

                h[1][i] = hhp[i];             //start addr of hp2200 coeff

                h[2][i] = hbp[i];             //start addr of bp1750 coeff

                h[3][i] = hbs[i];       //start addr of bs790 coeff

             }

        comm_intr();                //init DSK, codec, McBSP

        while(1);                       //infinite loop

    }

    please do let me know if any details required.

    Thanks and Regards,

    Vanitha

  • Hi vanitha,

    Instead of example from the text book, would you please try out the working example code for DSK C6713 from this link: http://c6000.spectrumdigital.com/dsk6713/revc/ and let us know how it goes.

     

    Regards,

    Shankari

     

  • Hi Shankari,

    Thank you for your reply. When I opened the link, I downloaded the target code . But it has lots of folders, could you please tell me which one do I chose ?

    And for our lab we have to use the book examples since that's our syllabus.

    Thanks,

    Regards,

    Vanitha