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.

MSP430F149: Timer A interrupt service program and ADC interrupt service program

Part Number: MSP430F149

I have 2 questions on IS for Timer A and ADC

1, I am using ADC and TimerA  at the same time.But the program stay in the void main(void) and timer A0 interrupt, and I can't  get values from ADC.

2, Follow is the definition of timerA0 interrupt service program I am using, which is working.

     

#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMERA0_VECTOR))) Timer_A (void)
#else
#error Compiler not supported!
#endif

Follow is the definition of timerA0 interrupt service program I used before, but it is not working now.

#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)

What is the difference?

Thanks for any help reply to me.

**Attention** This is a public forum