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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 575
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 339
read
defaults to a value of 1. This syntax reads one memory location of
datatype.
Note To ensure seamless read operatio n, use address to extract
address values that are compatible with the alignment required by your
processor.
read does not force data type alignment in your processor
memory.
Certain combinations of address and datatype are difcult for some
processors to use. To ensure seamless
read operation, use the address
function to extract address values that are com patible with the
alignment required by your processor.
Like the
isreadable, iswritable,andwrite functions, read checks
for valid a ddress values. Illegal a ddress values are any addre s s s p ace
largerthantheavailablespacefortheprocessor—2
32
for the C6xxx
processor family and 2
16
for the C5xxx series. When read identies an
illegal address, it returns an error message stating that the address
values are out of range.
Examples read reads data that y ou w rote to the processor.
cc = ticcs;
indata = 1:25;
write(cc,0,indata,30);
outdata=read(cc,0,'double',25,10)
outdata =
Columns 1 through 13
12345678910111213
Columns 14 through 25
7-118
Vedere la pagina 339
1 2 ... 335 336 337 338 339 340 341 342 343 344 345 ... 574 575

Commenti su questo manuale

Nessun commento