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 Tx/spi



I am using the McBSP0 of my C6748. I use the DIO/SIO interface to receive and transmit data, but this is not working at the momen. I have some question:

- I want to make a kind of SPI bus, is this possible using the mcbsp in the McBsp mode, synchronize data in/out? Or is the SPI master mode supported on the C6748?

- I want to transmit data streams of 96 bytes (between every Frame Select), do I have to use the Multichannel option? I created one SIO_OUTPUT stream but it seams that this is only channel 0, the rest stays high impedant?

- Could someone explain the partitioning? It is not realy clear.

I hope someone could help me, thanx

  • The three documents you need to use for understanding this operation are the datasheet, the McBSP User's Guide, and the SPI User's Guide. Please let us know if you do not have access to these documents.

    The datasheet will itemize the available peripherals, which include a set of 2 McBSP ports and a set of 2 SPI ports. The SPI ports are what you will want to use to implement a SPI master interface.

    It is not easy to find, but if you search the McBSP UG for "SPI", you will find a short section 2.10 that says "The McBSP on this device does not support the SPI protocol."

    The SPI UG explains how to use that peripheral.

    RS said:
    I want to transmit data streams of 96 bytes (between every Frame Select), do I have to use the Multichannel option?

    Multi-channel is not required for this. You can use single-phase operation with 96 elements of 8-bit width.

    I agree that the McBSP UG can be hard to understand. It is very complete, and there are a lot of capabilities that can be programmed and used. So all of this gives you an 80+ page document with many sections describing many features. If the SPI ports do not accomplish what you want, but you still require the 96 bytes per FS, I recommend that you start with the McBSP UG Section 2.5.5 "Data and Frames" to understand the basic operation.

     

    If this answers your questions, please click  Verify Answer  on this post; if not, please reply back with additional questions or point us to where you have questions in the documentation.

  • Can I synchronise the SIO_INPUT and SIO_OUTPUT when using the McBSP in McBSP mode?

     

    If I use the McBSP in SPI master mode, can I use the streams (SIO) to transceiver data? Is this also possible in buffered mode?

    Do you have an example for me?