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 recovery from xrun

Hi,

We are using the Davinci DM6467 video processor for developing our system.

The mcasp is configured for playback for audio data.

Sometimes we do see that the Mcasp stops transmitting the reason for it can be seen from the txstat register that the XUNRN bit gets set.

Now as per the documentation of mcasp the way to recover from such situation is to reset Mcasp and initialize it again.

So my query is what is the way to reset mcasp for such cases.

Is it that we reset only the mcasp clocks via the GBLCTL register or is ther some other way to soft reset

Also I have written an irq for mcasp tx interrupt which will capture the underrun condition and reset the mcasp and start again. Is this implementation ok?

 

Thanks in advance

 

Regards

Mohammed Anwar