comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Orpin <abuse@borpin.co.uk>
Subject: Re: Using "delay until" in real-time
Date: Wed, 13 Dec 2000 07:43:50 +0000
Date: 2000-12-13T07:43:50+00:00	[thread overview]
Message-ID: <op9e3tsm0ivokl9af0gk8ca940ghm98smh@4ax.com> (raw)
In-Reply-To: 915jl7$jt5$1@nnrp1.deja.com

On Tue, 12 Dec 2000 16:27:31 GMT, Ted Dennison <dennison@telepath.com>
wrote:

>On our system ticks come
>at 240Hz, so that means that once every 52 seconds the executive
>scheduler waits about 20ms instead of 16.6(6-repeating)ms. Of course
>this wreaks havoc in our hard-realtime system.

What we do for varying iteration rates is have a scheduler that runs on
every tick.  This then decides what to fire off and initiates the
appropriate tasks.  We do not use the real time clock but rely on
external interrupts and a counter reset at the lowest rate.  We do a 'mod
= 0' to decide what needs to run.  Doing this we have 5 'working' tasks
running at different rates.  Of course your incoming interrupt must be of
an appropriate frequency!

-- 
Brian Orpin    BAE SYSTEMS, Edinburgh
"If you really know C++, there isn't much you can't do with it, though it may 
not always be what you intended!"  Tucker Taft 1998 



  parent reply	other threads:[~2000-12-13  7:43 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-12 16:27 Using "delay until" in real-time Ted Dennison
2000-12-12 18:01 ` Mike Silva
2000-12-12 19:57   ` Ted Dennison
2000-12-12 23:02     ` Mike Silva
2000-12-12 23:49       ` Ted Dennison
2000-12-18  6:26     ` Ray Blaak
2000-12-12 20:00 ` Ken Garlington
2000-12-12 20:40   ` Ted Dennison
2000-12-13  4:02     ` Ken Garlington
2000-12-13 14:29       ` Ted Dennison
2000-12-13 16:53     ` Larry Hazel
2000-12-13 17:41       ` Ted Dennison
2000-12-12 20:22 ` Keith Thompson
2000-12-12 20:54   ` Ted Dennison
2000-12-13  5:35   ` tmoran
2000-12-12 20:23 ` David C. Hoos, Sr.
2000-12-12 21:58   ` Ted Dennison
2000-12-12 23:18   ` Jeff Carter
2000-12-12 21:18 ` JP Thornley
2000-12-12 22:31   ` Ted Dennison
2000-12-13  8:02     ` Brian Orpin
2000-12-13 17:32     ` JP Thornley
2000-12-12 23:09 ` Ted Dennison
2000-12-13  7:43 ` Brian Orpin [this message]
2000-12-15  0:27 ` Frank
2000-12-19  7:50 ` Martin Gangkofer
2000-12-20  3:32   ` Ted Dennison
2000-12-20  5:29     ` tmoran
2000-12-20  7:59     ` Martin Gangkofer
2000-12-20  9:15       ` java servlets JF Harrison
2000-12-20 12:50     ` Using "delay until" in real-time Marin David Condic
2000-12-21  0:08     ` Alejandro R. Mosteo
2000-12-20  3:17 ` Ted Dennison
replies disabled

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