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.