Texas Instruments MSP430x1xx User Manual page 30

Texas instruments modules and peripherals user's guide
Table of Contents

Advertisement

System Reset and Initialization
Return From Interrupt
The interrupt handling routine terminates with the instruction:
The return from the interrupt takes 5 cycles to execute the following actions
and is illustrated in Figure 2−8.
1) The SR with all previous settings pops from the stack. All previous settings
2) The PC pops from the stack and begins execution at the point where it was
Figure 2−8. Return From Interrupt
SP
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.
2-12
System Resets, Interrupts, and Operating Modes
(return from an interrupt service routine)
RETI
of GIE, CPUOFF, etc. are now in effect, regardless of the settings used
during the interrupt service routine.
interrupted.
Before
Return From Interrupt
Item1
SP
Item2
PC
TOS
SR
After
Item1
TOS
Item2
PC
SR

Advertisement

Table of Contents
loading

Table of Contents