home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / st / tech / 4769 < prev    next >
Encoding:
Text File  |  1992-09-14  |  2.2 KB  |  52 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!sakaria
  3. From: sakaria@vipunen.hut.fi (Sakari Aaltonen)
  4. Subject: Re: The ST parallel (printer) port
  5. Message-ID: <1992Sep14.182549.571@nntp.hut.fi>
  6. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  7. Nntp-Posting-Host: vipunen.hut.fi
  8. Reply-To: sakaria@vipunen.hut.fi (Sakari Aaltonen)
  9. Organization: Helsinki University of Technology
  10. Date: Mon, 14 Sep 1992 18:25:49 GMT
  11. Lines: 39
  12.  
  13.  
  14. mgm@world.std.com (michael g moncur) writes
  15. >
  16. >   In Abacus's _Atari_ST_Internals_, it is mentioned that the ST can both
  17. >send and receive data through the parallel port.  Can anyone confirm that
  18. >the parallel port can be used as input?  Someone once told me that the
  19. >PC's parallel port can do both input and output (which I know is true) but
  20. >the ST can't...  And Abacus has been known to stretch the truth
  21. >occasionally.  thoughts?
  22. >..................................
  23.  
  24. The ST's 8-bit  printer port is the Yamaha PSG's I/O port B which is
  25. bidirectional. You read it with (prt_in is a C char)
  26.  
  27.   prt_in = Bconin(0);
  28.  
  29. That's what the Profibuch says. But NOTE: The port is normally programmed as
  30. output. If you connect a "talking" device to it and it (the port) is
  31. "talking", too, you'll probably destroy the PSG chip. You have to make
  32. sure that only one device is talking, i.e., outputting at a time.
  33. That's why I haven't tried out the above in practice - I would hate
  34. replacing the PSG.
  35.  
  36. A safer way perhaps would be to bypass the BIOS function and divide the
  37. PSG port into two: x inputs and 8-x outputs. For that, you would have
  38. to know how to program the PSG - I don't...
  39.  
  40. BTW: the 8-bit printer ports of PC's are not ALWAYS bidirectional - some
  41. are, some aren't. The Centronics port, however, has more than 8 lines -
  42. 8 are data, the rest are control. The control lines can be used as input
  43. even in the cases where the 8-bit data port itself is not bidirectional.
  44. The same applies to the ST which, unfortunately, has less control lines.
  45.  
  46.  
  47. -- 
  48. -----------------------------------------------------------------------------
  49. Sakari Aaltonen                             Helsinki University of Technology
  50. Email: sakaria@vipunen.hut.fi
  51. ---  You can't keep a Finn down without him getting all red in the face  ----
  52.