MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guide de l'utilisateur Page 365

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 575
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 364
1 2 ... 360 361 362 363 364 365 366 367 368 369 370 ... 574 575

Commentaires sur ces manuels

Pas de commentaire