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.

McASP underflow error handling

Other Parts Discussed in Thread: AM3359

Hi!

I'm using AM3359 with StarterWare library and managed to use McASP with DMA across Audio FIFO.

My question is what is the correct way to handle data underflow error? The reference manual says reset McASP but does not mention how to do that.

Is it enough to reset the TX side or the RX part must be reset too?
How can this reset be achieved? With the Global Control Register? I have tried that, wrote 0 to that register, re-initialize the McASP periphery but that does not help.
Should I use the Power, Reset and Clock Management (PRCM) module?

My goal is to recognize the underflow error and handle it without bother the receive side.
Is this possible?

Best Regards,
Balazs Ancsa 

  • Hi Balazs Ancsa,

    Resetting and re-initializing McASP is the correct way of handling of data underflow error.

    It is enough to reset the Tx side alone. No need to reset Rx part. 

    To reset the Tx part write '0' to the bit 'XSMRST' which is present in Global Control Register. After that reconfigure Tx part alone. This is enough to handle underflow error.

    Could you please cross check whether the reconfiguration of Tx side is proper.

    Regards,

    M.Jyothi Kiran