delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/06/16:00:38

Message-Id: <199706061959.PAA27952@delorie.com>
Mime-Version: 1.0
Date: Fri, 06 Jun 1997 16:01:07 -0500
To: djgpp AT delorie DOT com
From: Conrad Wei-Li Song <conradsong AT mail DOT utexas DOT edu>
Subject: PIT timer alert under Win95

Win95 and Win95 DOS mode uses 8253/8254 PIT counting mode 3 instead of the
default mode 2.  What this means:
o The timer counts down by 2 instead to 1 but has to hit zero twice before
  generating an interrupt.
o The interrupt rate doesn't change, but the counter is now unusuable.
o Real-time programming needs to be accomplished by using the RTC instead
  of the PIT.  As an alternative, the PIT can be reprogrammed to mode 2
  with no apparant side-effects.  <-- NO GUARANTEE, take this up with
  Microsoft.
  OO Using the RTC sucks because of its fixed resolution.  The PIT counter
     gives extremely high-resolution with little overhead by using the PIT
     counter instead of rate generators.
  OO The PIT counter refers to the internal counters on the PIT, not the
     one maintained by software which services the timer interrupt.  The
     PIT issues an interrupt everytime the internal counter reaches 0,
     and the counter is then reset (usually to 65536).

Note: Increasing the interrupt rate of the PIT is a poor solution due to
      the increased overhead cost.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzMorW8AAAEEALh5yWIjAha5FzBhDr0ckxp+JtXDcwSxrVC01vavv3JqoH6/
3qeozcoAVQIHcGkRQejm3de7O7IluD8R0v4nDKace3PBROoQXJ16pxO9sXoBXSaD
nc3jlMXepad2KL+kcNo7Pyq/I8gKqlny8oIdwaoJ8AP2wq6IhxOr5o88Yz99AAUR
tC9Db25yYWQgV2VpLUxpIFNvbmcgPGNvbnJhZHNvbmdAbWFpbC51dGV4YXMuZWR1
Pg==
=lcVD
-----END PGP PUBLIC KEY BLOCK-----

- Raw text -


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