[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Timer resolution et al
- Date: Tue, 9 Mar 2004 08:11:29 -0000
- From: BPSTEVENS at qinetiq.com (Stevens Brian)
- Subject: Timer resolution et al
I have been following the thread on timer resolution etc as I have a need
for the following:
A timer with an accuracy of sub milliseconds
A timer that is not dependant on the underlying clock tick.
I am working with the pc386 port and have formulated some ideas:
Use one of the other counters on the timer chip.
This seems a straight forward way to do the job without
altering the existing code, and since most timer chips have more than 1
counter it could probably be extended to other ports. However, it seems that
the other timer outputs are not normally conected to the interrupt
Use the real time clock
In the PC the real time clock chip can provide a periodic
interrupt with a resolution of ~122 micro seconds and this line is connected
to the interrupt controller.
I would prefer to go with the 1st method as I think that this would have
more generall application. If any one can help me with the hardware parts
then I am willing to have a go at the code for the pc386. (this is a home
job not a work job so it may take some time)
Cody Technology Park,
GU14 0LX .
Telephone (01252) 393959
Fax (01252) 395120
The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution,
or any action taken or omitted to be taken in reliance on such information
is prohibited and may be unlawful.
Emails and other electronic communication with QinetiQ may be monitored.
Calls to QinetiQ may be recorded for quality control,
regulatory and monitoring purposes.