home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / electron / 18968 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  1.7 KB

  1. Path: sparky!uunet!think.com!ames!olivea!markey
  2. From: markey@flash.ATC.Olivetti.Com (Tim Markey)
  3. Newsgroups: sci.electronics
  4. Subject: bi-directional parallel port
  5. Message-ID: <56956@olivea.atc.olivetti.com>
  6. Date: 16 Nov 92 18:16:39 GMT
  7. Sender: news@olivea.atc.olivetti.com
  8. Lines: 28
  9.  
  10.  
  11.     If you wan't to transfer bi-directionally on a parallel port here
  12.     is a scheme which will work.  First you need to modify a cable to
  13.     cross the strobe and the ack line.  These are lines 1 and 10.  The
  14.     receiving PC should get an interupt for each byte sent from the 
  15.     transmitting PC.  An interupt will be generated if the IRQE bit (4)
  16.     is set in the Control port.  The ACK line is usually used by a printer
  17.     acknowledge that it has received a data byte.  This can instead be used
  18.     by the transmitting PC to tell the receiving PC that a byte is ready
  19.     to be read.  The receiving PC should have an interupt handler installed 
  20.     which will fetch the data and store it once the interupt is generated.
  21.     
  22.     The ACK line is not directly controllable via a regular PC port, but
  23.     the strobe line is.  If the ACK line is crossed with the strobe both
  24.     ways then you have a method of transfering both ways.  
  25.  
  26.     The interupt handler should be installed in the interupt table. The
  27.     direction bit should be set correctly (0 = Write, 1=Read) in the
  28.     control port.  The ports IRQ should be unmasked via the PIC mask
  29.     register so that interupts may come in.  Also there may be a register
  30.     which needs to be set to enable bi-directionality on the parallel port
  31.     This is different depending on whether you have an AT, microchannel,
  32.     or and EISA machine.  
  33.  
  34.     Hope this helps, 
  35.  
  36.     Tim Markey
  37.  
  38.