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.

MCBSP Protocol on TMS320F2833X

Other Parts Discussed in Thread: CONTROLSUITE

Hello Everyone,

                              Am new TI family. Am planning to work on MCBSP protocol. Because i want to exchange data between two DSP's.   Before that i want to tell you my requirement. So, that your inputs will be very helpful in building my project. So, i have stated them below. 

1. I will have my master DSP on one side and say 4 slave DSP's on the other side. My intention is to send the data to all the slaves at a single  time. Each Slave DSP will do one calculation. After calculation Slave DSP will send back the data to master DSP. Example.. Slave 1 DSP will do FIR operation. Slave 2 DSP will do FFT operation Slave 3 will do IIR algorithm and so on. So, this is my requirement.

In order to this what are the basic things i need to follow??

How well can i achieve this using MCBSP protocol??

Waiting for your inputs at the earliest!!

Thanks & Regards

Naveen Chandra

  • Naveen,

    I have seen your other thread/discussion with Gautam on this subject. I recommend following his suggestions of reading the User Guides and trying out the example codes for a better understanding of the module.

    That being said, I had a few questions/comments about the specifics of your post.
    - This looks like a reasonable requirement. You will need to be careful with how you implement this regarding the data flow between the various processors, it looks like you intend to have a single master and multiple slaves. Read up on that technique online to make sure you understand everything that will need to be done from a high level point of view.

    - You have a few options with the McBSP. There is Time Division Multiplexing, This is a multi-device bus. If all the MCUs on the bus have McBSP, this should be easy to implement, as all will have multichannel support and will ignore/accept the proper data. Here is an appnote on the subject from a colleague: www.ti.com/.../spra491a.pdf
    - Another option is using the SPI mode of the McBSP to control multiple slaves with independent chip selects. you can have all other lines tied together and the Master will control which Slave is active at any given time. Wikipedia has a decent writeup regarding the SPI protocol and ways to hook up multiple slaves.

    Do you have a hard requirement to use McBSP?
    What will the Slave DSPs be? (other F2833x devices?)

    I hope this gets you started.

    -Mark
  • Hi Mark,
    Thanks for your valuable input. Also, thanks a lot for understanding my requirement. I have answered to your queries. Please have a look and correct if am wrong at any point of time.

    --> Do you have a hard requirement to use McBSP?
    Yes, I do have very hard requirement to use McBSP.!!

    Below are the reasons to choose McBSP protocol

    1. It is Multi channeled serial protocol.
    2. It is faster.

    --> What will the Slave DSPs be? (other F2833x devices?)
    Ur absolutely right!! I will be having other TMS320F2833x DSP's as my slaves.


    Frankly Speaking reading the Entire Datasheet of McBSP protocol would be really difficult. So, if you suggest me any other ways to understand the protocol. Then, it would be really helpful.

    If you would like to add any more inputs regarding the same. Then, please provide the inputs. Your inputs will make me understand the protocol better. You guys are really doing a great JOB. Thanks a lot to you as well as Gautam.

    Waiting for your valuable inputs at the earliest!!!!

    Thanks & Regards
    Naveen Chandra
  • Naveen

    The McBSP is a relatively complex module to work with and requires a bit of hands on experience to fully understand its capabilities. I really do recommend that you read everything that you can on it including the F2833x McBSP UserGuide, and application note linked in my original reply. If you have any specific questions on things that you are having trouble with, please do not hesitate to post.

    The example code in ControlSuite is very useful. There are a few examples on how to start coding with the module itself. You can adapt them, change them, or throw them away if they do not suite your needs, but I strongly recommend at least looking at them and trying them out on an MCU.

    Again, if you do come across any specific issues or questions regarding the module functionality, don't hesitate to ask.

    Regards,
    Mark
  • Hi Mark,
    Thanks for your valuable inputs. I have already started reading the user guide. Am able to understand couple of things and in case if i have any difficulties i will definitely post my issues!!

    Thanks & Regards
    Naveen Chandra
  • Hi Mark,
    I didn't understand couple of points after reading the McBSP datasheet. Kindly go through it and give me your inputs!!

    1. What do you mean by Multi Channel Mode?? Datasheet says it has 128 Transmitter Channels and 128 Receiver Channels.. What exactly do you mean by that!!?? Can you explain me more about this???

    2. Also, I cannot use McBSP a SPI protocol because i cannot transfer the data to all the slaves at the same time.!! Which is best and fastest way of making use of this McBSP protocol??

    Waiting for your valuable inputs!!

    Thanks & Regards
    Naveen Chandra