This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430

Other Parts Discussed in Thread: MSP430F1611

#pragma vector = TIMER1_A_VECTOR
__interrupt void TIMER1_A_ISR(void)
{
  P1OUT ^=0x01;
}
Im using the MSP1611 series.and im getting this error.
Tue Jun 14 18:47:40 2011: [syntax error, unexpected IDENTIFIER, expecting $end] column 9 
Pls help.Anticipating your reply to the earliest.
Thank You.
  • #endif
    #ifdef __ASM_HEADER__ /* Begin #defines for assembler */
    #define TIMERA1_VECTOR          ".int05"                    /* 0xFFEA Timer A CC1-2, TA */
    #else
    #define TIMERA1_VECTOR          (5 * 1u)                     /* 0xFFEA Timer A CC1-2, TA */
    /*#define TIMERA1_ISR(func)       ISR_VECTOR(func, ".int05")  */ /* 0xFFEA Timer A CC1-2, TA */ /* CCE V2 Style */
    #endif
    #ifdef __ASM_HEADER__ /* Begin #defines for assembler */
    #define TIMERA0_VECTOR          ".int06"                    /* 0xFFEC Timer A CC0 */
    #else
    #define TIMERA0_VECTOR          (6 * 1u)                     /* 0xFFEC Timer A CC0 */
    /*#define TIMERA0_ISR(func)       ISR_VECTOR(func, ".int06")  */ /* 0xFFEC Timer A CC0 */ /* CCE V2 Style */
    #endif

     

    Hello,

    you have to use the right Interrupt-Vector for youre device.

    1. Look into the msp430f1611.h include file, at the end of this file you will find my copy and paste from above.

     

    I dont use that device, so i cannot try it myself, but i guess it should work with: TIMERA1_VECTOR  , if you are using TimerA1, otherwise use TimerA0.

     

    Greetings.

    Seb

  • What is a MSP1611. Do you mean MSP430F1611?

    You said im. Do you mean I am?

    You probably also have a typo in your source code. The compiler you use does not understand what you mean at column 9 of that line of your source code. This has nothing to do with MSP430F1611 (nor MSP1611).

  • Thank You so much.

    Regards,

    Rahul Gupta.

  • I tried looking into the libraries and got the thing which I was looking for.Thanks for your response although.

    Thank You so much.

    Regards,

    Rahul Gupta.

**Attention** This is a public forum