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

Standard Timer interrupt in LPC3250

Hi

I am Unable to generate a interrupt for standard timers in LPC3250 . Are there any changes to make to lpc3250.s and configuration settings in the same lpc3250.s . I am using the keil compiler.
I am initialising the Timer clock in TIMCLK_CTRL1 and then
T0TCR=0x01;
T0CTCR=0x00;
TOMCR=0x03;

At this point of debuggig it is running continously without entering into Interrupt Service Routine.

I tried many different settings shown in web but invain

Parents
  • So ... You have written code and it runs as long as you don't use timer interrupts.

    What part of the IDE do you think would cause a problem like this?

    If the compiler can produce code for the processor (which it can) and you can download code which executes correctly (which I think you've said you can) then, fundamentally, things are working.

    It is far more likely to be a problem with how you are configuring the timer and the interrupt controller.

Reply
  • So ... You have written code and it runs as long as you don't use timer interrupts.

    What part of the IDE do you think would cause a problem like this?

    If the compiler can produce code for the processor (which it can) and you can download code which executes correctly (which I think you've said you can) then, fundamentally, things are working.

    It is far more likely to be a problem with how you are configuring the timer and the interrupt controller.

Children
No data