Special Filter Instructions
4-64
Any combination of registers different from the above will yield incorrect
results with the FIR/COR instruction.
Use R5 to
wrap around
R0
0x010
0x0100
0x0106
0x0102
x[k]
x[k–1]
x[k–2]
x[k–3]
tag
After FIR/COR execution
The STAT register is saved in the filterSTAT_tag location. The output of the fil-
tering operation in the example is located in AC0 (lower word) and AC1 (high
word). This 32-bit result is stored in the SampleOut RAM location. R0 should
be pointing to the oldest sample. The oldest sample,
x[k–3]
, is overwritten
by the next sample to be filtered,
x[k+1]
. R0 is saved in the
startOfBuff
pointer for the next FIR/COR instruction
Notice that R0 points backwards by one location from its starting point each
time an FIR/COR instruction is executed. In the above figure, R0 would end
up at successive locations in a clockwise manner.
Содержание MSP50C6xx
Страница 1: ...MSP50C6xx Mixed Signal Processor User s Guide Mixed Signal Products SPSU014A Printed on Recycled Paper...
Страница 6: ...vi...
Страница 14: ...xiv...
Страница 24: ...1 10...
Страница 296: ...Instruction Set Summay 4 210 Assembly Language Instructions...
Страница 332: ...Implementation Details 5 36 R7 Return Addr Return Addr Param 2 Param 2 Param 1 Param 1 R5 Stack data Function call...
Страница 366: ...6 12...