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 via two channels going in opposite directions. A wire of type McBSP is declared between the two DSPs. The channel connections are configured to be virtual. This allows Diamond to use the McBSP link for our channels but also for I/O accesses DSP3 makes.

 

 

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. The data are 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. Both DSPs check the data.


Test 3

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

 

Running the Example

Users of the SignalMaster Quad should select the type of board they have as shown here.

 

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 Quad

1


3L Diamond DSP

2


3L Diamond FPGA

0