User`s guide
read
decimal value. When the processor has only one memory page, as is
true for many digital signal processors, the value of the page portion
of the memory address is 0. B y default,
ticcs sets the page to 0 at
creation if you omit the page property as an i nput argument.
For processors that have one memory page, setting thepagevalueto0
lets you specify all memory locations in the processor using the memo ry
location without the page value.
Examples of Address Property Values
Property
Value Address Type Interpretation
1F
String O ffset is 31 decimal on the page
referred to by
cc.page
10
Decimal
Offset is 10 decimal on the page
referred to by
cc.page
[18,1] Vector
Offset is 18 decimal on memory
page 1 (
cc.page = 1)
To specify the address in hexadecimal format, enter the address
property value as a string.
read interprets the string as the hexadecimal
representation of the d esired me mory location. To convert the hex value
to a decimal value, the function uses
hex2dec. Note that w hen you
use the string option to enter the address as a hex value, you cannot
specify the memory page. For string input, the memory page defaults
tothepagespecified by
cc.page.
count — a numeric scalar or vector that defines the number of datatype
values to read. Entering a scalar fo r count causes read to return mem
as a column vector which has count elements. count can be a vector
to define multidimensional data blocks. The elements of
count define
the dimensions of the data matrix returned in
mem. The following table
showsexamplesofinputargumentsto
count and how read responds.
7-115