Example: McBSP

Top  Previous  Next

This example shows how to use the McBSP links of the TI C64 DSP.

 

The example uses two tasks: master and slave connected by two channels going in opposite directions. A wire of type McBSP is declared between the two DSPs. The channel connections are configured to be physical to maximize performance by preventing Diamond from using virtual channels on the link. The two channels are placed on the wire to ensure that Diamond  use the McBSP link to transfer the data; without this, Diamond  attempt to select a much faster link implemented in the FPGA.

 

 

The example runs three tests with varying buffer sizes.

 


Test 1

Sends a buffer of data from DSP1 to DSP2 and then back from DSP2 to DSP1. Data is checked on DSP1.


Test 2

Starts two threads of each DSP: one thread writes a buffer to the link while the other reads a buffer from the link. Data is checked on both DSPs.


Test 3

Measures the speed of the link when data are sent from DSP1 to DSP2 and from DSP2 to DSP1.

 

Running the Example

You can build the application by typing Ctrl+B and then execute it by clicking run.

 

Prerequisites

You  need the following components to be able to run this example:

 


Hardware

Quantity


SignalMaster Dual

1


3L Diamond DSP licence

2


3L Diamond FPGA licence

0