comp.lang.ada
 help / color / mirror / Atom feed
From: butcher@iig.com.au (Ian Swinkels)
Subject: High Precision timing
Date: 1997/04/09
Date: 1997-04-09T00:00:00+00:00	[thread overview]
Message-ID: <5iddnc$57u@news.mel.aone.net.au> (raw)


Hi all!

This is a question that is perhaps more hardware related, but here
goes anyway....

The IBM PC has a hardware timer that is 8253 compatable(embedded- you
know what I mean in that its not a single chip anymore). There are 3
timer channels.

The first is hooked to INT 0 to cause system ticks, resulting in the
execution of code at the 1C int vect.

The third is used in the generation, and its output is controled by
the 8255 programable interface controler.

Can anyone tell me if I can stuff around with the second timer without
causing system crashes?(all I have achieved so far).

At present I am using timer 1, speed up to do some timing, and timer 3
to control an output device. My code works reliably. 

What I want to do with channel 2 is to use it as a 1uS resolution
counter which can be software triggered, latched, read, and then
restarted.  The reason I want to do this is to free the CPU time that
I loose to performing timing with timer 1, plus the obvious benefit of
1uS accuracy.

Any takers to this curly question? Oh and if there is a solution, I
would very much appreciated some ASM code/pointers in the right
direction, to do this to timer 2. 

Thanks one and all.

Ian Swinkels.





             reply	other threads:[~1997-04-09  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-09  0:00 Ian Swinkels [this message]
1997-04-08  0:00 ` High Precision timing Tom Moran
1997-04-09  0:00 ` Jerry van Dijk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox