home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / msdos / programm / 2267 < prev    next >
Encoding:
Text File  |  1992-08-26  |  2.6 KB  |  92 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!andrej!franke
  3. From: franke@andrej.informatik.rwth-aachen.de (Christian Franke)
  4. Subject: Re: Input from parallel port
  5. Message-ID: <franke.714843361@andrej>
  6. Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
  7. Nntp-Posting-Host: andrej
  8. Organization: Rechnerbetrieb Informatik  /  RWTH Aachen
  9. References: <l9ke8hINN1r7@utkcs2.cs.utk.edu> <1992Aug25.150817.20259@ncsu.edu>
  10. Date: 26 Aug 92 15:36:01 GMT
  11. Lines: 79
  12.  
  13.  
  14. dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL) writes:
  15.  
  16. >Hi.  I don't know the details (like how to actually do it), but it seems to me I
  17. >read somewhere that you can do it using some of the handshaking lines (but not
  18. >the 8 data lines) but you can only send/receive 4-5 bits at a time! [...]
  19.  
  20. Laplink pro seems to do the following:
  21.  
  22. In the 4-Bit mode, an interlocked 4-bit transmission
  23. is done.
  24.  
  25.     Computer A    direction    Computer B
  26.     DATA0        =>        -ERROR
  27.     DATA1        =>        SLCT
  28.     DATA2        =>        PE
  29.     DATA3        =>        -ACK
  30.     DATA4        =>        BUSY
  31.     -ERROR        <=        DATA0
  32.     SLCT        <=        DATA1
  33.     PE        <=        DATA2
  34.     -ACK        <=        DATA3
  35.     BUSY        <=        DATA4
  36.  
  37. Because for an interlocked transmission, one input and one output
  38. protocol line are necessary, the transmission cannot occur in full
  39. duplex mode.
  40.  
  41. In the 8-Bit mode, the same interlocked protocol is used,
  42. but the following 4 (open collector!) I/O lines are used
  43. for the remaining 4 bits:
  44.  
  45.     STROBE        <=>        STROBE
  46.     AUTOFD        <=>        AUTOFD
  47.     INIT        <=>        INIT
  48.     SLIN        <=>        SLIN
  49.  
  50. Because laplink has an option to turn 8-Bit mode off,
  51. there may be situations where this mode is not appropriate.
  52.  
  53.  
  54. Because there is no hardware support for the interlocked protocol,
  55. the speed is limited by the AT-Bus bandwidth.
  56.  
  57. To send a nibble/byte the transmitter needs 5 I/O instructions,
  58. the receiver needs 4 I/O instructions:
  59.  
  60. Transmitter                Receiver
  61.  
  62. IN    wait for receiver ready
  63. OUT    output data
  64. OUT    say: data ready !
  65.                     IN    wait for data ready
  66.                         get data (no IN because same port)
  67.                     OUT    say: got data !
  68. IN    wait for receiver
  69. OUT    say: data not ready !
  70.                     IN    wait for data not ready
  71.                     OUT    say: receiver ready
  72.  
  73. Even on a 50/MHz 486, only about 650.000 I/O instructions can be
  74. performed per second. So the theoretical bandwith limit is
  75.  
  76.     650.000 / 5 = 130.000 transfers / second.
  77.  
  78. In practice, because the waiting loops with repeated IN's will be executed
  79. we found a bandwith of about 60.000 transfers / second.
  80.  
  81.  
  82. Regards,
  83.  
  84.     Christian Franke
  85.  
  86.     Aachen University of Technology
  87.     Lehrstuhl fuer Informatik I
  88.     Ahornstrasse 55
  89.     W-5100 Aachen
  90.     Germany
  91.  
  92.