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 capture and overflow interrupts

Greetings all!

I'm a bit confused on the interrupt vector code for catching interrupts on Timer A0 when using both the "capture" and "overflow" interrupts.  When I just use the "capture" interrupt (which is driven by a PPS signal from a GPS unit), I use the following interrupt code:

#pragma vector=TIMER0_A0_VECTOR
__interrupt void TIMERA0_ISR (void)
{
	P1OUT = P1OUT ^ 0b01000000; //Toggle green LED every second, which is driven by PPS signal
	counter_flag++;
}

Now, I want to add a second interrupt to count the number of times TA0R overflows before the next PPS signal.  

Do I use the same interrupt function as above, and simply add a switch(TA0IV) inside the interrupt function to determine which interrupt (capture or overflow) occurred?

OR, do I add a second interrupt function, and if so, what would the pragma vector statement be?   

**Attention** This is a public forum