Hello
I am designing a precision stop watch with 1 msec precision. I had tried stop watch with 1 msec timer and interrupt.I have checked and upto 1 minute i get exact delay with an error of 100-200 msec and as time passes error increases and after 5 minutes an error of 1 to 5 second is there..
I checked in keil and it shows a delay of exact 1.00000 mecs. but when i checked after 15000 count it shows 15.300 secs. I am not able to understand why this error occurs. please tell me what would be the reason. I am using C lang with code format as
Int ISR() //1 msec interrupt
{
count++;
if(count>=15000) // 15 seconds---> but in keil it shows 15.300 secs.
}