User`s guide
read
Purpose Data from memory on processor or in CCS
Syntax mem = read(cc,address,'datatype',count,timeout)
mem = read(cc,address,'datatype',count)
mem = read(cc,address,'datatype')
Description ticcs Object Syntaxes
mem = read(cc,address,'datatype',count,timeout) returns data
from the processor referred to by
cc. The address, count,and
datatype in pu t arguments define the memory block to be read. The
data block to read begins at the memory location defined by
address.
count determines the number of v alues to read, starting at address.
datatype defines the format of the raw data stored in the referenced
memory block.
To check values in memory on a running processor, such as values
that change during processing, insert one or more breakpoints in the
project code and perform the read operation w hile the processor code
is paused at o ne of the breakp oin ts. After y ou read the d ata , releas e
the breakpoint.
Note
Do not attempt to read data from the processor while it is running.
Reading data from a running process can produce incorrect values.
read uses the datatype parameter to determine the number of bytes
to read per stored value.
timeout is an o ptional input a rgument y ou
use to specify when to terminate l ong read proces ses and data transfers.
For details about each input parameter, read the following descriptions.
address — read uses address to define the beginning of the memory
block to read. You provide values for a ddress as eithe r decimal or
hexadecimal representations of a me m ory location in the processor. The
full address at a memory location consists of two parts: the offset and
the memory page, entere d as a vector [
location, page], a string, or a
7-114