home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp / 15300 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  3.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!lll-winken!taurus.cs.nps.navy.mil!stockel
  2. From: stockel@taupo.oc.nps.navy.mil (Jim Stockel)
  3. Newsgroups: comp.sys.hp
  4. Subject: Centronics on 730.  Help!
  5. Message-ID: <C1FqF4.HGq@taurus.cs.nps.navy.mil>
  6. Date: 26 Jan 93 00:23:26 GMT
  7. Sender: news@taurus.cs.nps.navy.mil
  8. Organization: Naval Postgraduate School,Monterey CA
  9. Lines: 77
  10.  
  11.  
  12. Hi,
  13.  
  14. Some time back in August, I followed a thread on comp.sys.hp about using
  15. the Centronics port of a 9000/730 for data input.  According to the 
  16. discussion, input on the centronics is possible.  The last message I
  17. caught was from rose@hpfcmgw.FC.HP.COM (Rose Palombo):
  18.  
  19.  >> "man cent" on my 9000/730 (HPUX 8.07) tell me that the Centronics parallel
  20.  >> port only supports writes. Is this a hardware or a software limitation?
  21.  >> 
  22.  >> If it's a software limitation, does anyone know if/when reads from the
  23.  >> Centronics port might be supported?
  24.  
  25.  >> It's a manual page limitation. The 700 parallel port can do bidirection
  26.  >> I/O. If only you know the mode bits in the minor number...
  27.  
  28.  > Changes were made to the Centronics driver in HP-UX 8.07 to support
  29.  > additional modes.  The mode is set via the lower 3 bits of the device
  30.  > file's minor number.  We are supporting modes 1, 2, 3, 4, 5, and 6.
  31.  > Information about this did not made it into HP-UX 8.07 documentation.
  32.  >
  33.  > Here are the mode descriptions I am aware of for the Centronics driver.
  34.  
  35.  >    mode 1,2:  NACK with NOT BUSY automatic handshake;
  36.  >           BUSY only automatic handshake
  37.  >
  38.  >    mode 3:    Scanjet bidirectional NSTB only
  39.  >
  40.  >    mode 4:    tektronix stream mode 1 usec delay
  41.  >
  42.  >    mode 5:    PULSED NACK with NOT BUSY automatic handshake
  43.  >
  44.  >    mode 6:    PULSED BUSY only automatic handshake
  45.  >
  46.  
  47.  
  48. We are considering using the centronics port on our 7000/730 (HPUX 8.07)
  49. to bring in a 16 bit parallel data stream from an instrument, and I would
  50. like to get more information on how to do this.
  51.  
  52. First, what we have is a 176 Kb/s data rate, that is FIFO'ed in hardware so
  53. that it can tolerate up to 80 mS of latency.  In the past we have used a 
  54. GPIO interface on a 300 series computer, but we are now migrating to a 700
  55. where drivers for a GPIO are not yet available (hint, hint.  Anybody know
  56. anything about HP plans to support an EISA/ISA GPIO card?).
  57.  
  58. If using the centronics for input is feasible we will build the necessary
  59. hardware to make our instrument talk centronics.  Questions we have include:
  60.  
  61. - can the centronics port do  better than 176 Kb/s.
  62.  
  63. - is mode 3 (of the 6 modes mentioned above) the only
  64. bi-directional mode, and can anyone give more details of the modes, ie
  65. timing diagrams of hand shake lines, logic levels, what is NSTB etc.
  66.  
  67. - the HPUX 8.07 documentation on centronics does not discuss input, is there
  68. more information on programming for input, and can this be done with the DIL
  69. library delivered with our system.
  70.  
  71. - can we use open collector outputs on our device with 2k2 pullups to 5v 
  72. to connect to the 8 data lines of the centronics port.  If not, what 
  73. would be appropriate.
  74.  
  75. Thanks in advance for any help, hints etc.  Post here or respond to me at:
  76.  
  77.     stockel@arola.oc.nps.navy.mil or
  78.     stockel@taupo.oc.nps.navy.mil
  79.  
  80. If there is interest, I will summarize.
  81.  
  82.  
  83.  
  84. -- 
  85. Jim Stockel                     |
  86. stockel@taupo.oc.nps.navy.mil   |
  87. (408) 656-3256                  |
  88.