Can Python serial support run at 45.45 baud?

Hendrik van Rooyen mail at microcorp.co.za
Sun Feb 15 05:04:37 EST 2009


"MRAB" <google at m...tt.plus.com> wrote:

> Grant Edwards wrote:
> > On 2009-02-14, John Nagle <nagle at animats.com> wrote:
> > 
> >> Can Python's serial port support be made to run at 45.45 baud,
> >> the old "60 speed" Teletype machine speed? 
> > 
> > If your hardware and OS supports it, Python can be made to
> > support it.
> > 
> [snip]
> I had a quick look at the Windows API. The struct member for the baud
> rate is of type DWORD, ie an integer.

I think there could be other hassles - the baud rate is basically derived
by setting a divisor that divides a high frequency clock that is
fed to the UART chip. Now this means that the frequency, 
and the maximum value of the divisor, defines the lowest
rate that can be attained.  The chips are standard, so the maximum
divisor is fixed, but the frequency fed the chip is a design parameter
of the motherboard.

So you could be lucky, or you might have to change the hardware...

- Hendrik






More information about the Python-list mailing list