Serial Port Baud Rate

2 messages, 2 authors, 2000-08-08 · open the first message on its own page

Serial Port Baud Rate

From: Brown, David (dbrown03) <hidden>
Date: 2000-08-07 20:37:31

I recently had a problem with a serial port, using the HardHat kernel 2.2.13
which is probably getting old by now.  I was using the serial port for PPP,
and I saw more framing errors at 115200 Baud than I expected.

The system clock is 50MHz, and when I calculated what commproc.c set the
baud rate generator to, it came out as 111607 Baud, due to truncation of the
remainder after division.  If rounding were used instead, the baud rate
would be 115740 instead.  I therefore changed commproc.c, as reflected in
the attached patch.  The modified version runs very well at 115200 Baud,
with no framing errors.  I also included a few lines which should in theory
allow very low baud rates, although I have had no reason to test this.
--
Dave Brown, Principal Software Engineer
Harris Corporation, RFCD

Re: Serial Port Baud Rate

From: Dan Malek <hidden>
Date: 2000-08-08 19:47:13

"Brown, David (dbrown03)" wrote:
....  The modified version runs very well at 115200 Baud,
with no framing errors.
Thanks.  What about other baud rates?
.....  I also included a few lines which should in theory
allow very low baud rates, although I have had no reason to test this.
But.....I thought you provided this to me before :-)?  I already added
that to source updates.



	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help