User`s guide

regread
Purpose Value from processor register
Syntax reg = regread(cc,'regname','represent',timeout)
reg = regread(cc,'regname','represent')
reg = regread(cc,'regname')
Description reg = regread(cc,'regname','represent',timeout) reads the
data value in the
regname register of the processor and returns the
value in
reg as a double-precision value. For convenience, regread
converts each return value to the MATLAB software double datatype.
Making this conversion lets you manipulate the data in MATLAB
software. String
regname species the name of the source register on
the processor.
ticcs obje ct cc denes the processor to read from. Valid
entries for
regname depend on your processor. Register names are not
case-sensitive
a0 is the same a s A0.
For example, the TMS320C6xxx processor family provides the following
register names that are valid entries for
regname:
Register Names Register Contents
A0, A1, A2,..., A15
General purpose A registers
B0, B1, B2,..., B15
General purpose B registers
PC, ISTP, IFR, IRP, NRP, AMR,
CSR
Other general purpose 32-bit
registers
A1:A0, A2:A1,..., B15:B14
64-bit general purpose register pairs
Other processors provide other register sets. Refer to the documentation
for y our processor to determine the registers fo r the processor.
Note Use read (ca l led a direct memory read) to read memory-mapped
registers.
7-127