interrupt handling

Hi!

I am new in using MSP family (MSP430F2013 in my case) and I have got some interrupts problem with the Code composer Essentials because each time the compiler tells me “unrecognized #pragma”.

There is my sub-routine

#pragma vector=USI_VECTOR

__interrupt void USI_TXRX (void)

{}

there where i need some help is where do you find the name of the interrupt vector like USI_VECTOR in this case (because I pick up this sub routine) i don’t find it for each interrupt(timer, I2C…) in any DOC

Thanks lot

I do not use CCE. But I think you do not use “pragma vector=…” in CCE.

You can find “Code Composer Essentials Code Examples” at TI website

http://focus.ti.com/mcu/docs/mcuprodcod … tabId=1468

An interrupt service routine looks like this:

// ADC10 interrupt service routine
__interrupt void ADC_ISR (void);
ADC10_ISR(ADC_ISR)
__interrupt void ADC_ISR (void)
{
    _BIC_SR_IRQ(CPUOFF);                    // Clear CPUOFF bit from 0(SR)
}