home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11873 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!panther!server2.panther.mot.com!asu
  3. From: asu@server2.panther.mot.com (Russell Trotter)
  4. Subject: Serial Communication Question
  5. Message-ID: <1993Jan7.144009.10363@panther.mot.com>
  6. Sender: usenet@panther.mot.com
  7. Nntp-Posting-Host: server2.panther.mot.com
  8. Organization: Motorola Panther Project, Chandler, AZ
  9. Date: Thu, 7 Jan 1993 14:40:09 GMT
  10. Lines: 22
  11.  
  12. Hello,
  13.  
  14.   A few days ago, my boss posted a question needing some info
  15. on setting up/initializing the com port and read/write howto's.
  16. After digging through the code we got from replies, we found that the best way 
  17. to do this was to use some code that would actually access
  18. the UART? directly, install an interrupt handler for the 
  19. Data Available Interrupt.  Now, the problems we had came from
  20. the fact that the original code we got, checked not only for
  21. the Data Avail. Int, but also the Modem Status Int and the Receiver
  22. Line Status Int.  In test runs, when these to interrupts were handled,
  23. our little 'teeny terminal' program hung.  However, when these two
  24. status ints were 'ignored' (by unsetting them in the Int. Enable Reg.)
  25. then things went fine. (i.e. we could dial up some place, log in,
  26. do a few directory listings).  My question is, what, precisely, are these
  27. status interrupts for, and are they absoultely necessary?  I'm
  28. no PC techie, which is why I ask the Real PCers' (c.o.m.p ) :) 
  29.  
  30. Thanks for any help.
  31.  
  32. Russ
  33.  
  34.