User`s guide
regwrite
Purpose Write data values to registers on processor
Syntax regwrite(cc,'regname',value,'represent',timeout)
regwrite(cc,'regname',value,'represent')
regwrite(cc,'regname',value,)
Description regwrite(cc,'regname',value,'represent',timeout) writes the
data in
value to the regname register of the p roces sor. regwrite
converts value from its r eprese ntation in the MA TLAB w orkspace
to the representation specified by
represent.Therepresent input
argument defines the format of the data when it is stored in
regname.
Input argum ent
represent takes one of three input strings:
represent String Description
'2scomp'
Write value to the destination register as
a signed integer value in two’s complement
format. Thisisthedefaultsettingwhenyou
omit the
represent argument.
'binary'
Write value to the destination register as an
unsigned binary integer.
'ieee'
Write value to the d estination registers as a
floating point 32-bit or 64-bit value in IEEE
floating-point format. Use this only when
you are writing to 32- and 64-bit registers on
the processor.
Note Use write (called a direct memory write) to w rite memory-mapped
registers.
String regname specifies the name of the destination register on
the processor.
cc defines the processor to write value to. Valid
entries for
regname depend on your processor. Register names are
not case-sensitive —
a0 is the s ame as A0. For example, the C6xxx
7-131