delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/22/06:43:39

Date: Tue, 22 Apr 1997 12:40:27 +0200 (MET DST)
From: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-Id: <199704221040.MAA11513@gilberto.physik.rwth-aachen.de>
To: djgpp AT delorie DOT com
Subject: timer interrupt - sample code anyone?

I need a (relatively fine grained) time base and I'm thinking of using
the system timer chip for this purpose. Never programmed that chip 
before and never dealt with hardware interrupts under djgpp.

Can anyone point me to some sample code?

The timer should interrupt at a rate of 10 KHz and the interrupt
service routine is just supposed to increment a global 32 bit value.

Hope, the 10KHz doesn't bring down the overall system performance.

--
Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de

- Raw text -


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