This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Time interrupt stop when code size of ISR increases

Hello Sir,

I am using LPC2368 timer2 for 10 us periodic interrupt.
I am facing two problem
1 CPU is running at 60 Mhz then according to following setting of PCLKSEL0 and PCLKSEL1 all peripheral should be running at 60 Mhz. in order to get 10 us periodic interrupt I have to run timer at 1 us so T2PR value should be
T2PR = 0x0000003B;
but it works fine when T2PR = 0x0000000E;

 PCONP = 0x00C0120E;
 PCLKSEL0 = 0x01000055;
 PCLKSEL1 = 0x00005000;
void init_timer2(void)
{
T2PR = 0x0000003B;

T2MR0 = 10;

T2MCR = 3;

T2TCR = 1;



VICVectAddr26 = (unsigned long)tc2;

VICIntEnable |= 1<<26;

return;

}

Second problem is that when code size of ISR routine size increases timer interrupt stops.

What,s the reason for that?

Thanks & Regards
Rohit

0