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.

how to configure mcbsp for PCM interface



Hi ,

 

I have a device having PCM interface and I want to connect this device to OMAP 3530 McBSP interface.

Can the OMAP 3530 McBSP support this configuration? 

If  yes then please let me now how we can configure and what are the McBSP register need to be configured for the same??

 

Thanks

Tauqueer

  • Tauqueer

    Yes, the McBSP does support PCM.

    The configuration really depends on the device you are interfacing too.  Things to consider are:

    - Word size
    - Justification
    - LR clock setting
    - Bit clock rate
    - Transmit clock edge
    - Receive clock edge
    - Bit delay (if any).

      Paul

  • Paul, 

    Thank you so much for your quick reply.

    PCM interface has following characteristic.

    -  Word size                                                            32-bit

    -  Bit clock rate                                                       2.048MHz
    - Transmit clock edge                                          +ve edge
    - Receive clock edge                                            +ve edge

    and I have a sync signal.

    PCMTX

    PCMRX

    PCMCLK

    PCMSYNC

    I have to connect these signals to McBSP.

    Please let me know how to proceed further for the connection.

    thanks

    Tauqueer

     

  • Tauqueer

    Check out the basic programming model in the TRM. That will guide you what to program.

    In addition, you could take a look at the example code I posted in another thread (http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/p/79759/292016.aspx#292016). That will give you some baseline to try and it also demonstrates the use of DMA.

    What device are you connecting to?

      Paul

  • Hi Paul,

    Thanks for your information..

    If I am using mcbsp2 for my pcm interface connetcion. I have few more questions related to McSP2 behavior.

    Detail of configuration of my mcbsp2.

    1. transmit and receive in master mode.

    2. frame length 32

    3. transmit and receive at posedge of clock.

    4. Word size

    5. Bit delay

    and other basic settings.

    I have one question here.

    Q1. Can mcbsp2 transmit data on Tx line at posedge of clock and receive data on Rx line at same clock edge at the same time??

     

    Thanks

    Tauqueer

     

     

     

     

     

  • Tauqueer

    Yes, you can transmit and receive using the same edge. However, it is better (and more common) to use opposite edges as this will give you half a clock period for hold timing.

      Paul