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.

6455 question regarding DSK6455_AIC23_write

Hi,

I tried to implement a simple FIR Filter on the DSK6455 board. I used basically the configuration of the Tone example and modifed it.

It works properly, except for one thing i cant understand. To read a sample from the codec i use:

while (!DSK6455_AIC23_read32(hCodec, &sample));

which gives me the sample, but only of the right channel and the highest 16 bits are always zero e.g. sample=0x00001234.

now when i employ two functions like:

while (!DSK6455_AIC23_read32(hCodec, &rsample);

while (!DSK6455_AIC23_read32(hCodec, &lsample));

i get both right and left channel, again each highest 16 bits are zero.

My question now is how can i read the two channels with only one read function(one channel in highest and one in lowest 16 bit).

Thanks in advance,

Tim

  • Tim,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for interesting posts on similar topics.

    The most common need is what we provide solutions for, and in this case it is to give you one sample per function call, left or right. You can use the source for DSK6455_AIC23_read32 as an example for writing your own function to return two samples in a single 32-bit word.

    Please post your solution when you write it, so others will benefit from your good work.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.