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; }
s/exists/exits/
This program is only for testing and finding how can I use interrupt of timer0
after I complete it I do not put it in the main and I use another function
1. Study the User Manual for the chip;
2. Study examples.
3. If, after the above, you have a specific question - ask it!
4a. Do it!
4b. If the above seems like too much work for you, you'll have to pay someone else to do it for you.
at this time I am studying the User Manual of LPC1768
Excellent.