I haven't. Google search took me to the Keil forums on previous timer-related threads, where the members kept on mentioning about going through the user manual.
Unless you are familiar with the hardware that the user refers to I don't see how you can help.
@senthil_99
I'm attaching two files from the LPc23xx code bundle , they include a delay_ms function you can study and use.
The timers in all 21xx, 23xx, 24xx are the same so using the code shouldn't be a problem.
/******************************************************************************* Function name: delayMs**** Descriptions: Start the timer delay in milo seconds** until elapsed**** parameters: timer number, Delay value in milo second ** ** Returned value: None** *****************************************************************************/void delayMs(BYTE timer_num, DWORD delayInMs){if( timer_num ==0){/* * setup timer #0 for delay */
T0TCR =0x02;/* reset timer */
T0PR =0x00;/* set prescaler to zero */
T0MR0 = delayInMs *(Fpclk /1000-1);
T0IR =0xff;/* reset all interrrupts */
T0MCR =0x04;/* stop timer on match */
T0TCR =0x01;/* start timer *//* wait until delay time has elapsed */while(T0TCR &0x01);}elseif( timer_num ==1){/* * setup timer #1 for delay */
T1TCR =0x02;/* reset timer */
T1PR =0x00;/* set prescaler to zero */
T1MR0 = delayInMs *(Fpclk /1000-1);
T1IR =0xff;/* reset all interrrupts */
T1MCR =0x04;/* stop timer on match */
T1TCR =0x01;/* start timer *//* wait until delay time has elapsed */while(T1TCR &0x01);}return;