🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #9281

Re: amiga<->ibm centronics link

#9281
From: Zoltan Kelemen
Date: Tue, 16 Apr 1991 21:28
55 lines
2109 bytes
I've done something similar when writing a transfer program for my good old
Commodore 64. The problem is, that most PCs are not able to receive data using
the normal data port (03bc or 0378 or 0278), only PS/2 systems can do that.

Printer data register, port 03bc / 0378 / 0278:

bit 7 = data bit 7, pin 9
bit 6 = data bit 6, pin 8
bit 5 = data bit 5, pin 7
bit 4 = data bit 4, pin 6
bit 3 = data bit 3, pin 5
bit 2 = data bit 2, pin 4
bit 1 = data bit 1, pin 3
bit 0 = data bit 0, pin 2


Printer status register, port 03bd / 0379 / 0279:

bit 7 = busy, pin 11
bit 6 = acknowledege, pin 10
bit 5 = out of paper, pin 12
bit 4 = online, pin 13
bit 3 = error, pin 15
bit 2 = unused
bit 1 = unused
bit 0 = unused


Printer control register, port 03be / 037a / 027a:

bit 7 = unused
bit 6 = unused
bit 5 = unused
bit 4 = enable IRQ7 for printer acknowledge
bit 3 = select input, pin 17			; inverted
bit 2 = initialize printer, pin 16
bit 1 = auto linefeed, pin 14			; inverted
bit 0 = strobe, pin 1				; inverted


Now, the printer data register may be used for output, and on PS/2 systems also
for input. The printer status register may only be used for input. The printer
control register may be used for both input/output on all PC systems.

When waiting for input, you have to ensure that none of the output lines are
pulled to ground. If an output line IS pulled to ground, no input is accepted
on that line.

For example, before inputting from the printer control register, you have to
output value 00000100 binary, or 4 decimal.

Hope this will help you a bit.

Zoltan Kelemen
d89-zke@nada.kth.se
Technical Details
Message-ID: <1991Apr16.212803.22962@nada.kth.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uupsi!sunic!kth.se!cyklop.nada.kth.se!news
References: <730@sheoak.bcae.oz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uupsi!sunic!kth.se!cyklop.nada.kth.se!news
From: d89-zke@dront.nada.kth.se (Zoltan Kelemen)
Newsgroups: comp.sys.ibm.pc.misc
Subject: Re: amiga<->ibm centronics link
Keywords: parallell port
Message-ID: <1991Apr16.212803.22962@nada.kth.se>
Date: 16 Apr 91 21:28:03 GMT
References: <730@sheoak.bcae.oz>
Organization: Royal Institute of Technology, Stockholm, Sweden
Lines: 55