MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Podręcznik Użytkownika Strona 365

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 575
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 364
run
Examples After y ou build and load a program to your processor, use run to start
execution.
cc = ticcs('boardnum',0,'procnum',0); % Create a link to CCS
% IDE.
cc.load('tutorial_6xevm.out'); % Load an executable file to the
% processor.
cc.rtdx.configure(1024,4); % Configure four buffers for data
% transfer needs.
cc.rtdx.open('ichan','w'); % Open RTDX channels for read and
% write.
cc.rtdx.enable('ichan');
cc.rtdx.open('ochan','r');
cc.rtdx.enable('ochan');
cc.restart; % Return the PC to the beginning of the current
% program.
cc.run('run'); % Run the program to completion.
This example uses a tutorial prog ram included w ith Embedded IDE
Link CC. Set your CCS IDE working directory to be the one that holds
your project les. The
load function uses the current w orking directory
unless you provide a full path name in the input arguments.
Rather than using the dot notation to access the RTDX functions, you
can create an alias to the
cc link and use the alias in later commands.
Thus, if you add the line
rx = cc.rtdx;
to the program, you can replace
cc.rtdx.configure(1024,4);
with
7-143
Przeglądanie stron 364
1 2 ... 360 361 362 363 364 365 366 367 368 369 370 ... 574 575

Komentarze do niniejszej Instrukcji

Brak uwag