Addressingmodes tms320c5x
Addressingmodes tms320c5x
Immediate
The operand is part of
the instruction
Register
The operand is specified
in a register
Direct
The address of the
operand is part of the
instruction (added to
imply memory page)
Indirect
The address of the
operand is stored in a
register
(implied)
not supported
Register-Indirect Addressing
1. *R
location
R+1 if d=1
d-1
Circular addressing
Circular addressing is used to create a circular buffer
Buffer is created in hardware and is very useful for
applications like digital filtering
This addressing mode in conjunction with circular buffer
updates samples by shifting data without creating
overhead as in direct shifting
When pointer reaches bottom location, and when
incremented the pointer is automatically wrapped around
to the top location.
Two independent buffers are available using BK0 and BK1
within the AMR register
Registers A4-A7 and B4-B7 in conjunction with .D unit can
be used as pointers
MVC (move constant) is the only instruction to access AMR
and other control registers
Circular Buffer
At the beginning of each
sample period,
a new sample will be read
into the circular
buffer,overwriting the oldest
sample.
The newest sample x(n) will
be stored at the memory
location pointed at by
auxiliary register AR(i).
reserved