![Motorola DSP96002 Скачать руководство пользователя страница 50](http://html.mh-extra.com/html/motorola/dsp96002/dsp96002_user-manual_246155050.webp)
MOTOROLA
DSP96002 USER’S MANUAL
4 - 11
31
6
5
4
3
2
1
0
*
UF
SE
P3
P2
P1
P0
are checked. If it is not one, the LC is decremented, and the next instruction is taken from the address at
the top of the system stack; otherwise the PC is incremented, the loop flag is restored (pulled from stack),
the stack is purged, the LA and LC registers are pulled from the stack and restored and instruction execution
continues normally. The LA register is a 32-bit read/write register written into by a DO instruction and is read
by the system stack for stacking the register.
4.10
SYSTEM STACK (SS)
The system stack is a separate internal RAM 15 locations "deep" and divided into two banks: High (SSH)
and Low (SSL) each 32-bits wide. SSH stores the PC or LA contents; SSL stores the LC or SR contents.
The PC and SR registers are pushed on the stack for subroutine calls and long interrupts (see Section 8).
These registers are pulled from the stack for subroutine returns using the RTS instruction and for interrupt
returns that use the RTI instruction. The system stack is also used for storing the address of the beginning
instruction of a hardware program loop as well as the SR, LA and LC register contents just prior to the start
of the loop. This allows nesting of DO loops.
Up to 15 long interrupts, 7 DO loops, or 15 JSRs or combinations of these can be accommodated by the
Stack. Care must be taken when approaching the stack limit. When the Stack limit is exceeded the data to
be stacked will be lost and a non-maskable Stack Error interrupt will occur.
4.11
STACK POINTER (SP)
The stack pointer register (SP) is a 32-bit register that indicates the location of the top of the system stack
and the status of the stack (underflow and overflow error conditions). The stack pointer is referenced implic-
itly by some instructions (DO, ENDDO, REP, JSR, RTI, etc.) or directly by the MOVEC, MOVEI, MOVEM,
MOVEP and MOVES instructions. The stack pointer register format is shown in Figure 4-4. Note that the
stack pointer register is implemented as a six bit counter which addresses (selects) a fifteen location stack
with its four least significant bits. The possible stack values are shown in Figure 4-5 and are described be-
low.
4.11.1
Stack Pointer (SP) Bits 0,1,2,3
The stack pointer (SP) points to the last used place on the stack. Immediately after hardware reset these
bits are cleared (SP=0), indicating that the stack is empty.
Stack Pointer
Stack Error Flag
Underflow Flag
Reserved
Figure 4-4. Stack Pointer Format
Содержание DSP96002
Страница 3: ...1 2 DSP96002 USER S MANUAL MOTOROLA ...
Страница 38: ...MOTOROLA DSP96002 USER S MANUAL 3 15 Figure 3 4 Modulo Arithmetic Unit Block Diagram ...
Страница 39: ...3 16 DSP96002 USER S MANUAL MOTOROLA ...
Страница 53: ...4 14 DSP96002 USER S MANUAL MOTOROLA ...
Страница 76: ...MOTOROLA DSP96002 USER S MANUAL 5 23 Figure 5 8 Address Modifier Summary ...
Страница 86: ...6 10 DSP96002 USER S MANUAL MOTOROLA ...
Страница 101: ...MOTOROLA DSP96002 USER S MANUAL 7 15 Figure 7 9 HI Block Diagram One Port ...
Страница 140: ...7 54 DSP96002 USER S MANUAL MOTOROLA ...
Страница 166: ...9 10 DSP96002 USER S MANUAL MOTOROLA ...
Страница 181: ...MOTOROLA DSP96002 USER S MANUAL 10 15 Figure 10 8 Program Address Bus FIFO ...
Страница 336: ...A 148 DSP96002 USER S MANUAL MOTOROLA FMPY S2 S1 D1 FSUB S S3 D2 move syntax see the MOVE instruction de scription ...
Страница 337: ...MOTOROLA DSP96002 USER S MANUAL A 149 ...
Страница 404: ...A 216 DSP96002 USER S MANUAL MOTOROLA PC xxxx D ...
Страница 460: ...A 272 DSP96002 USER S MANUAL MOTOROLA SIOP Not affected ...
Страница 484: ...A 296 DSP96002 USER S MANUAL MOTOROLA SSH PC SSL SR SP 1 SP ...
Страница 519: ...MOTOROLA DSP96002 USER S MANUAL A 331 ...
Страница 580: ...MOTOROLA DSP96002 USER S MANUAL B 61 X Memory Y Memory n0 3 r0 x0 Xmin r4 y0 Xmax z0 Ymin x1 Ymax y1 Zmin z1 Zmax ...
Страница 718: ...MOTOROLA DSP96002 USER S MANUAL B 199 ...
Страница 871: ... MOTOROLA INC 1994 MOTOROLA TECHNICAL DATA SEMICONDUCTOR M Addendum ...
Страница 888: ...MOTOROLA INDEX 1 INDEX ...
Страница 889: ......