User`s guide

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