Hi people,
Started doing interrupt programming for my cc2430 project, and i think i've done all the config stuff with the timer1 like shown below and in my ioCC2430.h file the following interrupt vector is associated with Timer1:
so my main code is like:
SO WHAT'S THE INTERRUPT SERVICE ROUTINE when the interrupt occurs?
I couldn't find it anywhere!
p.s. i'm using IAR Workbench
Started doing interrupt programming for my cc2430 project, and i think i've done all the config stuff with the timer1 like shown below and in my ioCC2430.h file the following interrupt vector is associated with Timer1:
Rich (BB code):
#define T1_VECTOR VECT(9,0x4B ) /* Timer 1 (16-bit)Capt./Compare/Overfl */
Rich (BB code):
void main()
{
T1CTL = 0x0E; /* tick_freq/128 -> 32M/128, modulo: 0x0000-> T1CC0*/
T1CCTL0 = 0x44; /* set output on compare, compare mode, no capture */
T1CC0H = 0xEA;
T1CC0L = 0x60; /* compare 60,000 for example */
OVFIM =1; /* Timer 1 Overflow Interrupt Mask */
T1IE = 1; /* Timer 1 Interrupt Enable */
}
SO WHAT'S THE INTERRUPT SERVICE ROUTINE when the interrupt occurs?
I couldn't find it anywhere!
p.s. i'm using IAR Workbench