>Hmmm, Why aren't you using the input capture on the timer for this?
>You are using KBI but then polling for the flag???
>You are then manually resetting and capturing the counter value after further polling.
>This is what the input capture mode of the timer is specifically designed for why are you doing it so >inefficiently?
Honestly, I dont know about the input caputre mode of the timer...
This may not be the most efficient way to set it up but I dont know why it wouldnt be consistent enough for what im doing..Wait for the flag, clear it, start the timer, wait for the flag again, read the timer...
Ill look into the mode you mention. I still think there is something quite different which is giving
me a consistently different timer value on one particular chip.