Hey guys,
if I use timers, I can initialize them without troubles, but when it comes to the ISRs, I don't know the exact usage of them. I always google for some code examples, but now I want to know how they work ;)
Before coming back to the topic, just some background information about my programming environment:
I use the MSP430F5438A in combination with IAR Workbench.
Ok, now back to my problem:
Let's say I'm using TimerA0 with CCR0 and CCR1. What are the correct ISR I have to handle?
At the moment I'm using
#pragma vector=TIMER0_A0_VECTOR
__interrupt void TIMER0_A0_ISR (void){}
for TimerA0 CCR0.
Concerning syntax: Is "TIMER0" the CCR0 flag of "A0" or is it the general vector of TIMERA0, means that I can switch through all available flags of TA0? Or is there a complete other meaning behind this code?
How do I write the ISR for CCR1? Is it
#pragma vector=TIMER1_A0_VECTOR
__interrupt void TIMER1_A0_ISR (void){}
Any explanations appreciated ;)
 
				 
		 
					 
                           
				 
				 
				