home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / sci / electron / 18805 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  2.0 KB

  1. Path: sparky!uunet!convex!darwin.sura.net!sgiblab!sdd.hp.com!ux1.cso.uiuc.edu!uwm.edu!ogicse!news.tek.com!uw-beaver!cs.ubc.ca!fs1.ee.ubc.ca!jrusmise
  2. From: jrusmise@ee.ubc.ca (RUSMISEL JASON DIRK)
  3. Newsgroups: sci.electronics
  4. Subject: Reading and Writing IBM pc parallel port
  5. Message-ID: <1992Nov12.220931.7242@ee.ubc.ca>
  6. Date: 12 Nov 92 22:09:31 GMT
  7. Article-I.D.: ee.1992Nov12.220931.7242
  8. Distribution: sci.electronics comp.periphs
  9. Organization: University of BC, Electrical Engineering
  10. Lines: 43
  11.  
  12.  
  13.   I have a question about the using the IBM pc parallel port as an input 
  14. and output port rather than for printer stuff.  I plan to use the 
  15. parallel port on my PC to interface to an external device (a D/A converter.)
  16.  
  17. I have been experimenting with writing to the parallel port using BIOS int 17h
  18. on the pc, but it isn't working.  Using this interrupt, I am able to reset
  19. the printer and get printer status, but when I try to send a byte to the 
  20. printer, nothing happens and the returned diagnostic says the printer is
  21. out of paper (which is not true.)  (BTW, I am keeping the printer plugged into
  22. the port for testing... "let`s see if this works!")
  23.  
  24. My questions:
  25.  
  26. 1)  Am I doing something wrong with BIOS int 17h (I`m pretty sure it was 17h
  27.     I don't have my notes here right now).  Is there some special
  28.     initialization I may have overlooked?
  29.  
  30. 2)  Am I on the wrong track.  Is there a more straightforward way of sending
  31.     data to the parallel port a byte at a time. ( I need strict timing
  32.     between data transfers.) Should I be looking at the MSDOS printer
  33.     handling interrupts?
  34.  
  35. 3)  Should I be accessing the parallel port card directly (outport(XX).) Can
  36.     this be done, ort is it a scary hidden nightmare of registers and
  37.     initialization?
  38.  
  39. 4)  Once I figure out how to write to the port, is there a corresponding
  40.     read that can be done with the same method?  
  41.  
  42.  
  43.  
  44. I would appreciate any answers to all or some of the above questions.  
  45. Please respond by emailing (preferably) or by posting (Yes honey, I'm working
  46. no, no, It's not readnews  :))
  47.  
  48.  
  49. Thanks,
  50.  
  51. Jason Rusmisel
  52.  
  53. jrusmise@fs0.ee.ubc.ca
  54.  
  55.