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.

TIWL1271 and MCBSP interface on OMAP3530EVM.

Other Parts Discussed in Thread: OMAP3530, AM3517

Hello Everyone,

 

We are planning to capture and playback bluetooth audio over MCBSP. I was referring to OMAP3530 EVM schematics and Technical Reference Manual. Tech Ref says Bluetooth devices should be connected to MCBSP3 (Page 2927) of OMAP3530 whereas in EVM schematics TIWL1271 bluetooth Audio lines are connected to MCBSP1.

Can anyone tell me is there any specific reason for this?

 

Regards,

Krunal Patil

  • Krunal

    The base functions of the each McBSP are the same. 4-pin synchronous TX/RX with 128x32 buffers

     

    McBSP1 also supports 6-pin mode and therefore able to support asynchronous transmit and receive.

    McBSP2 has additional 1024x32 audio buffers and SIDETONE core

    McBSP3 has a SIDETONE core

    MCBSP4 & MCBSP5 are standard 4-pin McBSPs

     

    So in reality, any McBSP can support Bluetooth voice data and McBSP2 &McBSP3 can support  Bluetooth voice data with SIDETONE.

      Paul

  • Paul,

    Thanks for the Reply. I was trying to record and playback audio over bluetooth (TIWI1271) using AM3517 EVM where TIWI1271 is connected to MCBSP3. Current AM3517 EVM driver (sound/soc/omap/am3517.c) does not support this functionality. 

    I figured out this functionality is supported by OMAP3EVM driver (where MCBSP1 is connected with TIWI1271). I took reference from OMAP3EVM driver and modified AM3517EVM driver so that it can capture data using MCBSP3 using TIWI1271. I configured MCBSP3 as slave and TIWI1271 as master. But there was no luck, I am not getting audio recording/playback interrupts however I can see audio control and data signals on scope.

    To create same scenario as OMAP3EVM I patched AM3517EVM hardware and connected TIWI1271 with MCBSP1, modified AM3517 driver to capture data from MCBSP1 and all started working.

    In our final design (customized board based on AM3517) we have connected TIWI1271 with MCBSP3. Can you please guide what can be the issue and Can you please provide me register settings required when TIWI1271 (master) is connected with MCBSP3 (slave)?

     

    --

    Regards,

    Krunal

     

  • Krunal

    The register settings for McBSP3 should be the same as McBSP1.  You issue may be due to incorrect pinmux settings. Make sure the in put is enabled for both MCBSP3_CLKX and MCBSP_FSX. Other changes will be to the DMA triggers (if used) and interrupts since they will now be sourced from a different mcBSP.

      Paul

  • Hello Paul,

     

    I verified PINMUX settings and they seems to be correct for MCBSP CLKX, FSX, DX and RX pins and CLKX and FSX are configured as input enable. I also verified the DMA channels that needs to be used as per datasheet and they are correct.

     

    --

    Regards,

    Krunal

  • Krunal

    Also check that the clocks (interface and functional) are enabled.

    IF you manually poll the IRQSTATUS register do you seen any indication of reception activity?

      Paul

  • Hello Paul,

     

    I have the interface and functional clock enabled from DEVCONF1 register. Do I really need functional clock too? My understanding says when MCBSP is used as Master functional clock is used for the Sample Generator module and has no meaning when MSBSP is used as Slave (my case). Though I have enabled both. Please let me know if my understanding is wrong.

    I will check IRQSTATUS register manually and get back to you.

     

    --

    Regardsm

    Krunal

  • Krunal

    Since the OMAP is a slave probably don't need the functional clock.

    I'm travelling over the next couple of days so responses may be delayed.

      Paul

  • Hey Paul,

    Good News!!!

    I am successful in recording as well as playing back bluetooth audio (using TIWI1271) over MCBSP3. Somehow clock pins direction were getting overwritten. Right now I have hardcoded them into am3517.c file. I will try to find out where is this happning.

    Thanks a lot for your support!!!!

     

    --

    Regards,

    Krunal

     

  • That's great news!

      Paul

  • Is the schematics of the omap3530 EVM available ?

    Brahim

  • Hi Krunal,

    I'm having an issue interfacing MCBSP3 to record voice data from MIC.I have made changes at the PCM level.I need to configure twl4030 to be a master and MCBSP as the slave.I know the changes that need to be made for the MCBSP3 registers but I don't know where and how the register changes have to be made.Could you please guide me through the changes as I'm a rookie in this field.

    thanking you,

    Adabala