Timer0 LPC2368 interrupt problem
Hi, I`m working on a project using LPC2368 and CrossStudio Release 1.6 Build 2. The project is simple. A function is executed at regular intervals. These intervals is done by interrupt. I'm using Timer0 and Match0 register to make the interrupt. The problem is that when I start program in free running (debugging mode using JTAG) the interrupt is not executed. When I put break point in the interrupt function during program working in free running, execution stop at the break point and after that the function is executed and the interrupt starts to work. But it happens only when i put a break point. Can you tell me what could be the problem?
Thank you in advance!
-
The problem is partly solved.First I disabled all interrupts VICIntEnClr = 0xFFFFFFFF;. Then I enabled only the interrupts from Timer0 and ...... what a surprise! The interrupt works OK and the function is executed. Then I put break point before VICIntEnClr = 0xFFFFFFFF; and when execution stopped at the break point I checked register VICIntEnable to find out if there are another interrupts enabled. I saw that the interrupt from Timer1 is also enabled. When I disable it everything works OK. Now I have to find out why it is enabled.
Please sign in to leave a comment.
Comments
1 comment