Thread (2 messages) 2 messages, 2 authors, 2000-08-08

Serial Port Baud Rate

flat view

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help