We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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; }
Before you even start with the more advanced stuff, let's focus on this little program: Are you REALLY sure it works?
Thanks for your response. for testing you can use uVision4 and its simulator you can compile this code and even start debug session and watch the timer0 register's