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.

Accessing McASP audio sample data on LCDk6748 using Starterware

Other Parts Discussed in Thread: TMS320C6748, OMAPL138

Hi ti,

I am part of a team of undergrad computer engineering students working on a senior design project.  Our project is to make a device that will shift the pitch of an incoming audio signal in real time.  We are using the TMS320C6748/LCDK6748 development board as our platform.  Using the McASP demo code provided in the Starterware package, we have a streaming audio demo that sends the input audio signal to output.

We're looking for help accessing the actual sample data in order to manipulate it with the functions we've written.  Starterware takes the incoming sample data and stores it in an Rx buffer.  That buffer is then copied to a Tx buffer that is sent to the audio codec/DAC for reconstruction.  We need to extract the sample data from the Rx buffer data structure and manipulate it before memcopy transfers it to the Tx buffer

Starterware uses macros for all of the McASP functions, so I haven't been able to trace the code back to the point at which the buffer is actually loaded.  I've been able to follow it as far as these two lines:

/* Activate the state machines */
McASPRxEnable(SOC_MCASP_0_CTRL_REGS);
McASPTxEnable(SOC_MCASP_0_CTRL_REGS);

How can I get at this data?



  • Keiran,

    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 (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com).

    Moved this thread to correct forum for faster response. Thank you for your patience.

  • Hi Keiran,


    /* Activate the state machines */
    McASPRxEnable(SOC_MCASP_0_CTRL_REGS);
    McASPTxEnable(SOC_MCASP_0_CTRL_REGS);

    How can I get at this data?


    In the starterware package , their is a drivers directory. In that directory you will find mcasp.c file which is having definition of above mentioned API's.
  • Hi,

    Thanks for your post.

    For Starterware McASP configuration programming, you could refer the below wiki:

    http://processors.wiki.ti.com/index.php/StarterWare_McASP

    The McASP starterware audio loopback example demonstrates audio input and output in I2S mode using DMA. The audio input on the LINE IN is looped back to the audio ouput on LINE OUT of the EVM. Before running the application, connect an audio source to the LINE IN connector and speakers or headphones to the LINE OUT connector. While the application runs, audio is piped from LINE IN to LINE OUT

    http://processors.wiki.ti.com/index.php/StarterWare_Audio_Application

    and the source definition for the above mentioned API's can be traced at the below path:

    ~\ti\OMAPL138_StarterWare_1_10_04_01\drivers\mcasp.c

    Thanks & regards,

    Sivaraj K

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

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

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