Re: Hook timer interrupt in Windows CE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Michel Verhagen [eMVP] (michel.verhagen_at_nospam.pts.nl)
Date: 03/08/04


Date: Mon, 8 Mar 2004 20:13:24 +0100

Read the technical article "Implementing Rock-Solid Windows CE Timers on
Windows CE.NET 4.1 Platforms" in MSDN:

http://msdn.microsoft.com/library/en-us/dncenet/html/tchRockSolidCETimers.asp?frame=true

It does exactly what you want.

-- 
Best regards,
Michel Verhagen [eMVP]
Windows CE.NET Consultant
PTS Software
The Netherlands
(to reply to my email address directly, remove ".nospam")
"iordan" <anonymous@discussions.microsoft.com> wrote in message
news:C9A35D20-4E66-4670-A14A-C3D4707EF77B@microsoft.com...
> We were wondering if you can help us out on the following issues:
> The software that we develop needs a guaranteed hardware interrupt that is
generated exactly on 2ms time interval.
> As we have read in the provided documentation, Windows CE .NET 4.2
provides this interval. So basically we are trying to handle (catch) the
system timer interrupt, and to associate it with our own ISR.
> Should this be done in the Platform Builder (in the kernel), or just the
application should initialize the timer interrupt, change the timer
frequency, handle the interrupt and when the handling is done restore the
original frequency.
> Is it possible to launch two other interrupts, the first one generated on
8ms, the second one respectively on 16ms?
>
>


Relevant Pages

  • Re: Need info on Windows Timers
    ... > 1) How exactly Windows executes the timer callback. ... > From the articles I read, ... > timer interrupt. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Memory leak in .NET service on Windows 2000
    ... I've seen timer leaks especially with short durations like yours but it was ... > service running on Windows 2000 platforms. ... > Windows Service and added a FileSystemWatcher and a Timer object. ... > disabled and this causes a significant memory leak on Windows 2000 ...
    (microsoft.public.dotnet.framework)
  • Re: 1MHz interrupt
    ... timer, with the ability to boost that to a 1ms timer, but then things like ... interrupt from other devices kick in. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... Is it possible to disable task switching ...
    (microsoft.public.development.device.drivers)
  • Re: Timer accuracy
    ... No version of WIndows will provide an accurate timer "interrupt" under ... iac, handling one notification for every 100 possible ones gives lots ...
    (borland.public.delphi.nativeapi)
  • WARNING: at kernel/smp.c:369 smp_call_function_many+0x52/0x1b3() [2.6.30-01557-gb640f04]
    ... spurious 8259A interrupt: IRQ7. ... 3 timers in total, 0 timers will be used for per-cpu timer ... # CPU Frequency scaling ... # Bus options (PCI etc.) ...
    (Linux-Kernel)