delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/25/04:00:14

From: DougEleveld <deleveld AT my-dejanews DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can bioscom work at 19.2 kbaud?
Date: Fri, 25 Jun 1999 01:29:32 +0200
Organization: Rijksuniversiteit Groningen
Lines: 35
Message-ID: <3772BF5C.3BA93388@my-dejanews.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990624171102 DOT 15836B-100000 AT is>
NNTP-Posting-Host: client36-118.oprit.rug.nl
Mime-Version: 1.0
X-Mailer: Mozilla 4.6 [en] (Win95; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Thu, 24 Jun 1999 deleveld AT my-deja DOT com wrote:
> 
> > I need to control two serial ports on a PC, one of which must
> > be at 19.2k, the other at 4800.  I would like to use the bioscom
> > functions for this, but they appear to only go to 9600.
> 
> The BIOS functions only support baudrates up to 9600.  For higher
> rates you need to program the UART directly.

Ok, thanks, that's what I wanted to know.

> > Or am I stuck with trying to use an external serial IO library like
> > bcserio?
> 
> Why ``stuck''?  IMHO, bcserio is a good library.

Oh, yes I agree, I didn't mean to imply that at all.  I just wanted to 
keep things as simple and as small as possible.
 
> Anyway, you don't need a library if you don't want interrupt-driven
> communications.  If your application can settle for polling the UART,
> you can simply initialize the UART for your baudrate, and the read and
> write its ports to send/receive characters.  This is very simple and
> should not require any library.

Thanks for the tips.  I'm not that confidant that I could handle the
UART
myself all that well, so I will probably use a library, most likely
bcserio.

Thanks very much for the info,

Doug Eleveld

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019