🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6616

Re: BC++ & Serial IO - is there an easy way?

#6616
From: Lee Hollingworth
Date: Sun, 22 Nov 1992 00:46
23 lines
1430 bytes
mjr@ursa.calvin.edu (Matt Ranney) writes:

>I'm using BC++ 3.1, and I'm trying to write a program that does some
>simple serial IO at 9600 baud on COM1.  I typed in the bioscom example
>from the book, but that doesn't work.  Every time it goes to send a
>character, the machine hangs for like 2 seconds, and it never thinks
>there is any data waiting to be read.  It does this on every machine
>I've tried it on, although they are all the same kind of machine:
>386sx's.  Has anybody else had this problem?

I do not use BC++, however the source of your problem may be the fact
that you are trying to use 9600 baud, for polled serial communications.

Using this method the data speed should be limited to 1200 bps.  For
speed greater than this you need to install an interrupt handler to
handle interrupts generated by your serial port.

>Also, is this the only way to talk to the serial port?

No.

Lee Hollingworth
s1110238@giaeb.cc.monash.edu.au
Technical Details
Message-ID: <s1110238.722393168@giaeb>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!s1110238
References: <mjr.722383467@ursa>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!s1110238
From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
Subject: Re: BC++ & Serial IO - is there an easy way?
Message-ID: <s1110238.722393168@giaeb>
Sender: news@monu6.cc.monash.edu.au (Usenet system)
Organization: Monash University, Melb., Australia.
References: <mjr.722383467@ursa>
Date: Sun, 22 Nov 1992 00:46:08 GMT
Lines: 23