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

LPC17xx Interrupt

Hi everyone

I wrote a simple program for timer0 of lpc1768 it works but I do not know after the interrupt what to do and how can I jump to vector address of timer0 , the interrupt state is pending
how can I change it to active

Another question
Is it necessary to move vector table

Here is my code

     #include "lpc17xx.h"

int main (void) {




  LPC_TIM0->CTCR = 0x00;             /*timer0 in timer mode*/

  LPC_TIM0->PR = 2;

  LPC_TIM0->TC=0x0;

  LPC_TIM0->TCR= 0x00000001;

   LPC_TIM0->MR0=6;

   LPC_TIM0->MCR=5;
}

Parents
  • I seem some lines of code, but where is the program? What you posted just doesn't do anything. It's just some noise before the processor runs at high speed into the stop buffer at the end of the track.

    You can't claim that it works, just as a car manufacturer can't give you a car seat - or maybe a steering wheel - and claim that the car works.

Reply
  • I seem some lines of code, but where is the program? What you posted just doesn't do anything. It's just some noise before the processor runs at high speed into the stop buffer at the end of the track.

    You can't claim that it works, just as a car manufacturer can't give you a car seat - or maybe a steering wheel - and claim that the car works.

Children