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 in Beagle Board(OMAP 3530)

Hello,

We are using Beagle Board Rev C4 with Angstrom OS. In one of our project the requirement is to take the data (1Mbps) on GPIO process it and out at the same rate. Can anyone suggest best way to do it with some insights in the code ? or is McBSP the best solution for it ? if yes then please provide some codes for it as we are unable to configure McBSP and whatever code shared in this community gives "Segmentation Fault", probably the code is not meant for linux environment. We have done lots of googling and in a desperate situation here...anyhelp in this regard will be highly appreciated.

 

Thanks,

Ameet

  • Ameet

     We would need more information on the data format/protocol of the incoming/outgoing data before it would be possible to suggest a particular interface to use.

    The McBSP code on the this forum is typically low level code meant to demonstrate the programming and use of the hardware and this type of code will not run in Linux. There are McBSP audio drivers in the Linux SDK that could be used as a starting point should the McBSP be the appropriate interface to use.

      Paul

     

     

  • Hi Paul,

    Thanks for the prompt reply... The data is plain binary its coming at rate of 1Mbps which we need to sample based on the clock...Please share the best way to address this..

     

    Thanks again,

    Ameet

  • Ameet

    If the data is received along with a clock then the McBSP could be used. However, the McBSP expects a sync pulse (FSR) to identify the start of a new frame so it will be necessary to generate a sync pulse every X words (each word can be up to 32-bits).

    The same is also true for transmitting data via McBSP, except that the transmit sync is called FSX.

    Both transmit and receive can be done by one McBSP1 using 4-pin mode but this means that the interface is synchronous - 1-bit is transmitted for every bit received.  In this configuration FSR=FSX and CLKR=CLKX.

    Alternatively McBSP1 can be configured for 6-pin mode allowing full asynchronous transmit and receive.

      Paul

  • Hi Paul,

    That sounds good to me...but all we are getting is clock and data...In any case can u direct us to the link/code from which we can get feel of McBSP protocol and make decision accordingly...

     

    Ameet

  • Ameet

    Best place to start is the Technical Reference Manual (TRM). The TRM will cover the features and protocols supported by the McBSP and can be downloaded from http://www.ti.com/product/omap3530

    Paul