From: Jan Kiszka <jan.kiszka@domain.hid>
To: Maksym Veremeyenko <verem@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] 16550A driver and Moxa card / solved
Date: Fri, 11 May 2007 14:11:45 +0200 [thread overview]
Message-ID: <46445D81.9010008@domain.hid> (raw)
In-Reply-To: <4644577F.1090703@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]
Maksym Veremeyenko wrote:
> Jan Kiszka пишет:
>>> moxa: 912.600/115.200 = 8
>>> xeno: = 7
>>
>> Yeah, hard arguments. This really cries for a moxa tweak. (The
>> alternative would be to pass an artificially increased baud_base - but
>> that would be _really_ ugly and we could also ask the user for the
>> divider directly...)
>
> As i correctly understand mxser use formula:
> +-
> | base/baud, baud <> 134
> div = |
> | 2*base/(2*base + 1), baud == 134
> +-
>
> Jan's driver use:
>
> div = (base + baud/2)/baud
>
> What is actual
>
> div = base/baud + 0.5
>
> That seems more correct for rounding....
>
>
> In additional:
> 1. You should use 921600 value instead of 912.600.
(921600 + (115200 div 2)) div 115200 = 8
So back to square #1: misconfiguration? David, please check with the
correct baud base again if you still see relevant divider variations.
> 2. Interface is asynchronous and (IMHO) data could be transfered in a
> range of frequencies (BAUD +/- RANGE%)
>
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-05-11 12:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-11 9:31 [Xenomai-core] 16550A driver and Moxa card / solved CHABAL David
2007-05-11 9:08 ` Jan Kiszka
2007-05-11 9:12 ` Maksym Veremeyenko
2007-05-11 9:17 ` Jan Kiszka
2007-05-11 10:57 ` CHABAL David
2007-05-11 10:28 ` Maksym Veremeyenko
2007-05-11 10:36 ` Jan Kiszka
2007-05-11 11:25 ` Jan Kiszka
2007-05-11 12:33 ` CHABAL David
2007-05-11 11:46 ` Maksym Veremeyenko
2007-05-11 12:11 ` Jan Kiszka [this message]
2007-05-11 14:11 ` CHABAL David
2007-05-11 13:25 ` Jan Kiszka
2007-05-11 13:35 ` Maksym Veremeyenko
2007-05-11 14:33 ` CHABAL David
2007-05-11 13:54 ` Jan Kiszka
2007-05-11 13:58 ` Maksym Veremeyenko
2007-05-11 15:33 ` CHABAL David
2007-05-11 15:45 ` Jan Kiszka
2007-05-11 13:29 ` Maksym Veremeyenko
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=46445D81.9010008@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=verem@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.