Interrupts
4-4
16-Bit MSP430X CPU
4.2
Interrupts
The MSP430X uses the same interrupt structure as the MSP430:
-
Vectored interrupts with no polling necessary
-
Interrupt vectors are located downward from address 0FFFEh
Interrupt operation for both MSP430 and MSP430X CPUs is described in
Chapter 2 System Resets, Interrupts, and Operating modes, Section 2
Interrupts. The interrupt vectors contain 16-bit addresses that point into the
lower 64-KB memory. This means all interrupt handlers must start in the lower
64-KB memory − even in MSP430X devices.
During an interrupt, the program counter and the status register are pushed
onto the stack as shown in Figure 4−2. The MSP430X architecture efficiently
stores the complete 20-bit PC value by automatically appending the PC bits
19:16 to the stored SR value on the stack. When the
RETI
instruction is
executed, the full 20-bit PC is restored making return from interrupt to any
address in the memory range possible.
Figure 4−2. Program Counter Storage on the Stack for Interrupts
Item n−1
PC.19:16
PC.15:0
SP
old
SP
SR.11:0
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...