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.

C6748 MCASP 查询方法发送和接收,调试时不能暂停?



C6748 MCASP 查询方法发送和接收,调试时不能暂停,一暂停之后软件就会卡在" while (CHKBIT(MCASP->SRCTL12, XRDY)==0) {}"这句语句里?

硬件上ADC/DAC的LRCK/BCLK都是由MACSP产生,手头上没有示波器,不知道是否因为软件调试暂停之后MCASP就不能产生LRCK时钟信号,然后查询标志位就会卡住?

截图中的XDRY一直都没有至“1”,于是软件就卡住了

  • 不能暂停的,在手册上有说明。

    CAUTION
    The DSP does not support the emulation suspend signal. Therefore, if a data
    window is open in the Code Composer Studio™ integrated development
    environment to observe the XRBUF locations, the emulation read from the
    XRBUF locations causes an undesirable side effect of clearing the RDATA bit
    in RSTAT. Furthermore, if you write to the XRBUF through the Code Composer
    Studio™ integrated development environment, the emulation write to the
    XRBUF locations causes the XDATA bit in XSTAT to be cleared.


    http://www.ti.com/lit/ug/spruh79a/spruh79a.pdf