User`s guide
2 Automa tion Interface
The Stdout tab in CCS IDE reveals that ddat and idat contain new
values. Next, read those new values back into MATLAB software.
f Enter ddatv = read(cc,address(cc,'ddat'),'double',4).
ddatv =
3.1416 12.3000 0.3679 0.7071
ddatv
contains the values you wrote in step c.
g V erify that the change t o idatv occurred by entering the following
command at the prompt:
idatv = read(cc,address(cc,'idat'),'int16',4)
MATLAB software returns the new values for idatv.
idatv =
1234
h Use restart to reset the program counter for your program to the
beginning. Enter the following com mand at the prompt:
restart(cc);
C6xxx processor family — Enter the following commands to demonstrate
the
read and write functions.
a Enter ddatv = read(cc,address(cc,'ddat'),'double',4).
MATLAB software responds with
ddatv =
16.3000 -2.1300 5.1000 11.8000
b Enter idatv = read(cc,address(cc,'idat'),'int16',4).
MATLAB software responds
idatv =
2-16