All of lore.kernel.org
 help / color / mirror / Atom feed
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: Mon, 08 Aug 2011 20:00:19 +0200	[thread overview]
Message-ID: <4E402433.4090103@domain.hid> (raw)
In-Reply-To: <1312821858.88556.YahooMailClassic@domain.hid>

On 08/08/2011 06:44 PM, Philip Ha wrote:
>> Hi Gilles,
>>
>> Sorry for the formatting, I am new to mailing lists.
>>
>> I have looked at the latency in the 16550A driver. The first thing 
>> the driver does in its ISR is to call rtdm_clock_read and store the 
>> resulting timestamp in a "struct rtser_event". The code I posted 
>> grabs this structure. If I use this as my timestamp I get the exact
>> same timing results.
> 
>>> are you sure that the interrupt triggers as soon as you receive a
>>> character, and not upon timeout when not receiving characters for some
>>> time? After all, 100us is approximately the time to transmit one
>>> character at 115200 bauds on the serial line.
>>>
>>> -- 
>>>                                           Gilles.
> 
> Hi Gilles,
> 
> I am not sending characters, I am sending a pulse from a 
> function generator into the DSR pin and looking for the rising
> edge event ( RTSER_EVENT_MODEMHI ). Any latency in the system
> should be similar for every pulse it receives, therefore the
> time between pulses should still be 1000000us.

The question remains: are you sure the UART does not introduce the
delay, have you checked the datasheet?

-- 
                                                                Gilles.


  reply	other threads:[~2011-08-08 18:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-04 19:27 [Xenomai-help] clock problem Philip Ha
2011-08-05 12:53 ` Gilles Chanteperdrix
2011-08-08 16:44   ` Philip Ha
2011-08-08 18:00     ` 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-10 15:18 Philip Ha
2011-08-10 15:49 ` 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=4E402433.4090103@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.