[fpc-pascal]dos approx delay fn that releases cpu

Gabor DEAK JAHN djg at tramontana.co.hu
Sun May 6 04:45:30 CEST 2001

At 5/5/01 01:52 PM, you wrote:


 > Btw, isn't the accuracy of the delay quite bad when using the timer IR?
 > Because It only changes ~18.2 times per second giving a resolution of ~54
 > ms. The variance of the result is also quite high; +- a full timer tick

The interrupt comes quite rare, that's true, but the timer counters count
quite fast. You can measure in the range of microseconds if you read the
counter value as well. There is no need to reprogram the timer to do that.


   Gabor DEAK JAHN

Gabor DEAK JAHN -- Budapest, Hungary.
WWW: www.tramontana.co.hu
E-mail: djg at tramontana.co.hu

More information about the fpc-pascal mailing list