User`s guide

2 Automation Interface
ccstut.c has two global data arrays ddat an d idat that you declare and
initialize in the source code. You use the functions
read and write to access
these processor memory arrays from M ATLA B software.
Embedded IDE Link CC provides three functions to control processor
execution
run, halt,andrestart.
1 To dem onstrate these com mands, use the following function to add a
breakpoint to line 64 of
cctut.c.
insert(cc,'cctut.c',64)
Line 64 is
printf("Embedded IDE Link CC: Tutorial - Memory Modified by Matlab!\n");
For information about adding breakpoints to a le, refer to insert in the
online Help sy stem. Then proceed with the tutorial.
2 To demonstrate the new functions, try the following functions.
halt(cc) % Halt the processor.
restart(cc) % Reset the PC to start of program.
run(cc,'runtohalt',30); % Wait for program execution to stop at
% breakpoint (timeout = 30 seconds).
When you switch to v ie wing CCS IDE, you see that your program stopped
at the breakpoint you inserted on line 64, and the program printed the
following messages in the CCS IDE Stdou t tab. Nothing prints in the
MATLAB command window:
Embedded IDE Link CC: Tutorial - Initialized Memory
Double Data array = 16.3 -2.13 5.1 11.8
Integer Data array = -1-508-647-7000 (call me anytime!)
3 Before you restart your program (currently stopped at line 64), change
some values in mem ory. Perform one of the follow ing procedure s based on
your processor.
C5xxx processor family Enter the following functions to demonstrate
the
read and write functions.
2-14