home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / misc / 40512 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  2.7 KB

  1. Xref: sparky comp.os.os2.misc:40512 comp.sys.ibm.pc.hardware:34319 comp.os.msdos.misc:6741
  2. Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!ochealth
  3. From: ochealth@unixg.ubc.ca (ochealth)
  4. Newsgroups: comp.os.os2.misc,comp.sys.ibm.pc.hardware,comp.os.msdos.misc
  5. Subject: Re: Question about Parallel Port, please read
  6. Date: 28 Dec 1992 23:03:38 GMT
  7. Organization: University of British Columbia, Vancouver, B.C., Canada
  8. Lines: 47
  9. Message-ID: <1ho14aINNbgd@iskut.ucs.ubc.ca>
  10. References: <BzxDM2.L4z@mccc.edu> <1hmba2INN7jk@iskut.ucs.ubc.ca> <BzzEH2.8CC@mccc.edu>
  11. NNTP-Posting-Host: unixg.ubc.ca
  12.  
  13. In article <BzzEH2.8CC@mccc.edu> pjh@mccc.edu (Pete Holsberg) writes:
  14. >In article <1hmba2INN7jk@iskut.ucs.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
  15. >
  16. >=>If I set the jumper for bidirectional operation, am I depending on the
  17. >=>printer electronics to set that bit correctly? Do all printers do it
  18. >=>correctly? 
  19. >
  20. >=There are three ports that control the printer port:
  21. >=for lpt1, there is port 378h (data) and 379h and 37Ah for other stuff.
  22. >=Since bit 5 is assigned at 379, and bit 5 isn't used for 37A, I guess
  23. >=the control bit is at port address 37A.
  24. >
  25. >True, but that doesn't answer the question. Do you know of any programs
  26. >that control those ports? Thanks.
  27.  
  28. Since bit 5 of the control reigister ( 37Ah for LPT1) is non-standard, I
  29. doubt if many programs will. The bidirectional feature will be useless for
  30. printer stuff, but since you can use the parallel port for other things,
  31. like File Shuttle (transfer files between computers) and for add on
  32. SCSI adapters, tape drives, hard disks, etc., those drivers MAY know about
  33. non-standard features, it might be usefull.
  34.  
  35. Basically, if you are just putting a printer on the port, it won't matter.
  36. If you put a tape drive on the parallel port, the biderctional feature will
  37. be VERY good (I'm pretty sure the driver program will test for bidirectional
  38. ports, and WILL use them if it can.)
  39.  
  40. I wrote a short C program to test out the parallel ports, and my parallel
  41. port control register doesn't let you set or clear bit 5 (or 6 or 7);
  42. BUT I noticed that several parallel port lines marked OUTPUT are actually
  43. bidirectional by default. I would leave your IO card jumpered for 
  44. bidirectional ablility unless your printer acts strangely (it can't hurt).
  45.  
  46. The parallel port is pretty verssatile for electronics hacking if you like
  47. doing that. It runs at 5 V, TTL logic levels, and the outputs can drive
  48. 70 mA per output pin, around 30 mA for bi-directional pins.
  49.  
  50. Some of this is hardware dependent, so don't take my card's setup as gospel
  51. truth for IBMs.
  52.  
  53.  
  54.  
  55. -- 
  56. ______________________________________________________________________________
  57. ochealth@unixg.ubc.ca         
  58.                             
  59.                                                       
  60.