home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / msdos / programm / 2950 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  2.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!nic.umass.edu!m2c!crackers!jjmhome!schunix!sonix
  2. From: sonix@schunix.uucp (Duane Morin)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Re: bidirectional centronics port
  5. Message-ID: <1992Dec14.135248.9202@schunix.uucp>
  6. Date: 14 Dec 92 13:52:48 GMT
  7. References: <Bz1qBr.18K@watserv2.uwaterloo.ca> <1992Dec14.004912.6491@massey.ac.nz>
  8. Organization: SCHUNIX Public Access Unix for Worcester County, Massachusetts, USA
  9. Lines: 32
  10.  
  11. In article <1992Dec14.004912.6491@massey.ac.nz> L.Chisholm@massey.ac.nz (Len Chisholm) writes:
  12. >There is nothing difficult about sending information back from a printer
  13. >to a DEDICATED program. The program says to the printer 'Tell me' and
  14. >then reads a serial bit-stream back from one of the handshake lines,
  15. >perhaps using another as a clock and some form of interlock.
  16. >
  17. >Lap-link etc need special cables to connect the OUTPUT pins of one
  18. >computer to the INPUT pins of the other, whereas the printer already
  19. >has output drivers on the handshake output lines.
  20.  
  21. If you dissect a Laplink cable, you can actually see that you have 4 pins 
  22. to play with, so it only takes two reads or writes to get a byte instead
  23. of 8.  *However* after dissecting the necessary software we found out 
  24. that, for applications (such as ours) that would require having extra 
  25. logic sent through the parallel port, this would slow things down incredibly.
  26. We needed to send address logic down to some pc boards, followed by some
  27. bytes of data.  The resulting code was something like 50 machine instructions
  28. to simulate what would have been one "in" instruction.  Ferget that. :)
  29.  
  30. >
  31. >-- 
  32. >-------------------------------------------------------------------------
  33. >|  LEN CHISHOLM , Systems programmer  | EMail: L.Chisholm@massey.ac.nz  |
  34. >| Department of Production Technology | Phone: +64 6 3505262            |
  35. >|         Massey University           | FAX:   +64 6 3505604            |
  36. >|   Palmerston North, New Zealand     |                                 |
  37. >-------------------------------------------------------------------------
  38.  
  39. Duane Morin
  40.  Software Development Manager
  41.  Walker Sonix, Inc
  42.  Worcester, MA 01604
  43.