home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: 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
-
- 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
-