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.

beginners doubt on mcbsp

Other Parts Discussed in Thread: PCM3002

I have a couple of doubts regarding the mcbsp.

1.  Suppose I need to send data from the pcm3002 to the 5416 via the mcbsp. The processor needs data parallely right? How can mcbsp which is a serial port transfer data parallely?

2. What is the meaning of - " the mcbsp has 128 channels"? 

3. there are 3 mcbsps for 5416.  by 3 mcbsps, is it implied that there are 3 mcbsp ports?  

  • naveen francis said:

    I have a couple of doubts regarding the mcbsp.

    1.  Suppose I need to send data from the pcm3002 to the 5416 via the mcbsp. The processor needs data parallely right? How can mcbsp which is a serial port transfer data parallely?

    No, the McBSP is a synchronous serial interface.

    There is an application note on the PCM3002 Product Folder that discusses the PCM3002 connected to a TMS320VC5416.

     

    naveen francis said:

    2. What is the meaning of - " the mcbsp has 128 channels"? 

    The McBSP can support a Time Division Multiplexed use of the serial interface, which can support up to 128 channels where each channel is given a slot of time.
    The TMS320C54x DSP Enhanced Peripherals Reference Guide (SPRU302) provides more detail on the McBSP interface.

     

    naveen francis said:

    3. there are 3 mcbsps for 5416.  by 3 mcbsps, is it implied that there are 3 mcbsp ports?  

    Yes, there are 3 instances of the McBSP peripheral interface on the TMS320VC5416.

  • Hi,

     

    I went through the documents you pasted in your reply. But I still dont understand how data reaches a processor through serial interface when it needs it parallely. Am I missing out something about "synchronous serial interface"?

  • Hi Naveen,

    naveen francis said:
    But I still dont understand how data reaches a processor through serial interface when it needs it parallely

    I'm not sure if we understand your question. As Brandon stated, McBSP is not a parallel interface.

    The McBSP interface controller inside the DSP gets the serial data from the interface and takes care of it.

    Please see page 29 of the:

    TMS320C54x DSP Enhanced Peripherals Reference Guide

  • Mariana,

     

    I have connected a mic to the 5416 DSK. Now, I need to get data coming from the pcm3002 codec to the processor. My question is, can the data from pcm3002 get to the processor via mcbsp? If so, does the data come serially? Is there any other way I can get data from the codec to the 5416?

  • naveen francis said:

    My question is, can the data from pcm3002 get to the processor via mcbsp?

    Yes.  The connection between the PCM3002 and the C5416 would be with the McBSP interface.

     

    naveen francis said:

    If so, does the data come serially?

    Yes.  The PCM3002 communicates with an external processor via a serial connection.  This connection is LRCIN, BCKIN, DIN, DOUT on the PCM3002.

     

    naveen francis said:

    Is there any other way I can get data from the codec to the 5416?

    No.

  •  

    Brandon,

     

    Thankyou for the reply. So if I want to send data from the pcm3002 to the 5416, first I set values for the four control registers for the pcm and then I go to dsp/bios, choose the 5416, goto CSL, insert a new mcbsp port, go to properties and fill values for the spcr[1-2], pcr and so on right? Is this all that has to be done for communication between the 5416 and pcm?

     

    thankyou

  • I would say it is that simple, but at a high level, you have the concepts.

    There are some CSL examples for the McBSP on the C5416 that you could reference, including using DSP/BIOS.

    This would give you an idea of the configuration of the registers, or at least how to do it.

  • If you are talking about the Left and Right channel... the mcbsp2 receives left and right channel data alternately...