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.

McASP1 Initialisation

Other Parts Discussed in Thread: OMAPL138

Hey,

i'm new in McASP programming. However i want to push a sine wave to the MCASP1.AXR1[0] Pin. I modified the evmc6747 example from spectrum digital slightly. The programm hung-up every time at this line:

/* Start by sending a dummy write */
while( ! ( MCASP1_SRCTL0 & 0x10 ) );  // Check for Tx ready

Can someone explain me my mistake, please?


The code is attached.

Best regards,

Michael

  • Michael,

     

      I'm not sure why the program is hanging. Are you using breakpoints? The McASP doesn't support emulation logic, so it could be triggering a condition that is not recoverable until a reset.

    The Spectrum Digital Code polls the McASP. You might want to look into the McASPEcho Program in the quickStartOMAPL1x_rCSL project for an example project that runs based off interrupts. It was written for the OMAPL138 EVM, but it gives another example of how to use the McASP,