home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10831 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!s1110238
  3. From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
  4. Subject: Re: BC++ & Serial IO - is there an easy way?
  5. Message-ID: <s1110238.722393168@giaeb>
  6. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  7. Organization: Monash University, Melb., Australia.
  8. References: <mjr.722383467@ursa>
  9. Date: Sun, 22 Nov 1992 00:46:08 GMT
  10. Lines: 23
  11.  
  12. mjr@ursa.calvin.edu (Matt Ranney) writes:
  13.  
  14. >I'm using BC++ 3.1, and I'm trying to write a program that does some
  15. >simple serial IO at 9600 baud on COM1.  I typed in the bioscom example
  16. >from the book, but that doesn't work.  Every time it goes to send a
  17. >character, the machine hangs for like 2 seconds, and it never thinks
  18. >there is any data waiting to be read.  It does this on every machine
  19. >I've tried it on, although they are all the same kind of machine:
  20. >386sx's.  Has anybody else had this problem?
  21.  
  22. I do not use BC++, however the source of your problem may be the fact
  23. that you are trying to use 9600 baud, for polled serial communications.
  24.  
  25. Using this method the data speed should be limited to 1200 bps.  For
  26. speed greater than this you need to install an interrupt handler to
  27. handle interrupts generated by your serial port.
  28.  
  29. >Also, is this the only way to talk to the serial port?
  30.  
  31. No.
  32.  
  33. Lee Hollingworth
  34. s1110238@giaeb.cc.monash.edu.au
  35.