Texas Instruments TMS320C28x Reference Manual page 288

Dsp cpu and instruction set
Table of Contents

Advertisement

LRETE
SYNTAX OPTIONS
LRETE
Operands
Description
Flags and
INTM
Modes
Repeat
Example
; Standard function call of FuncA. Disable interrupts on entry and
; enable interrupts on exit:
LC
FuncA:
SETC
LRETE
None
Long return and enable interrupts. The return address is popped, from the
software stack into the PC, in two 16-bit operations. Next, the global interrupt
flag (INTM) is cleared. This enables global maskable interrupts:
SP = SP – 1;
temp(31:16) = [SP];
SP = SP − 1;
temp(15:0) = [SP];
PC = temp(21:0);
INTM = 0;
This instruction enables interrupts by clearing the INTM bit.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
FuncA
.
.
INTM
.
.
Long Return and Enable Interrupts
OPCODE
0111 0110 0001 0000
; Call FuncA, return address on stack
; Function A:
; Disable interrupts
; Return from address on stack,
; Enable interrupts
LRETE
OBJMODE
RPT
CYC
X
8
6-131

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