tmsc6713dsk using matlab

4
Electronics and Communication; NIT Rourkela Advanced Communication Lab, Electronics and Comm, NIT Rourkela Page 1 How to program the TMSC6713DSK using MATLAB-SIMULINK: The following steps are the guidelines to program a TMS kit using MATLAB-SIMULINK. Prior to the steps, it should be noted that the following software are required to be installed on the system for proper functioning of the system: MATLAB R2007b Code Composer Studio version 3.1/3.3 6713 DSK Diagnostics Utility v3.1 Repeat Step 1 and Step 2 as described earlier. Step 3: Open MATLAB R2007b and open Simulink. The system required to be implemented have to be designed on Simulink. Before starting the design, include Target for TI C6000->C6000 Target Preferences->C6713DSK To take input through the Line in/Microphone of TMS, include the block Target for TI C6000->C6713 DSK Board Support->ADC and to produce output through Line out include Target for TI C6000->C6713 DSK Board Support->DAC. The setting for Line in/Microphone can be done by double clicking on the blocks and then modifying as follows:

Upload: nishantkumar

Post on 22-Nov-2015

5 views

Category:

Documents


0 download

DESCRIPTION

Instruction for Programing TMSC6713DSK Using MATLAB

TRANSCRIPT

  • Electronics and Communication; NIT Rourkela

    Advanced Communication Lab, Electronics and Comm, NIT Rourkela Page 1

    How to program the TMSC6713DSK using MATLAB-SIMULINK:

    The following steps are the guidelines to program a TMS kit using MATLAB-SIMULINK. Prior to the steps,

    it should be noted that the following software are required to be installed on the system for proper

    functioning of the system:

    MATLAB R2007b

    Code Composer Studio version 3.1/3.3

    6713 DSK Diagnostics Utility v3.1

    Repeat Step 1 and Step 2 as described earlier.

    Step 3:

    Open MATLAB R2007b and open Simulink.

    The system required to be implemented have to be designed on Simulink.

    Before starting the design, include Target for TI C6000->C6000 Target Preferences->C6713DSK

    To take input through the Line in/Microphone of TMS, include the block Target for TI C6000->C6713 DSK

    Board Support->ADC and to produce output through Line out include Target for TI C6000->C6713 DSK

    Board Support->DAC. The setting for Line in/Microphone can be done by double clicking on the blocks

    and then modifying as follows:

  • Electronics and Communication; NIT Rourkela

    Advanced Communication Lab, Electronics and Comm, NIT Rourkela Page 2

    The sampling rate should be set to 32 KHZ for both ADC and DAC. Samples per frame may be varied as

    required.

    Step 4:

    After the Simulink model has been built, save it.

    Go to Simulation->Configuration Parameters and do the following changes:

    Go to Real-Time Workshop and change System target file to ccslink_grt.tlc

    Go to Real-Time Workshop->Link for CCS and change System Stack Size(Bytes)to 4096 or above.

  • Electronics and Communication; NIT Rourkela

    Advanced Communication Lab, Electronics and Comm, NIT Rourkela Page 3

    Check that the same value is input in the Default Stack Size of the Target Preferences. To check this,

    double click the C6713DSK icon in the Simulink model and edit as shown in the image.

  • Electronics and Communication; NIT Rourkela

    Advanced Communication Lab, Electronics and Comm, NIT Rourkela Page 4

    Step 5:

    It is required to be built. To build go to Tools->Real-Time Workshop->Build All or simply press Ctrl+B

    MATLAB then builds the model and connects to CCS.

    Step 6:

    By the process of building, .c files are produced which are then converted to .out by CCS. .out files are

    essentially machine codes.

    If the versions of MATLAB and CCS are as mentioned before then the .out file be automatically loaded

    and executed.

    The outputs are then observed as desired. It should be noted that if input is provided through Line in,

    then it should be connected before the program starts running.

    Once the program is loaded on to CCS, the screen appears as: