Lookup Instructions
4-58
Lookup instructions make use of the data pointer (DP) internally. The DP
stores the address of the program memory location, loads the value to the
destination, and increments it automatically after every load. Thus, the value
of the DP is always the last used program memory address plus one. The
content of DP changes after the execution of lookup instructions. If filter
instructions FIRK and CORK are used, it is required to context save DP in the
interrupt service routine. Since these filter instructions use DP to read
coefficient data (see section 4.10), any interrupt occurring between loading the
first coefficient and the execution of a FIRK/CORK will change the last value
of DP (if the interrupt routine uses a lookup instruction). DP can be stored in
RAM ( MOV {
adrs}, DP ), and a restoration is done as follows,
MOV A
n, {adrs}
SUB A
n, 0x1
MOV A
n, *An
Context save and restore of instructions are not required if filter instructions
are not used.
Example 4.9.1
Interrupt
MOV A0, 0x100
MOV A0, *A0
RPT N–2
FIRK A2, R0++
...
; DP = 0x101 after execution
; Beginning of interrupt service routine
; context save
MOV *ctx_DP, DP ;
ctx_DP stores the present DP = 0x101
...some lookup instructions...
; context restore
MOV *A0, *ctx_DP
SUB A0, 0x1
MOV A0, *A0
...
IRET
; DP = 0x101
; A0 = 0x100 after execution
; DP = 0x101 after execution
Содержание MSP50C614
Страница 1: ...MSP50C614 Mixed Signal Processor User s Guide SPSU014 January 2000 Printed on Recycled Paper ...
Страница 6: ...vi ...
Страница 92: ...3 22 ...
Страница 300: ...Instruction Set Summay 4 208 Assembly Language Instructions ...
Страница 314: ...Software Emulator 5 14 Figure 5 13 Project Menu Figure 5 14 Project Open Dialog ...
Страница 325: ...Software Emulator 5 25 Code Development Tools Figure 5 25 EPROM Programming Dialog ...
Страница 331: ...Software Emulator 5 31 Code Development Tools Figure 5 31 Context Sensitive Help System ...
Страница 368: ...5 68 ...
Страница 394: ...7 12 ...
Страница 400: ...Architecture A 6 Figure A 3 MSP50C605 100 Pin PJM Package MSP50C605 100 PIN PJM PLASTIC PACKAGE 1 80 81 100 30 31 50 51 ...
Страница 402: ...A 8 ...
Страница 412: ...Packaging B 10 ...
Страница 414: ...C 2 C 1 MSP50C605 Data Sheet This appendix contains the data sheet for the MSP50C605 mixed signal pro cessor ...