Steven Cooper (scoop@insight.cas.mcmaster.ca)
Fri, 23 Oct 1998 13:34:39 -0400 (EDT)
Actually, I'd *REALLY* like to be able to accept a custom
baud rate on my SUN SPARC-10/40 workstation (SunOS 4.1).
The UART in question is a Zilog 8350 (I think).
Does anybody whether there is something available that
is equivalent to the "setserial" command (available in Linux),
but for SunOS ??
thanks in advance,
Steven Cooper
Andreas Bogk wrote:
> On Fri, Oct 23, 1998 at 12:17:09PM -0400, Steven Cooper wrote:
> > Does anybody on this list know enough about standard PC UARTs to know
> > how to set an appropriate divide-by constant to achieve
> > the desired bit rate?
>
> PC UARTs generate the baud rate by dividing 115200 by an integer value.
> So the closest you can get to 2700 is 115200/43 = 2679. This is an error
> of less than 1%, so it should work.
>
> If you are using Linux, use the setserial command to set a custom divisor
> of 43. If you enable a custom divisor, it is used instead of the default one
> when you select a baud rate of 38400.
>
> So, do
>
> $ setserial /dev/ttyS0 spd_cust divisor 43
>
> and then select a baud rate of 38400 in your application.
The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:15:22