home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8631 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.7 KB

  1. Path: sparky!uunet!kithrup!hoptoad!decwrl!mips!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uknet!bcc.ac.uk!news
  2. From: n.margetic@ucl.ac.uk (Nino Margetic)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Parallel port I/O (mostly O : -)
  5. Message-ID: <1992Aug19.135359.24909@bas-a.bcc.ac.uk>
  6. Date: 19 Aug 92 13:53:59 GMT
  7. Sender: news@ucl.ac.uk (Usenet News System)
  8. Reply-To: nino@mph.sm.ucl.ac.uk (Nino Margetic)
  9. Organization: University College London
  10. Lines: 29
  11.  
  12.  
  13. Hi,
  14.  
  15. I am trying to write a driver for a device which accepts commands thru
  16. the parallel port. I have used INT17 for that, and the thing works.
  17. The way I've done it is simple - I am checking bit 7 after getting a
  18. status info of the LPT port via INT17. When bit 7 is NOT_BUSY I send a
  19. new character down the line.
  20.  
  21. I know that there is also a way to access the LPT port directly thru the
  22. in/out commands and its 3 I/O registers. Are there any advantages (in
  23. terms of speed) in using interrupt driven parralel I/O, as compared to
  24. INT17 BIOS service as I have used it - if there is, how much, and is
  25. it doable in C?? I can just about read assembler, but that's about it.
  26.  
  27. The speed of the application is crucial - I need to send as many bytes
  28. thru the LPT port as possible (order of 1e6). N.B. does anyone know the
  29. approximate number of bytes per second that can be sent thru the LPT port
  30. via INT17 and/or interrupt driven parallel I/O??
  31.  
  32. Any suggestions, pointers, code snippets, anything, will be of immense value.
  33. Thanx in advance.
  34.  
  35. --Nino
  36.  
  37. --
  38. Janet: n.margetic@uk.ac.ucl                \     Nino Margetic         
  39. Earn/Bitnet/Internet: n.margetic@ucl.ac.uk  \    University College London, UK
  40. Bang: ...!mcvax!uknet!ucl!n.margetic         \   +44 71 387 9300 /x 53 13
  41.