delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/28/17:37:25

Date: Fri, 28 Jan 94 17:24:20 -0500
From: DJ Delorie <dj AT ctron DOT com>
To: SAMS AT nbivax DOT nbi DOT dk
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, SAMS AT nbivax DOT nbi DOT dk
Subject: Re: How to measure time better than 1/10000 sec?

> Is it possible to measure time to better than, say, 1/10000 sec ?
> Does one have to turn off the 18.2 Hz interrupts from the machine 
> to do so?

It's possible to read the internal counter of the 18.2Hz timer to get
resolution down to 1.9 MHz (an extra 16 bits of precision).  However,
you have to switch the chip into mode 2 instead of 3 and it won't do
interrupts at other than 18.2 Hz.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019