Status Register ST1
When the CPU services an interrupt, the current value of LOOP is saved on the stack
(when ST1 is saved on the stack), and then LOOP is cleared. Upon return from the in-
terrupt, LOOP is not restored from the stack.
SPA
Stack pointer alignment bit. SPA indicates whether the CPU has previously aligned
Bits 4
the stack pointer to an even address by the ASP instruction:
0
1
When the ASP (align stack pointer) instruction is executed, if the stack pointer (SP)
points to an odd address, SP is incremented by 1 so that it points to an even address,
and SPA is set. If SP already points to an even address, SP is not changed, but SPA is
cleared. When the NASP (unalign stack pointer) instruction is executed, if SPA is 1, SP
is decremented by 1 and SPA is cleared. If SPA is 0, SP is not changed.
At reset, SPA is cleared.
VMAP
Vector map bit. VMAP determines whether the CPU interrupt vectors (including the
reset vector) are mapped to the lowest or highest addresses in program memory:
Bit 3
0
1
On C28x designs, the VMAP signal is tied high internally, forcing the VMAP bit to be set
high on a reset.
This bit can be individually set and cleared by the SETC VMAP instruction and
CLRC VMAP instruction, respectively.
PAGE0
PAGE0 addressing mode configuration bit. PAGE0 selects between two mutually-ex-
clusive addressing modes: PAGE0 direct addressing mode and PAGE0 stack addres-
Bit 2
sing mode. Selection of the modes is as follows:
0
1
Note: Illegal Instruction Trap
Setting PAGE0 = AMODE = 1 will generate an illegal instruction trap.
PAGE0 = 1 is included for compatibility with the C27x. the recommended operating
mode for C28x is PAGE0 = 0.
This bit can be individually set and cleared by the SETC PAGE0 instruction and
CLRC PAGE0 instruction, respectively. At reset, the PAGE0 bit is cleared (PAGE0 stack
addressing mode is selected).
For details about the above addressing modes, see Chapter 5, Addressing Modes.
2-36
The stack pointer has not been aligned to an even address.
The stack pointer has been aligned to an even address.
CPU interrupt vectors are mapped to the bottom of program memory, addresses
00 0000
−00 003F
.
16
16
CPU interrupt vectors are mapped to the top of program memory, addresses
3F FFC0
−3F FFFF
.
16
16
PAGE0 stack addressing mode
PAGE0 direct addressing mode
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?