SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By jsbki
#62954
I want to call an interrupt service routine from the P1 port. The service routine should start with the two lines:

#pragma vector XXXXXXXX
__interrupt XXXXXXX

Can someone tell me what goes where the X's are when using the P1 interrupt.
By naz
#66819
#pragma vector=PORT1_VECTOR
__interrupt void port_1_interrupt(void)
By Guilherme
#67293
Where I can find a list with all the name of vectors?

Like, to port1 interrupt is Port1_vector
to port2 interrupts is Port2_vector
By naz
#67343
#define PORT2_VECTOR 1 * 2 /* 0xFFE2 Port 2 */
#define UART1TX_VECTOR 2 * 2 /* 0xFFE4 UART 1 Transmit */
#define UART1RX_VECTOR 3 * 2 /* 0xFFE6 UART 1 Receive */
#define PORT1_VECTOR 4 * 2 /* 0xFFE8 Port 1 */
#define TIMERA1_VECTOR 5 * 2 /* 0xFFEA Timer A CC1-2, TA */
#define TIMERA0_VECTOR 6 * 2 /* 0xFFEC Timer A CC0 */
#define ADC_VECTOR 7 * 2 /* 0xFFEE ADC */
#define UART0TX_VECTOR 8 * 2 /* 0xFFF0 UART 0 Transmit */
#define UART0RX_VECTOR 9 * 2 /* 0xFFF2 UART 0 Receive */
#define WDT_VECTOR 10 * 2 /* 0xFFF4 Watchdog Timer */
#define COMPARATORA_VECTOR 11 * 2 /* 0xFFF6 Comparator A */
#define TIMERB1_VECTOR 12 * 2 /* 0xFFF8 Timer B 1-7 */
#define TIMERB0_VECTOR 13 * 2 /* 0xFFFA Timer B 0 */
#define NMI_VECTOR 14 * 2 /* 0xFFFC Non-maskable */
#define RESET_VECTOR 15 * 2 /* 0xFFFE Reset [Highest Pr.] */
By gm
#67397
The chip's header file (i.e., msp430x24x.h) has the name and addresses of all the chip's resources. The vector names and addresses are usually found at the bottom of the file.

Cheers!

gm