User`s guide
halt
Purpose Terminate execution of pro cess running on processor
Syntax halt(cc,timeout)
halt(cc)
Description halt(cc,timeout) immediately stops program execution by the
processor. After the processor stops,
halt returns to the host. timeout
defines, in seconds, how long the host waits for the processor to stop
running. To resume processing after you halt the processor, use
run.
Also, the
read(cc,'pc') function can determine the memory address
where the proces sor stopped after you use
halt.
timeout defines the maximum time the routine w aits for the processor
to s top. If the processor d oes not stop within the specified timeout
period, the routine returns with a timeout error.
halt(cc) immediately stops program execution by the process or. A fter
the processor stops,
halt returns to the host. In this syntax, the timeout
period defaults to the global timeout period specified in
cc.Useget(cc)
to determine the global timeout period.
Using halt with Multiprocessor Boards
When you issue a halt from the command line, it applies to every
processor that the
cc object represents. Thus halt stops every running
processor for the object.
Examples Use one of the provided demonstration programs to show how halt
works. From the CCS IDE demonstration programs, load and run
volume.out.
At the MATLAB software prompt create a link to CCS IDE
cc = ticcs
Check whether the program volume.out is running on the processor.
isrunning(cc)
7-57