Texas Instruments TMS320C28x Reference Manual page 272

Dsp cpu and instruction set
Table of Contents

Advertisement

Flags and
g
DBGM
Modes
INTM
EALLOW
LOOP
IDLE-
STAT
Repeat
Part of the operation involves saving pairs of 16-bit CPU registers onto the
stack pointed to by the SP register. Each pair of registers is saved in a
single 32-bit operation. The register forming the low word of the pair is
saved first (to an even address); the register forming the high word of the
pair is saved next (to the following odd address). For example, the first
value saved is the concatenation of the T register and the status register
ST0 (T:ST0). ST0 is saved first, then T.
This instruction should not be used with vectors 1−12 when the peripheral
interrupt expansion (PIE) block is enabled.
if(not the NMI vector)
Clear the corresponding IFR bit;
Flush the pipeline;
temp = PC + 1;
Fetch specified vector;
SP = SP + 1;
[SP] = T:ST0;
SP = SP + 2;
[SP] = AH:AL;
SP = SP + 2;
[SP] = PH:PL;
SP = SP + 2;
[SP] = AR1:AR0;
SP = SP + 2;
[SP] = DP:ST1;
SP = SP + 2;
[SP] = DBGSTAT:IER;
SP = SP + 2;
[SP] = temp;
Clear corresponding IER bit;
INTM = 0;
// disable INT1−INT14, DLOGINT, RTOSINT
DBGM = 1;
// disable debug events
EALLOW = 0;
// disable access to emulation registers
LOOP = 0;
// clear loop flag
IDLESTAT = 0; //clear idle flag
PC = fetched vector;
Debug events are disabled by setting the DBGM bit.
Setting the INTM bit disables maskable interrupts.
EALLOW is cleared to disable access to protected registers.
The loop flag is cleared.
The idle flag is cleared.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
INTR
6-115

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF