MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guida Utente Pagina 341

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 575
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 340
read
14 15 16 17 18 19 20 21 22 23 24 25
outdata now contains the values in indata, returned from the
processor.
As a further demonstration of
read, try the follo wing functions after you
create a link
cc and load an a ppropriate program to your processor. To
perform the rst example,
var must exis t in the symbol table loaded
in CCS.
Read one 16-bit integer at the location of processor symbol
var.
mlvar = read(cc,address(cc,'var'),'int16')
Read 100 32-bit integers from address f000 (hexadecimal) and plot
the data.
mlplt = read(cc,'f000','int32',100)
plot(double(mlplt))
Increment the integer value stored at address 10 (decimal) of the
processor.
cc = ticcs;
ainc = 10
mlinc = read(cc,ainc,'int32')
mlinc = int32(double(mlinc)+1)
cc.write(ainc,mlinc)
See Also isreadable, symbol, write
7-119
Vedere la pagina 340
1 2 ... 336 337 338 339 340 341 342 343 344 345 346 ... 574 575

Commenti su questo manuale

Nessun commento