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.

DM8148的MCASP2配置

  大家好:

       请问,在DM8148的音频通道中,MCASP2只有TX模式,请问如何配置可以把MCASP2变成RX模式?

                                                                                  谢谢!

  • 兄弟,我回答不了你的问题,只是想冒昧的问一下,你的mcasp0的寄存器(基地址0x48038000)能用uboot的md命令或仿真器访问到么?我的不行啊。。。mcasp2的倒是可以访问到

  • 我的是可以的,默认的能够打开mcasp0,通过打印可以观察到对相关寄存器进行配置。

  • fengfei lv 说:

      大家好:

           请问,在DM8148的音频通道中,MCASP2只有TX模式,请问如何配置可以把MCASP2变成RX模式?

                                                                                      谢谢!

    你好,

    你能再确认一下么?你说的和下面的信息不一样。

    http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#Audio_driver_.28McASP.29

    TI816x/TI814x use McASP2 (Serializer 0 for Tx and Serializer 1 for Rx) to communicate to the AIC3106 codec on the base EVM.

  • 你好:

         不一样,把MCASP1和MCASP2对比,在MCASP1中,MCA1_ACLKR和MCA1_ACLKX;MCA1_AFSR和MCA1_AFSX;capture和playback是分开处理的。而在MCASP2中,只有MCA1_ACLKX和MCA1_AFSX,我要进行capture时,需要对哪些寄存器进行配置?我根据文档尝试配置,但是capture出错,提示:read from audio interface failed (Input/output error);我用示波器测量给8148的bclk和fs的时钟频率时正确的。谢谢!

  • 你好,

    如果没有单独的接收同步和时钟引脚,你需要使用SYNC模式,请配置寄存器ACLKXCTL.SYNC=0。另,接收的时候必须同时有发送操作。

    6 ASYNC Transmit/receive operation asynchronous enable bit.
    0 Synchronous. Transmit clock and frame sync provides the source for both the transmit and receive
    sections. Note that in this mode, the receive bit clock is an inverted version of the transmit bit clock.
    1 Asynchronous. Separate clock and frame sync used by transmit and receive sections.

  • 你好:

          你说的“接收的时候必须同时有发送操作”,我可以理解为MCASP2通道必须为编码和解码需要同时进行才可以?即使没有解码的输出,也要去操作。

  • 你好:

            接收的时候必须同时有发送操作,这个发送的操作可以具体一下吗?