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.

DSK 6713 and CCS v3.1

  

Kindly give some suggestions for the problems mentioned below::

The Input sinusoidal signal is of 50 hz [using function generator]

Uint32 fs=DSK6713_AIC23_FREQ_8KHZ;

Since the sampling frequency as mentioned in the above line  is 8khz  ,Does it mean that  160 samples per cycle of the input signal are being generated by dsk 6713 board in the function of input_sample()????

But for our application we just  need to deal with 12 samples per cycle.

Is resampling possible and how can we do it???

Also,for the code below::

short adc_in[12];

adc_in[12]=input_sample();

output_sample(adc_in[12]);

Does the above statement means that 12 samples at a time are being transferred as an output??

Also,Can the below code be used to convert a cycle in the form of  160 samples  to another cycles in the form of 12 samples????

float a[160];float adc_in[12];

a[160]=input_sample();

for(i=0;i<12;i++)
{
adc_in[i]=a[i*13];
}

Thanking you,

Yaashu

  • Hi Yaashu,

    I've forwarded this to the SW experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Yes, your understanding is correct. with 8 Khz, you will get 160 samples. Please note that AIC codec is mostly used for audio signals so the connector on the DSK6713 may be a stereo jack that converts an analog data into left and right channel I2S format data. you will need to only look at the left channel if you have a single channel on which you have data.

    Reduce the sample rate to 600 Hz to get 12 samples per cycle. you can use a tool called audacity to create test vectors before using the signal generator to confirm this understanding. Generate stereo and mono channel data and feed it into DSK6713 and interpret the ADC data that is received before you process it.

    Regards,
    Rahul
  • Thanks for responding  Rahul and shulev!!

    So, in simple words do I need to use input_left_sample() as my function so that only one channel is working at a time??? 

    And also,How should i set the sampling rate to 600Hz , as dsk board supports only 8Khz onwards??

    If I am wrong, kindly suggest me !!

    Thanking you,

    Yaashu

  • Also,for the code below::

    short adc_in[12];

    adc_in[12]=input_sample();

    output_sample(adc_in[12]);

    Does the above statement means that 12 samples at a time are being transferred as an output??

    Also,Can the below code be used to convert a cycle in the form of 160 samples to another cycles in the form of 12 samples????

    float a[160];float adc_in[12];

    a[160]=input_sample();

    for(i=0;i<12;i++)
    {
    adc_in[i]=a[i*13];
    }
    Kindly suggest something regarding the above mentioned problems also!!
    Thanking you,
    Yaashu