HI,
In our project, we are using LPC2378,i need to log the events with millisecond precision, where as LPC2378 provides precision upto seconds only from RTC. is there any possiblity generate the millisseconds from LPC2378?
Regards, P.Mahesh
Use a hardware timer ?
With a hardware timer, you can get better than us resolutin if you need to. It's just a question of what clock frequency you use for the timer, and what prescaler value you have selected.
int howlong ( void ) { while ( INPUT == OFF ) ; // is input off i = 0 ; do { i = i + 1 ; } while ( INPUT == ON ); // is input on return i ; }
Please follow the clear instructions on how to post source code: www.danlhenry.com/.../keil_code.png
and explain how your code is supposed to meet the requirement!
Have you read the timer section in the user manual for the processor? What was your initial view of the capture pins and match registers available in the timers?
Return with more specific questions based on information in the processor manual. Or look for a payed consultant.