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.

Using the Microphone and Speaker on the LCDK 6748

Hello,

I am working with the LCDK 6748 and want to record a message using the microphone and play it back over the speaker(line out), I have found code in the starter ware on how to make the speaker work in a loop and using the demo tone provided can make the speaker produce the tone in a loop. I cannot find anything on the microphone

This leads me to a few questions:

1) Is there code in the starter ware that allows me to use the microphone?

2) How can the loop that plays the tone to the speaker be taken out of a loop and just play the data once?

I know that all of this is possible but with little documentation that I have been able to found outside of the starter ware examples on actually using the different peripherals and now I am stuck. Any assistance would be great.

Eric

  • Hi Eric,
    I think, we have a example to loopback from LINE IN to LINE OUT but not from MIC.
  • Hi Eric,

    Thanks for your post.

    By default, in the c6748 LCDK starterware code, AIC3106 codec is not configured for MIC3L/R which is not connected to the left and right ADC input, instead, it is connected from LINEIN to left and right ADC. Incase, if you need to configure the AIC31 codec for MIC input, you need to modify the codec register to be configured appropriately for MIC input in the starterware example code. Please refer the AIC3106 codec data sheet to configure the below API's for the MIC input  in the starterware example code snippet:

     /* MIC3L/R is not connected to the left ADC PGA */

       CodecRegWrite(baseAddr, AIC31_P0_REG17, 0xFF);

       /* MIC3L/R is not connected to the right ADC PGA */

       CodecRegWrite(baseAddr, AIC31_P0_REG18, 0xFF);

    So, please check for codec registers AIC31_P0_REG17, AIC31_P0_REG18 to configure for MIC input from the AIC3106 codec datasheet as below:

    http://www.ti.com/lit/ds/symlink/tlv320aic3106.pdf

    Please check for the McASP audio loopback example .ccs project path with LINEIN configured as default as below;

    ~\Texas Instruments\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\build\c674x\cgt_ccs\c6748\lcdkC6748\mcasp

    To configure for MIC input for C6748 LCDK starterware example code, please check for the above mentioned codec register API's from the aic31.c source file on the below path:

    ~\Texas Instruments\pdk_C6748_2_0_0_0\C6748_StarterWare_1_20_03_03\examples\lcdkC6748\mcasp\aic31.c

    Thanks & regards,

    Sivaraj K

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

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

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