All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexis Berlemont <alexis.berlemont@domain.hid>
To: Daniele Nicolodi <daniele@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Analogy: unable to use sampling frequency higher that 10kHz
Date: Wed, 2 Jun 2010 22:59:55 +0200	[thread overview]
Message-ID: <20100602205955.GA2590@domain.hid> (raw)
In-Reply-To: <4C0395C1.6050902@domain.hid>

Hi, 

Daniele Nicolodi wrote:
> Hello. I finally went back to work to my data acquisition
> infrastructure. I'm now trying to increase the sampling frequency of my
> control loop. I do not have any problem up to 10 kHz, but when I
> increase the sampling frequency above this limits the ADC driver stop
> working fine. In the kernel log I obtain a huge list of
> 
> Analogy: analogy_ni_pcmio: ni_mio_common: interrupt: didn't clear
> interrup? status=0x9030
> 
> From where can I start to investigate this problem?

At the end of the IRQ handling function, a status register is read
again just to be sure the interrupt flag has been cleared. If it is
not the case the message you presented above is printed (by the way, I
will fix the spelling mistake...).

With TRIG_WAKE_EOS, I am pretty sure (I have not checked in the DAQ
STC manual yet) that an interrupt is generated at every scan, which would
mean that the CPU would handle an interrupt every 100µs at least. So
it may not be surprising that, sometimes, the interrupt N + 1 is
triggered during the execution of the handler for the interrupt N.

I am wondering whether we should remove this trace at least when
TRIG_WAKE_EOS is specified.

> 
> I encounter this problem only when I use analogy commands with the
> TRIG_WAKE_EOS flag. If I do not specify this flag all works fine up to
> 100 kHz. However I need my data in real time, and therefore I need to
> specify this flag.
> 
> Cheers,
> -- 
> Daniele
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Alexis.


      reply	other threads:[~2010-06-02 20:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 10:56 [Xenomai-help] Analogy: unable to use sampling frequency higher that 10kHz Daniele Nicolodi
2010-06-02 20:59 ` Alexis Berlemont [this message]

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=20100602205955.GA2590@domain.hid \
    --to=alexis.berlemont@domain.hid \
    --cc=daniele@domain.hid \
    --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.