Datasheet

Item1
Item2
SP TOS
Item1
Item2
SP TOS
PC
SR
Before After
PC
SR
Return From Interrupt
Interrupts
www.ti.com
2.2.3.2 Return From Interrupt
The interrupt handling routine terminates with the instruction:
RETI (return from an interrupt service routine)
The return from the interrupt takes 5 cycles (CPU) or 3 cycles (CPUx) to execute the following actions and
is illustrated in Figure 2-7.
1. The SR with all previous settings pops from the stack. All previous settings of GIE, CPUOFF, etc. are
now in effect, regardless of the settings used during the interrupt service routine.
2. The PC pops from the stack and begins execution at the point where it was interrupted.
Figure 2-7. Return From Interrupt
2.2.3.3 Interrupt Nesting
Interrupt nesting is enabled if the GIE bit is set inside an interrupt service routine. When interrupt nesting
is enabled, any interrupt occurring during an interrupt service routine will interrupt the routine, regardless
of the interrupt priorities.
36
System Resets, Interrupts, and Operating Modes SLAU144JDecember 2004Revised July 2013
Submit Documentation Feedback
Copyright © 2004–2013, Texas Instruments Incorporated