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