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.

unable to read & write samples in dsk6713 for real time signal



hi ,

i am trying following code for just reading and writing samples , in ccs3.1 on dsk6713..

i am giving 1khz ,1v sin wave as input from function generator...

checking output at oscilloscope

code is error free ...but output is not coming......

what can i do?

how can i see the output....

#include <stdio.h>

 #include <dsk6713.h>

 #include <dsk6713_aic23.h>

 #include "aic_32bit_io.h"

DSK6713_AIC23_CodecHandle hAIC23_handle; union{ unsigned int sample32bit; }input, output;

void main() { int i=0; float frm[220]; DSK6713_init();

hAIC23_handle=DSK6713_AIC23_openCodec(0,&config); DSK6713_AIC23_setFreq(hAIC23_handle, DSK6713_AIC23_FREQ_8KHZ); MCBSP_config(DSK6713_AIC23_DATAHANDLE,&AIC23CfgData); MCBSP_start(DSK6713_AIC23_DATAHANDLE, MCBSP_XMIT_START | MCBSP_RCV_START | MCBSP_SRGR_START | MCBSP_SRGR_FRAMESYNC, 220);

while(1)

 { while(!DSK6713_AIC23_read(hAIC23_handle, &input.sample32bit));

 while(!DSK6713_AIC23_write(hAIC23_handle, output.sample32bit));

 }

}

  • Ankit,

    ankit kumar1 said:
    code is error free ...but output is not coming......

    If the former is true and the latter is true, then you have a hardware problem. It is unlikely that you have a hardware problem, so we have a tough situation here.

    To validate the hardware, the board vendor supplies example programs that exercise various parts of the board, including the input and output functions. And our online training classes also include examples. Go to the Wiki and search for "C6713 training" (no quotes). But the examples that come with the CSL and the BSL (from the board vendor) are also good.

    Once you have validated your hardware, you will also have a working source code file to copy for your use. Did you start from some known working example code for this project?

    What do you expect your two 'union' variables to do for you?

    Is it possible to write the code with different formatting so it is easier to read through? The forum editor is not always the friendliest, but it does have the Paste from Word button that helps in some cases.

    Regards,
    RandyP