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

timers

Hello EveryOne,

I am using LPC2368 controller I am using timer0/counter in interrupt mode initially i set the value T0MR0 register 100 as shown in following program .this timer is running at 1 MHz frequency Suppose i want to change this value at run time . What changes i should do .

void init_timer0 (void) {


T0PR = 0x0000003B;
T0MR0 = 100;

T0MCR = 0x03;
T0TCR = 1;


VICVectAddr4 = (UWORD32)tc0;
VICIntEnable = 1 << 4;
return;
}

0