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.

read codec(mic) help please....TMS320C6455 board

Other Parts Discussed in Thread: CCSTUDIO

Hi all,

im cenk. i want to just read mic in C6455 board. but i have some problems. in fact i can write codec(headphone), but i can't read mic in.

in order to write to codec i use (while (!DSK6455_AIC23_write32(hCodec, sinetable[sample]));)...sinetable is a array which is created before. and when i write codec with this function, i hear a sinus audio.

in order to read to codec i use (while (!DSK6455_AIC23_read32(hCodec, (Uint32 *)&data1));)... but i have some problems in this point.

i want to read mic in firstly, and then i want ro write to headphone to things which read..

 

  • The Board Support Library from Spectrum Digital that comes with the DSK6455 includes source for all of the library functions, plus some excellent examples. The examples may  not do exactly what you want, but they are very good to use as a starting point to get a known-working example running, then you can modify that to get what you need. It is very helpful to start with the known case.

    The default configuration used for most of the examples for the AIC23, as well as the labs we use in the TI Technical Training classes, generally use the Line In rather than the Mic In selection in the AIC23. This is easier for examples and labs since you do not have to be making sounds yourself into a microphone but can simply connect an MP3 player or your computer's headphone output to the Line In and have a continuous audio source for experimentation.

    I have said all this because my first suspicion is that you do not have the AIC23 fully configured the way you want to use it. My recommendations may be starting at a point you have already passed, but it could be helpful to start there. You will be able to judge that for your situation.

    Start with the "tone" example from the BSP files. On my system, these were installed at C:\CCStudio_v3.3\boards\dsk6455_v2\examples\tone . Tone is a good first project because it only requires a speaker so there are fewer places to have to debug at this point.

    The "dsk_app" example is the next one to try. This will be close to what you need for your case, but it will be moving data from the Line In to the Line Out through the AIC23 and the DSP. Once you have this working, you are very close to having your project completed.

    By examining the header file for the AIC23 (C:\CCStudio_v3.3\boards\dsk6455_v2\include\dsk6455_aic23.h), you will find constants that may indicate parameters to change to get the Mic In input selected instead of the Line In input. Since we do not have the exact example you want, it will be helpful to pull down the datasheet for the TLV320AIC23 so you can examine in detail the registers and the recommended methods to configure it. It may be worth a try to just change settings based on the example documentation and the header files, or you may want to study the datasheet to be certain what you are changing; and if hacking the example does not give you a solution quickly enough, the datasheet should have the information you need to get there.

  • Hi BrandonAzbell,

    Thank you for answer..  

  • Hi BrandonAzbell, Hi chenk

    my name is rifqi

    i have try this method

    but i'm still don't understand

    how we set the data input into the line in?

    because when i try to run "dsk_app", the speaker like have no sound

    please help me

    thx

  • Have you tried the 'tone' example? Do you get sound on the speaker from that? These examples should load and run on the EVM/DSK.