home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8620 < prev    next >
Encoding:
Text File  |  1992-08-19  |  2.2 KB  |  51 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!caen!destroyer!ubc-cs!yogi
  3. From: yogi@cs.ubc.ca (Yossi Gil)
  4. Subject: Re: Parallel port I/O (mostly O : -)
  5. Message-ID: <1992Aug19.152509.18901@cs.ubc.ca>
  6. Sender: usenet@cs.ubc.ca (Usenet News)
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. References: <1992Aug19.135359.24909@bas-a.bcc.ac.uk>
  9. Date: Wed, 19 Aug 92 15:25:09 GMT
  10. Lines: 39
  11.  
  12. n.margetic@ucl.ac.uk (Nino Margetic) writes:
  13.  
  14. >Hi,
  15.  
  16. >I am trying to write a driver for a device which accepts commands thru
  17. >the parallel port. I have used INT17 for that, and the thing works.
  18. >The way I've done it is simple - I am checking bit 7 after getting a
  19. >status info of the LPT port via INT17. When bit 7 is NOT_BUSY I send a
  20. >new character down the line.
  21.  
  22. >I know that there is also a way to access the LPT port directly thru the
  23. >in/out commands and its 3 I/O registers. Are there any advantages (in
  24. >terms of speed) in using interrupt driven parralel I/O, as compared to
  25. >INT17 BIOS service as I have used it - if there is, how much, and is
  26. >it doable in C?? I can just about read assembler, but that's about it.
  27.  
  28. >The speed of the application is crucial - I need to send as many bytes
  29. >thru the LPT port as possible (order of 1e6). N.B. does anyone know the
  30. >approximate number of bytes per second that can be sent thru the LPT port
  31. >via INT17 and/or interrupt driven parallel I/O??
  32.  
  33. >Any suggestions, pointers, code snippets, anything, will be of immense value.
  34. >Thanx in advance.
  35.  
  36. >--Nino
  37.  
  38. >--
  39. >Janet: n.margetic@uk.ac.ucl                \     Nino Margetic         
  40. >Earn/Bitnet/Internet: n.margetic@ucl.ac.uk  \    University College London, UK
  41. >Bang: ...!mcvax!uknet!ucl!n.margetic         \   +44 71 387 9300 /x 53 13
  42.  
  43. I recall a byte article on this exact topic few years back. I think it
  44. was about 5 or so. I also recal that the max baud rate you can get
  45. is 4500. That is 4.5 KB/sec. 
  46. --
  47. Joseph (Yossi) Gil                 {alberta,uw-beaver,uunet}!ubc-cs!yogi
  48. Dept. of Computer Science          yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
  49. 6356 Agricultural Road., Univ. of B.C.,             Tel: +1-604-822-8175
  50. Vancouver, British Columbia, V6T 1Z2, Canada.       Fax: +1-604-822-5485
  51.