public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jesper Skov <jskov@redhat.com>
To: ecos-discuss@sourceware.cygnus.com
Subject: [ECOS] forwarded message from Peter Graf
Date: Fri, 17 Nov 2000 02:11:00 -0000	[thread overview]
Message-ID: <14869.1095.188352.237035@thinktwice.zoftcorp.dk> (raw)

To : Jesper Skov <jskov at redhat dot com>
Subject : Re: [ECOS] Hitachi SH7709 Serial drivers
From : pg-itk at t-online dot de (Peter Graf)
Date : Fri, 17 Nov 2000 10:57:21 +0100
References : <pg-itk@t-online.de's message of "Thu, 12 Oct 2000 16:17:54 +0200"><3.0.5.32.20001012161754.008f0560@pop.btx.dtag.de>

Hi Jesper,

thanks for your help with the Hitachi SH7709A serial drivers. One thing I
forgot to report is that the eCos bitrate computation doesn't work
correctly under all conditions. For 20 MHz all works well. The table below
shows the values computed by hand and the values computed by eCos.

Peripheral Clock = 20 MHz:

Bitrate
[bit/s]   n     N       min. error      N eCos  error eCos
4800      0     129     0,16%           129     0,16%
9600      0     64      0,16%           64      0,16%
14400     0     42      0,94%           42      0,94%
19200     0     32      -1,36%          31      1,73%
38400     0     15      1,73%           15      1,73%
57600     0     10      -1,36%          9       8,51%
115200    0     4       8,51%           4       8,51%
230400    0     2       -9,58%          1       35,63%

For 22 MHz eg. 38400 baud doesn't work reliably under eCos. The table below
shows the correct values and the values computed by eCos. (BTW 22 MHz
peripheral clock is very useful because it allows low bitrate errors up to
230 kBaud.)

Peripheral Clock = 22 MHz:

Bitrate
[bit/s]  n      N       min. error      N       error eCos
9600      0     71      -0,54%          70      0,87%
14400     0     47      -0,54%          46      1,58%
19200     0     35      -0,54%          34      2,31%
38400     0     17      -0,54%          16      5,32%
57600     0     11      -0,54%          10      8,51%
115200    0     5       -0,54%          4       19,36%
230400    0     2       -0,54%          1       49,20%

I have only worked around by using a fixed table. A parametric macro
without the rounding problems seems tricky, if you want to avoid
computation at runtime.

Peter

         reply	other threads:[~2000-11-17  2:11 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Fred>
     [not found] ` <Fierling's>
     [not found]   ` <message>
     [not found]     ` <of>
     [not found]       ` <"Fri,>
     [not found]         ` <17>
     [not found]       ` <"Sat,>
     [not found]         ` <07>
     [not found]       ` <"Tue,>
     [not found]         ` <05>
     [not found]         ` <10>
     [not found]           ` <Jan>
     [not found]             ` <2001>
     [not found]       ` <Tue,>
     [not found]         ` <04>
     [not found]           ` <May>
     [not found]             ` <99>
     [not found]               ` <12:35:31>
     [not found]                 ` <PDT>
1999-05-04 13:51                   ` [ECOS] TCP/IP Stack for eCos Jay Lepreau
1999-05-04 17:06                     ` Fred Fierling
1999-05-04 17:43                       ` Brendan Simon
1999-05-05  5:15                       ` [ECOS] " Bart Veer
1999-05-05  1:54                     ` [ECOS] " Fernando D. Mato Mira
     [not found]       ` <"Wed,>
     [not found]         ` <5>
     [not found]           ` <Jul>
     [not found]             ` <2000>
     [not found]               ` <11:39:46>
     [not found]                 ` <+0200>
     [not found]                   ` <"Mon,>
     [not found]                     ` <09>
2000-07-05  2:40                   ` [ECOS] Connecting gdb to AEB Andreas.Karlsson
2000-07-05  2:53                     ` Jesper Skov
2000-07-05  3:12                       ` Robert Erskine
2000-10-05 12:33                   ` [ECOS] GDB Download on i386 target hangs Christian Plessl
2000-10-06  5:15                     ` Nick Garnett
2000-10-07  0:55                       ` Christian Plessl
2000-10-09  6:40                         ` Nick Garnett
2000-10-09 12:50                           ` Christian Plessl
2000-10-10  2:46                             ` Nick Garnett
2000-10-10  3:49                             ` Jesper Skov
     [not found]                             ` <5.0.0.25.0.20001010121538.009f5e30@imap.ee.ethz.ch>
     [not found]                               ` <wwg8zrwkiht.fsf@balti.cygnus>
2000-10-10  7:28                                 ` Christian Plessl
2000-10-10  7:58                                   ` Nick Garnett
2000-10-11  7:11                                     ` Christian Plessl
2000-10-11  7:20                                       ` Nick Garnett
2000-10-12  0:45                                         ` Jesper Skov
     [not found]               ` <11:11:19>
     [not found]                 ` <+0100>
     [not found]                   ` <Jesper>
2000-11-17  2:11                   ` Jesper Skov [this message]
2000-11-19 23:43                     ` [ECOS] forwarded message from Peter Graf Jesper Skov
2000-11-20  5:36                       ` [ECOS] Hitachi SH7709A problems Peter Graf
2000-11-20  6:58                         ` Jesper Skov
2000-11-20  7:20                           ` Peter Graf
2001-01-03  2:48                             ` Jesper Skov
2001-01-12  3:45                               ` Peter Graf
     [not found]               ` <20:29:19>
     [not found]                 ` <+0900>
2000-11-20  3:28                   ` [ECOS] Help me !!, Hello world on out target °íÀç¿ë
2000-11-20  3:43                     ` Jesper Skov
2000-11-20  5:54                       ` Lewin A.R.W. Edwards
2000-11-20  6:43                         ` Jesper Skov
2000-11-21 22:00                           ` Jonathan Larmour
     [not found]               ` <09:24:40>
     [not found]                 ` <-0500>
2000-12-05  6:26                   ` [ECOS] gdb/insight questions Lewin A.R.W. Edwards
2000-12-05  7:22                     ` Jesper Skov
2000-12-05  7:32                       ` Lewin A.R.W. Edwards
2000-12-05 20:15                     ` Jonathan Larmour
2000-12-06  4:13                       ` Lewin A.R.W. Edwards
2000-12-05 22:43                   ` Natarajan, Mekala (CTS)
2000-12-06  1:42                     ` Jesper Skov
2000-12-06  4:47                       ` Lewin A.R.W. Edwards
2001-01-10 16:42 [ECOS] Really dumb newbie question Tim Noell
2001-01-10 17:48 ` Lewin A.R.W. Edwards
2001-01-10 23:58   ` Jesper Skov
2001-01-11  6:05     ` Lewin A.R.W. Edwards
2001-01-11  7:26       ` Gary Thomas
2001-01-11  7:41         ` Grant Edwards
2001-01-11  7:51           ` Julian Smart
2001-01-11  8:01             ` Grant Edwards
2001-01-11  7:56           ` Gary Thomas
2001-01-11  8:36         ` Sergei Organov
     [not found] <Natarajan,>
     [not found] <Christian>
     [not found] <Lewin>
     [not found] ` <A.R.W.>

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=14869.1095.188352.237035@thinktwice.zoftcorp.dk \
    --to=jskov@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).