All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Feretich <bob.feretich@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>,
	xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTDM driver structure
Date: Thu, 05 Aug 2010 11:57:38 -0700	[thread overview]
Message-ID: <4C5B09A2.8050607@domain.hid> (raw)
In-Reply-To: <4C5A631B.1040604@domain.hid>

  Comments inline...

On 8/5/2010 12:07 AM, Gilles Chanteperdrix wrote:
>
> Another remark: Xenomai uses, as, a system timer, a timer in one-shot
> mode (same as Linux so-called "high resolution timers"), so, if you
> program several periodic software timers, Xenomai timer subsystem will
> arrange for your timer callbacks to be called at the right time, so it
> looks like you will not gain much by using several hardware timers. If
> you fear that Xenomai timing subsystem will not scale well with many
> timers, you can enable the heap-based or wheel-based timer management.
The GPTimers that I am using have special hardware that drives pins on 
the chip. They can be programmed to create waveforms of specific pulse 
width and period and auto-restart so that the pulse train is continuous. 
Software only gets involved when the pulse width or period needs to be 
changed.  If I used the Xenomai timer, software (to change the state of 
a GPIO pin) would be invoked every time any of these signals needed to 
transition.

Using the hardware timers for the generation pulse trains of fixed pulse 
width and period takes zero CPU cycles.

Regards,
Bob



  reply	other threads:[~2010-08-05 18:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05  2:49 [Xenomai-help] RTDM driver structure Bob Feretich
2010-08-05  7:07 ` Gilles Chanteperdrix
2010-08-05 18:57   ` Bob Feretich [this message]
2010-08-05 19:27     ` Gilles Chanteperdrix
2010-08-07  2:22   ` [Xenomai-help] RTDM driver structure - an update Bob Feretich
2010-08-08  9:36     ` Everett Wang
2010-08-08 12:08       ` Gilles Chanteperdrix
2010-08-08 14:32         ` Everett Wang
2010-08-10  0:56       ` Bob Feretich
2010-08-10  7:43         ` Guenter Ebermann
2010-08-10  9:08           ` Bob Feretich
2010-08-10 13:33             ` Gilles Chanteperdrix
2010-08-10 13:41               ` Philippe Gerum
2010-08-10 13:18         ` Gilles Chanteperdrix
2010-08-10 19:01           ` Bob Feretich
2010-08-10 21:41             ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C5B09A2.8050607@domain.hid \
    --to=bob.feretich@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.