View Single Post
  #4   Spotlight this post!  
Unread 15-03-2004, 14:33
roknjohn roknjohn is offline
Registered User
#1051
Team Role: Engineer
 
Join Date: Jan 2003
Location: Marion
Posts: 31
roknjohn is an unknown quantity at this point
Re: Timer interrupt hic-cupping - HELP

Quote:
Define really large. As do you think the error is in the high 16 bit or the low 16?
Well, that's a good question. It appeared to be in the high 16 bits of the GetTime() result. My trace output code looked like this:
Code:
 
printf("clock=%6d\n",tmsClock);
printf("timer=%lx\n",(unsigned long) GetTime());
The tmsClock value always looked okay. The GetTime() would accend as expected but I would get some "noise" in the high 16 bits.

Since my terminal program converted the hexstring to decimal, I wasn't able to issolate it to ONLY the high 16.