Digital Signal Processing Reference
In-Depth Information
Create a configuration file as in Example 9.1. Expand on Scheduling and HWI-
Hardware Interrupt Service Routine Manager. Right-click on HWI-INT11 to select
interrupt 11. Set its properties such that the interrupt source is MCBSP _ 1 _ Trans-
mit and the function is _ c _ int11 (the interrupt service function/routine). A vector
file need not be added to the project.
A message log can be obtained with the configuration file. Expand on Instru-
mentation and right-click on LOG-Event Log Manager
Æ
Insert LOG, which
inserts LOG0. Rename it trace .
Save this configuration file as bios _ sine _ intr.cdb in the folder bios_sine_intr .
Add this configuration file and the autogenerated linker command file to the
project, and include the BSL library support file (the run-time and CSL support
library files are included in the linker command file).
Build this project as bios_sine_intr . Verify that a 1-kHz sine wave is gener-
ated when switch #3 is pressed. Release the switch and verify that the sine wave is
no longer generated.
Select DSP/BIOS
Message Log and verify that “start” is printed in the message
log window (after the program is halted).
Æ
9.2 RTDX USING MATLAB TO PROVIDE INTERFACE
BETWEEN PC AND DSK
Three examples illustrate RTDX using MATLAB to provide an interface between
the PC host and the DSK target. The following software tools are required:
1. The Embedded Target for TI C6000 DSP (2.0)
2. MATLAB Link for CCS
and they are available from MathWorks [6]. The required version supports the
C6713 DSK (as well as platforms C6711DSK, C6416DSK, and C6701EVM). The
examples and projects in this topic were implemented using MATLAB's version
6.5, Revision 13.
Example 9.4: MATLAB-DSK Interface Using RTDX ( rtdx_matlab_sim )
This example illustrates the interface between MATLAB and the DSK using
RTDX. A buffer of data created from MATLAB (running on the host PC) is sent
to the C6x processor (running on the DSK). The C source program (running on the
DSK) increments each data value in the buffer and sends the buffer of data back
to MATLAB. There is no real-time input or output in this simulation example. The
following support files are used for this example and provided by TI: (1)
c67 13dsk.cmd , the linker command file; (2) intvecs.asm , the vector file; (3) rtdx.lib ,
the library support file; and (4) target.h , a header file to enable interrupt . They are
included in the folder rtdx_matlab_sim .
Figure 9.6 shows the C source program rtdx _ matlab _ sim.c to illustrate the inter-
face. It creates two channels through RTDX: an input channel to transfer data from
Search WWH ::




Custom Search