From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philip Ha <philwman@domain.hid>
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] clock problem
Date: Wed, 10 Aug 2011 17:49:38 +0200 [thread overview]
Message-ID: <4E42A892.6080203@domain.hid> (raw)
In-Reply-To: <1312989511.75315.YahooMailClassic@domain.hid>
On 08/10/2011 05:18 PM, Philip Ha wrote:
>
>> The question remains: are you sure the UART does not introduce the
>> delay, have you checked the datasheet?
>>
> Hi Gilles,
>
> I apologize for the delay in responding the last message.
>
> I measured the latency of the UART by pulsing the DTR pin on the
> serial port as soon as the ISR is called. Using an oscilloscope
> I monitored the DSR input signal from the function generator and
> the DTR signal from the serial port. The time difference between
> signals was 6-9 us. Therefore the latency of the UART is < 10 us
> at all times.
>
> As long as the UART latency is consistent the size of it does not
> matter for the test I am performing. An input signal that comes in
> every 1000000 us should result in the 16550 ISR being called every
> 1000000 us.
>
> The function generator is accurate to 1us, the UART ISR latency
> jitter is approximately 3 us. Therefore I would not expect to see
> 100 us of timing measurement inacurracy using OS time stamps. It
> is also strange that this timing measurement inaccuracy changes
> every time the system is rebooted.
>
> Any thoughts?
Could you try measuring the jitter in cpu cycles with rdtscll, in
kernel-space? If the inaccuracy persists, check that cpufreq is not
enabled, and that if running on a multicore system, tscs are
synchronized. Apart from that no, no idea.
--
Gilles.
next prev parent reply other threads:[~2011-08-10 15:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 15:18 [Xenomai-help] clock problem Philip Ha
2011-08-10 15:49 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-08-15 13:50 Philip Ha
2011-08-11 21:18 Philip Ha
2011-08-11 22:24 ` Gilles Chanteperdrix
2011-08-04 19:27 Philip Ha
2011-08-05 12:53 ` Gilles Chanteperdrix
2011-08-08 16:44 ` Philip Ha
2011-08-08 18:00 ` Gilles Chanteperdrix
2011-08-04 15:55 Philip Ha
2011-08-04 16:39 ` Gilles Chanteperdrix
2011-08-04 17:26 ` Philip Ha
2011-08-04 17:34 ` Gilles Chanteperdrix
[not found] <1311873701.2537.YahooMailClassic@domain.hid>
2011-07-31 17:19 ` Gilles Chanteperdrix
[not found] <1311805213.7716.YahooMailClassic@domain.hid>
2011-07-28 14:35 ` Gilles Chanteperdrix
2011-07-20 18:35 Philip Ha
2011-07-19 14:24 Philip Ha
2011-07-27 18:47 ` 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=4E42A892.6080203@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Xenomai-help@domain.hid \
--cc=philwman@domain.hid \
/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.